Page 1 of 1

Knob default value

Posted: 21 Aug 2012 08:03
by djd_oz
Hi there,

I have noticed that for some reason the default Knob x value is always 127. I try to change this by creating a onLoad script with x=64 and that doesn't seem to set the value.

Also, I have tried to create a pad and when pressed to set this value to 64. i.e. create a pad and create a onExpresssion script with Knob.x=64.

Still no luck.

Any assistance would be appreciated.

Many thanks,
djd_oz

Re: Knob default value

Posted: 04 Dec 2012 18:11
by kclarkmusic
Looking for similar help.

It would be great to have a Default or Reset Value. Or some other way to reset a fader or knob.

For instance, double tapping on a knob would reset knob value to specified value (0 for reg knobs // 64 for bi polar)

Or even if you could add a button or pad that could be placed in the center of the knob to perform this same function.

Also, is there a way to add a "Notch" to a Fader or Knob. I don't necessarily want to quantize the entire range, but rather to ensure that I can accurately "snap" the value to 0 or 64 or whatever the desired point. (ie. Bi polar knob that had a snap to 64 (center) function)

Re: Knob default value

Posted: 04 Dec 2012 20:09
by whatisvalis
X position is determined by 0 to 1

Knob.x = 0; will reset
0.5 would be half
1 is full/on

You could use an onLoad script or a button with a script to reset etc.

Re: Knob default value

Posted: 05 Dec 2012 01:56
by Traxus
I havent tested it but this should work to inerpolate the midi range of 0-127 to the knob/fader/whatever range of lemur elements. Surprising this isn't an internal function.

Code: Select all

decl desired_midi_value;
decl knob_value = (1/127)*desired_midi_value;
//now feed it whereever
knob.x = knob_value;