Home › Forums › General › Programming › [SOLVED] How to send value -63,0, +63 with an Image Slider ?
Tagged: modulator, negative values
- This topic has 6 replies, 2 voices, and was last updated 7 years, 5 months ago by JDXA.
-
AuthorPosts
-
November 21, 2016 at 6:13 am #70315
Hi,
I have to make a slider but the values must be -63 to +63 instead of 0 to +127.
I’ve put in Min and Max -63 and +63… on the computer screen, it lights up the correct values but on my Roland synth, the values are not correct… The slider don’t send the correct values…
I’ve read some topics but I cannot understand (I use CTRLR since 2 weeks only so I’m in a learning period)
Dasfaker wrote : “Why don’t you set a fixed slider and enter in the slider content values from 50-300, and in min/max values you set 2-127?
This way the modulator displays values 50-300 but sends 2-127.”Where are the slider content values ? (it seems not to be the Min and Max value !)
Also, I’ve read this :
” Enter these values in your modulator’s value contents box
-12=16372
-11=16373
-10=16374
-09=16375
-08=16376
-07=16377
-06=16378
-05=16379
-04=16380
-03=16381
-02=16382
-01=16383
+0=0
+01=1
+02=2
+03=3
+04=4
+05=5
+06=6
+07=7
+08=8
+09=9
+10=10
+11=11
+12=123But I cannot find the value content box !
And I’ve found this : “lt (modulatorValue, 0, 16383 – (abs(modulatorValue)), modulatorValue)”
But I don’t know where to put ?
Are they all a LUA solution ?
Thanks for your help,
Have a nice day,
Xavier-Joseph (JDXA) from Reunion Island,
November 21, 2016 at 8:53 am #70317These are no Lua solutions (there would certainly be ways to do this in Lua). The contents-box does only exist on the uiFixedSlider component. Maybe the community could help you when when we know what device you want to edit.
November 21, 2016 at 9:27 am #70318Hi,
My synth is a Roland JD-XA !
Ok, I’ve seen the “Slider contents” in the uiFixedSlider…
I’m going to try but, I cannot use this slider because I’ve drawn my own slider. It looks like the JD-XA one !
Is it possible to act on a slider that morroring another slider ?
I explain : I use my own slider, put -63 to 63 (to set up on uiLabel) but at the same time I act on an hidden slider that send the correct value : 0 to 127 !
It’s not a real solution it’s a tip… I know !!!!
On the other time, I’m learning LUA code while I’m making the JD-XA Editor and I’m not aware of all the syntaxes…
I suppose it’s this king of math calculs Modulatorvalue = 128 -64 but I don’t know, for the moment, how to write in LUA
Thanks a lot,
Xavier-Joseph (JD-XA)
November 21, 2016 at 11:06 am #70326there is also an uiFixedSlider where you can put your own custom images. Will look into the JD-XA sysex implementation this week.
btw. the newest Ctrlr release v5.4.16 is buggy. I recommend using v5.4.11 for developing panels.
- This reply was modified 7 years, 5 months ago by Possemo.
November 21, 2016 at 11:44 am #70328Thanks Possemo, I’m going to download and install the v.5.4.11 !
Because I seen uiFixedImageSlider and you’re right, there’s no this option !November 21, 2016 at 11:44 am #70329Ok, I’ve downloaded and istall the V5.4.11 I’m going to test !
Thanks for your help !
November 21, 2016 at 12:55 pm #70330YES ! It’s working !
I’ve lost all my job because a problem compatibility but no problem, I’m going to rebuild now !
Thanks a lot,
Your info was in gold !
-
AuthorPosts
- The forum ‘Programming’ is closed to new topics and replies.