Page 1 of 2

Faders & Monitors

Posted: 10 Feb 2013 16:41
by Kaatza_Music
I am new to Lemur so bear with me if I ask obvious questions.

I created a template and I have a bank of faders, is there a way to link a monitor to a fader so it will display between 1 to 127 so I know the Midi Value I am sending with the fader? Or some other way to make the faders scalable from 1 to 127. I am using these faders to send CC data to Kontakt 5 and want a visual representation of the fader setting.

Re: Faders & Monitors

Posted: 10 Feb 2013 17:53
by brianc
For the Monitor's value, use Fader.x*127 or range(Fader.x,0,127)

If you have a MultiSlider, to get the CC associated with the third slider, you'd do Fader.x[2]*127

Re: Faders & Monitors

Posted: 11 Feb 2013 09:53
by Kaatza_Music
Took me a bit to figure it out, but once I did it worked like a charm. Thanks for the help!

One more question if I may. If a certain CC MIDI control function has a default setting of say 60, is it possible to set a fader so it stays on the default setting unless you move the fader up or down, but then once you remove your finger, it returns to the default? Kind of like the "Touch" function in automation in Logic Pro.

Re: Faders & Monitors

Posted: 11 Feb 2013 12:32
by Phil999
I did not try it, but using the z variable should do the trick.

First, create a script with floor(x*127)=60, executed 'On Load', to set the fader to its desired position. Then create a second script with floor(x*127)=60, executed when z goes to zero (arrow down).

No, you probably need to create an expression v=floor(x*127), and in the scripts v=60.

Re: Faders & Monitors

Posted: 11 Feb 2013 19:59
by brianc
If you use a MultiSlider, an alternative would be to use the physics engine. Enable 'Physic', set height=0.6, friction=1, and tension=1, and the fader will snap to 0.6 quickly.

Re: Faders & Monitors

Posted: 11 Feb 2013 20:39
by Phil999
oh yes, how elegant. Didn't think of that one. I forgot to use the physical parameters with fixed values.

Re: Faders & Monitors

Posted: 12 Feb 2013 00:32
by Kaatza_Music
Yes, the multi slider works perfectly for this. I tried the other method for a Fader and couldn't get it to work. Would still like to know how to do this with a Fader if it is possible. Being a newbie to this, I would need to know exactly how to enter the script or expression.

Appreciate the help!

Re: Faders & Monitors

Posted: 12 Feb 2013 08:46
by Softcore
Instead of calculatin floor here's my approach....I set up two monitors, one displaying CC values (x*127) and one displaying the actual x value...

This way Im able to know exactly which x value would return CC 60 value....

here it is
resettable_fader.jzml
(3.46 KiB) Downloaded 138 times
of course, you are then free to delete the monitors not needed - monitors can help a lot with scripting values, especially x - CC analogies, color codes and strings. ;)

Re: Faders & Monitors

Posted: 12 Feb 2013 12:31
by Macciza
Hi
The other thing is to let Lemur do the calculating by inverting the formula . .
if CC = x * 127 then x = CC/127 . . .

This sort of thing is also good for things in grid mode to make similar selections . .
Also with the monitor approach I often will use the value option to show the calculated value
Cheers
MM

Re: Faders & Monitors

Posted: 13 Feb 2013 12:40
by Kaatza_Music
@softcore.

Thanks. I got the Fader and monitors set up and they give me the x value and CC values as I move the fader, but I can't figure out how to get it to "snap back" to a preset value like CC=70. I can do it with multi sliders but my project will look a lot better if I can can do it with faders as I have a whole bank of faders but only need a few of them with default settings.