General

Setting fader range

Started by db73 on .

Sign in or create an account to join the conversation.

13 posts

Topic starter
I've created a fader and assigned it to a control that has 4 positions. The problem is as soon as I touch the fader the control jumps from position 1 to position 4. When assigning a rotary knob on my MIDI controller I have to limit the MIDI range to 0-3 (as opposed to the default 0-127). How can I do this in Lemur?

BTW, at the moment I'm doing everything in App. I thought the 'range' value would be what I neede. But when I try to enter this as a script (range(fadername.x,0,3) I get a syntax error (texts turns red) as soon as I type 'range('. I think I'm on the right track ..... Ish! Need a bit of direction! Cheers ;)
Softcore wrote:In the mapping settings change the scale property from the default "0 to 127" to your preferred "0 to 3"
Cheers. I found that straight away in the Lemur Editor. But where do I find this (if indeed its possible at all) directly from within then App?
...... Been trying this again. There doesn't seem to be a way to do this in the App, unless it's a via a script maybe. But until I find out I'm thinking the only way is via the Lemur Editor.
I am no expert, just learning too. Try putting this into Fader "value" which you get to by clicking "More..." on the first page you see when you click on the Fader in Lemur app on your iPad.

range(FaderName.x, 0, 3)

This should give a range of 0 to 3.

Also make sure you set the Precision to 0 on the same page in the Fader.


If you want to see the values in a Monitor, create a Monitor and add the same thing to "value" in the Monitor.

range(FaderName.x, 0, 3)

And again, set the Precision to 0 in the Monitor. The Monitor should move from 0 to 3 when you move the Fader.

Hope that works for you. I tested it on my iPad and it seemed to work fine.
Hey, that worked! Thanks for that. Brilliant ;) I had tried that script before but I'd try to add it to the script area. If I show the value I can see that the full range of the fader now only goes from 0-3.

However, when mapped to the assigned parameter on the synth I can see that all 4 positions on the parameter (in this case an LFO SYNC control with 4 options/positions) are reached within the very first part of the fader movement. It's like it's showing the correct range on the fader, since adding the script, but is still transmitting 0-127! Erm. Should there be something in the 'Unit' box (directly under 'value' in Lemur). I'm so close now I can smell it :D

EDIT: actually the 'unit' simply displays whatever you type in there as the object value unit .... Hence the name 'Unit' I guess :idea:
..... Just tested this in the Lemur Editor. You still need to add the range script in the 'value' area in order to get the fader to display (in this case for what I'm doing) 0-3. So clearly the 'scale' thing in the editor is separate from what is defined by the range command. So the range thing works fine but I still need to find out how to change the scale in the Lemur App so that the entire length of the fader only outputs 0-3 as opposed to the default 0-127.
Kaatza_Music wrote:Just wondering, but if you have 4 settings, wouldn't a Switches work better with 4 switches and the radio function engaged? This sends a value of 0, 1, 2, 3 depending on which switch is selected. Just a thought.
Nice idea ;) I tried this but it didn't work either. I gave the switch 4 rows & enabled radio. But when I select the second row in the switch the parameter I'm controlling jumps to the fourth position! What I've noticed is that the 'scale' setting is also present in the MIDI mapping window of the Lemur Editor. So in order for this to work I guess I still need to define the 'scale' as 0-3, which it appears you cannot do directly in the Lemur App :(
.... Okay, I've managed to botch an ad hoc connection between a laptop and my iPad and managed to get the Lemur editor on the laptop connected to the Lemur App. Didn't work how I expected it to (I said it was botched!) but it worked.

So, on here I was able to create a fader, assigning to the MIDI CC for the parameter I've been trying to control .... Now the important bit - I set the scale for this fader in the Lemur editor from the default 0-127 to the desired 0-3. Now I connect the iPad to the computer (I'm using an IK iRig MIDI interface for the iPad) .... BINGO! the fader now controls the parameter correctly. Works best with the grid enabled on the fader.

So, the problem is DEFINITELY that I cant set the scale in the iPad App. If I could do this I'd be in business ;)
Softcore wrote:Ok i now see what the problem is - lack of "range" setting in the in-app editor.....truth is, I dont use it at all - i prefer the computer editor and i think most of the users pretty much know that the in-app editor is, for the time being, a stripped-down version of the editor...
It's actually the 'scale' setting that is missing. Range can be added with a script but I don't think you can script the scale setting.

Anyway, I've managed to get around the issue by linking to the Lemur Editor on a laptop with an ad hoc network. From here I was able to download the template I'd made from the Lemur App, add the scaling and then place the template back on the iPad with the changed (by disconnecting the iPad in the editor and then re-connecting). Then I just saved the updated template in the App. I was of course also able to save the template onto the laptop so all good.

I think a combination of the in App editor and the Lemur Editor works best for me. Some things are easier to do in the App Editor others easier using the Lemur Editor. I'm just glad I got the thing working for me ;) Very pleased with my first template (for Reason 6.5's Viking synth Rack Extension), which once completed (going to add more pages) I will share.