Page 1 of 1

switch to act like slider

Posted: 09 Jan 2012 12:27
by lewisedwards
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

Re: switch to act like slider

Posted: 09 Jan 2012 12:38
by lewisedwards
oooh, think i found something

Re: switch to act like slider

Posted: 09 Jan 2012 12:47
by Macciza
Hi
Have you tried ' firstof(Switches.x) ' to give you which one you pressed and then mapping that info how you want ? . .
Cheers
MM

Re: switch to act like slider

Posted: 09 Jan 2012 12:51
by lewisedwards
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

Re: switch to act like slider

Posted: 09 Jan 2012 13:45
by lewisedwards
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

Re: switch to act like slider

Posted: 09 Jan 2012 15:43
by lewisedwards
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.

Re: switch to act like slider

Posted: 10 Jan 2012 00:44
by lewisedwards
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.p ... amp+switch

Re: switch to act like slider

Posted: 10 Jan 2012 06:07
by Macciza
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

Re: switch to act like slider

Posted: 10 Jan 2012 09:44
by lewisedwards
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