This is probably pretty simple, but I'm new to this aspect of Lemur, and after spending most of the morning trying to figure this out, it's time to ask for some help.
I need to make a simple 8 pad patch for iPhone, where there is some control over the velocity sent when I play a pad. As far as I can see, the only way to do this is to assign a fader to the velocity value of the pads (that bit's working) and then control the fader value with the accelerometer (that's where I'm stuck). (I want to use the accelerometer so that I have both hands free for the pads)
I've tried attaching a script to the fader, declaring a variable e.g. decl LR = accelerometer[0];
then setattribute(Fader,x,LR);
and a few other things too, but I think I'm missing something basic here in how this works. I'm also unclear on how, even if I get the accelerometer value that I'm after, I then apply it to the fader.
I've tried going through the manual, but it's not helping, so...
help!
thanks
David
Using accelerometer to control a fader...
-
- Newbie
- Posts: 2
- Joined: 05 Sep 2016 12:52
Re: Using accelerometer to control a fader...
First of all, x is an "expression" not an attribute...so you should really use
or simply
Here are some working ideas that you can copy stuff from
https://forum.liine.net/viewtopic.php?f ... 13&p=10788
Code: Select all
setexpression(Fader,'x',LR);
Code: Select all
Fader.x = LR;
https://forum.liine.net/viewtopic.php?f ... 13&p=10788