General

Knob default value

Started by djd_oz on .

Sign in or create an account to join the conversation.

4 posts

Topic starter
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
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)
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.

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