Knob default value

Discuss Lemur and share techniques.
Post Reply
djd_oz
Newbie
Posts: 5
Joined: 30 Jun 2012 13:06

Knob default value

Post 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
kclarkmusic
Newbie
Posts: 1
Joined: 10 May 2011 14:51

Re: Knob default value

Post 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)
whatisvalis
Regular
Posts: 153
Joined: 31 Dec 2011 17:12

Re: Knob default value

Post 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.
Traxus
Regular
Posts: 211
Joined: 30 Nov 2012 06:19
Location: Detroit
Contact:

Re: Knob default value

Post 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;
Post Reply