General
switch to act like slider
Started by lewisedwards on .
Sign in or create an account to join the conversation.
hey all,
currently building a lemur patch for my live set and am running into a wall with problems.
i want to use the switch object to control the beat division in ableton, having the switch split the same way: 2X4
but the switch only allows 127 for each switch. how can this be ramped in value so when i reach it is then 127. basically like a slider
i am working in midi rather than osc.
so say the first one is : 0-20
second: 21-40
and so forth
until you reach the last: 108-127
i will work through it to find out, but help would be nice
regards
lewis edwards
------
smokingbunny.co.uk
currently building a lemur patch for my live set and am running into a wall with problems.
i want to use the switch object to control the beat division in ableton, having the switch split the same way: 2X4
but the switch only allows 127 for each switch. how can this be ramped in value so when i reach it is then 127. basically like a slider
i am working in midi rather than osc.
so say the first one is : 0-20
second: 21-40
and so forth
until you reach the last: 108-127
i will work through it to find out, but help would be nice
regards
lewis edwards
------
smokingbunny.co.uk
oooh, think i found something
Hi
Have you tried ' firstof(Switches.x) ' to give you which one you pressed and then mapping that info how you want ? . .
Cheers
MM
Have you tried ' firstof(Switches.x) ' to give you which one you pressed and then mapping that info how you want ? . .
Cheers
MM
no i have not... yet
im still pretty new to lemur, was more a touchosc guy until lemur came out for the padi
but will try out what you said
im still pretty new to lemur, was more a touchosc guy until lemur came out for the padi
but will try out what you said
that has worked to some degree, so thanks.
but i am still unclear how to get it to act like a slider.
at the moment it acts like it is stepping along, when i press a switch [no matter which one] it steps up to the next value, basically going in a circle
but i am still unclear how to get it to act like a slider.
at the moment it acts like it is stepping along, when i press a switch [no matter which one] it steps up to the next value, basically going in a circle
ok...
have given this some thought over noodles and tea. the one thing i know is that it is scripting to assign each button.
only thing with that is that i dont know the script itself.
i have used the "firstof(Switches.x)" and has worked to some degree. but what would be the script to assign each switch
i was thinking something like
=scale-Switch.x0[0-15]
=scale-Switch.x1[16-31]
and so forth until i reach the end
but to be honest dont know much code.
have given this some thought over noodles and tea. the one thing i know is that it is scripting to assign each button.
only thing with that is that i dont know the script itself.
i have used the "firstof(Switches.x)" and has worked to some degree. but what would be the script to assign each switch
i was thinking something like
=scale-Switch.x0[0-15]
=scale-Switch.x1[16-31]
and so forth until i reach the end
but to be honest dont know much code.
hello... again
after some thought, searching and food. came across some things on the jazzmutant site. though the code does not seem to work as i thought it would.
the same is asked someone and seem to be answered, but im having trouble still
here is the source page
http://forum.jazzmutant.com/viewtopic.php?t=2537&highlight=ramp+switch
after some thought, searching and food. came across some things on the jazzmutant site. though the code does not seem to work as i thought it would.
the same is asked someone and seem to be answered, but im having trouble still
here is the source page
http://forum.jazzmutant.com/viewtopic.php?t=2537&highlight=ramp+switch
Hi
Does something like this help - MIDI map in LIVE
beatsw = Custom midi sending on CC#22 using stretch and firstof in value field of Custom MIDI . . .
labels() = onload setattributes to set multilabels . . .
Hope that helps
Cheers
MM
BeatSwitches.jzlib.zip
Does something like this help - MIDI map in LIVE
beatsw = Custom midi sending on CC#22 using stretch and firstof in value field of Custom MIDI . . .
labels() = onload setattributes to set multilabels . . .
Hope that helps
Cheers
MM
BeatSwitches.jzlib.zip
thats great, thank you for your time and help.
did think of a quick work-around to the problem. and it was to double the y axis as the division selector [dont know why i did not think before]. saves on landscape as well. but will be using both to accommodate.
but more than likely will use your example as it just makes more sense
again, thanks
did think of a quick work-around to the problem. and it was to double the y axis as the division selector [dont know why i did not think before]. saves on landscape as well. but will be using both to accommodate.
but more than likely will use your example as it just makes more sense
again, thanks