General
Ramp Values of Switches...
Started by metamorfosis18 on .
Sign in or create an account to join the conversation.
HI everyone, how can I ramp the value of this switches. I want to assign them to a fader but instead of making the fader jump abruptly I would like to make it fade from one value to the next. I have include an example, any help will be greatly appreciated!!
Thanks.
SwitchRamp.jzml
Thanks.
SwitchRamp.jzml
I found this example here which does almost what I need! I would have to maybe apply some of the coding from this one, to my previous example to make it work!!
Now thats the problem, I tried, but since I really don't understand the logic behind the coding to well, is almost imposible to get it to work by chance!!
Can anyone help merging this to examples please!
SwitchRamp2.jzml
Now thats the problem, I tried, but since I really don't understand the logic behind the coding to well, is almost imposible to get it to work by chance!!
Can anyone help merging this to examples please!
SwitchRamp2.jzml
hm I am a little confused
Ok so you want to change a fader's x value with switches, but you want the fader value to change gradually instead of instantaneous right? And then you want a knob or something to control how quickly the value changes?
Is that right or totally off?
Ok so you want to change a fader's x value with switches, but you want the fader value to change gradually instead of instantaneous right? And then you want a knob or something to control how quickly the value changes?
Is that right or totally off?
Hey man thanks for replying, you almost got right!
instead of using a fader, I would like to use this switches to control a fader in Ableton, so I that can determine exactly the value that is being sent each time a press one of them.
So lets say I have five switches, they all send the same CC to be assign to control a fader in Ableton or any other DAW.
1st one sends a value of 0, so it should make the fader in Ableton ramp down slowly from wherever it was, to 0. (Not jump)
Second send a value of 20, lets say, so if pressed, the fader in Ableton should now ramp slowly up or down from where it is to this new value
and so on....
The last switch would be full value, lets say 127, and again if tapped, my fader in Ableton should slide up from where it was to its full level.
About the knob that you asked, I don't really need to change speeds. It could be a fixed speed, just not too fast for a smooth fade effect.
I would like to find and edit that value, of course if I feel that is to fast or slow for my purposes.
Thanks again, I hope I didn't bore you with this long explanation!!
instead of using a fader, I would like to use this switches to control a fader in Ableton, so I that can determine exactly the value that is being sent each time a press one of them.
So lets say I have five switches, they all send the same CC to be assign to control a fader in Ableton or any other DAW.
1st one sends a value of 0, so it should make the fader in Ableton ramp down slowly from wherever it was, to 0. (Not jump)
Second send a value of 20, lets say, so if pressed, the fader in Ableton should now ramp slowly up or down from where it is to this new value
and so on....
The last switch would be full value, lets say 127, and again if tapped, my fader in Ableton should slide up from where it was to its full level.
About the knob that you asked, I don't really need to change speeds. It could be a fixed speed, just not too fast for a smooth fade effect.
I would like to find and edit that value, of course if I feel that is to fast or slow for my purposes.
Thanks again, I hope I didn't bore you with this long explanation!!
Ok yea, totally doable.
If I have time I can put up an example later today
If I have time I can put up an example later today
Do you want the ramp time the same for every increment or relative to the increment's size?
That's a good question, I would say relative to the increment's size.
I really appreciate your help, thanks man!
I really appreciate your help, thanks man!
ok
I made one that is not relative to size, it is the same ramp time for every change.
I used a multislider with physics on to avoid using any on frame scripts. So it is super efficient. You just have to keep it around (you can hide it somewhere) that object is called: 'timer'
So I hope you can figure it out and learn. No directions really, but I tried to keep it simple (ask for explanations if needed)
2 knobs: 1 sets number of switches and 2nd is the speed
let me know
(deleted the module because I reposted it later)
I made one that is not relative to size, it is the same ramp time for every change.
I used a multislider with physics on to avoid using any on frame scripts. So it is super efficient. You just have to keep it around (you can hide it somewhere) that object is called: 'timer'
So I hope you can figure it out and learn. No directions really, but I tried to keep it simple (ask for explanations if needed)
2 knobs: 1 sets number of switches and 2nd is the speed
let me know
(deleted the module because I reposted it later)
haha I didn't see your response until after I finished. Well, tell me if it suits your needs. Otherwise relative isn't too much harder
No problem! Thanks a lot for your help, I will try it right now before I go to bed.
I'll get back at you, thanks again.
I'll get back at you, thanks again.
Hey I tried it but for some reason the switches don't send midi out and the fader is locked, like frozen on the iPad . Now I tried closing and opening the app again and the fader starts to go down from the top slowly and then it works. But every time I sync it with the lemur editor on laptop it happens again it does not work.
Any ideas, is this normal behavior maybe because of the coding?
If you do check it, can you help me out with the relative rate coding!
I will study and analyze this example to try to understand the logic/syntax behind it!
This is brilliant work, I had been trying to do this for so long with any success, thanks a bunch man.
Any ideas, is this normal behavior maybe because of the coding?
If you do check it, can you help me out with the relative rate coding!
This is brilliant work, I had been trying to do this for so long with any success, thanks a bunch man.
try this
And I just tested it, MIDI is being sent out. Make sure you are using target 0, otherwise change the variable called 'target' if you want to use a different one.
will do relative later
And I just tested it, MIDI is being sent out. Make sure you are using target 0, otherwise change the variable called 'target' if you want to use a different one.
will do relative later
actualyl it was super easy, here it is, with relative speed.
arg there was still an issue at startup, give me a minute
Ok
ok, finally got it,
Runs fine at startup, is relative speed and sends midi
Runs fine at startup, is relative speed and sends midi
WAAAIIIIT
I tested it some more and it kept freezing (because value keeps going out of limits in different places)
OK I think I got it right, it's not locking for me anymore. Let me know if it works fore you
(definitely download this one, the last one had issues)
I tested it some more and it kept freezing (because value keeps going out of limits in different places)
OK I think I got it right, it's not locking for me anymore. Let me know if it works fore you
(definitely download this one, the last one had issues)
Ok
I tried it and it works perfectly!!
I cant thank you enough!!
You are a genius man.... I really appreciate it.
I'll send you a PM.
I cant thank you enough!!
You are a genius man.... I really appreciate it.
I'll send you a PM.
One last question, which script did you change to make it relative speed? was it 'timin' under 'ramp'