General

switch to act like slider

Started by lewisedwards on .

Sign in or create an account to join the conversation.

9 posts

Topic starter
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
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
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.
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