General

switches...

Started by digitalson on .

Sign in or create an account to join the conversation.

30 posts

Topic starter
how can i use a switch to change the cc output of a button ? not a pad,then can i use multiple switches for a button to have different functions? and please provide examples,cause progamming scripts i am new to
I'm in a rush, so I can't post an example, also I don't use MIDI too much so there could be a better way perhaps?
But

2 ways off the top of my head: You create a 'custom MIDI' (bottom right corner) and then the MIDI mappings for it (top left) have an option to put open variables (expressions) for the values. So, you could do this many different ways. One way would be to make an array (create an expression and then make a list for it's values like this: {20,21,22,44,33} )
Inside that array (list) put all your desired cc values. Then you need to relate the switches current value to get the desired array value. For this you use firstof(x). SOO you could either do this in a script, or as a variable, or in a long-winded variable directly on the MIDI mapping.
Then for the 'controller' argument in the MIDI mapping section (which is the cc #) you would put that variable

EXAMPLE

create 2 expressions: values and valu (values will have the list of desired cc # and valu will be the one it is

values = {22,23,50,52}
valu = values[firstof(Switches.x)]

Then in the custom MIDI expression, you would type 'valu' where it says 'controller' (make sure it's a B0 control change)

There are many ways you could do this one example. You can also accomplish this with using scripting using midiout()
also, if you use the first method, if all your cc #'s are consecutive, you can just add the firstof(Switches.x) value to another value

For example, you start at cc # 50 and want to go to 55

have the controller value equal this: 50 + firstof(Switches.x)

Anyway, hope that works, if not let me know, maybe someone will suggest a better way (it also really depends on what you want)
ill tell u want i need to happen ,in transport i have ff and rewind,now i can surround each button with 4 switches thus eliminating 8 buttons,cause i can have rewind do nudge ,bar fast rewind and -1frame down, so 4 buttons will make pad do 4 functions
?? I'm having trouble understanding. you want 4 buttons to act as 8 controllers with a switch that changes through them?
Do you want to post what you are doing, or maybe clarify.
Maybe there is a simpler/different solution then having to change the cc with a switch.
Unless you got it, then that's good.
ill tell u want i need to happen ,in transport i have ff and rewind,now i can surround each button with 4 switches thus eliminating 8 buttons,cause i can have rewind do nudge ,bar fast rewind and -1frame down, so 4 buttons will make pad do 4 functions
How can I use this if all switches are off will the button just go to original cc assignment?...thanks in advance...if I could this to work my cubase project will be awesome ,I have like 500 kc's and all types of cool channel control and automation
cool ill try it out tomm,,,did u use independant switches or array? cause i need ind cause i am going to surround the pad with the switches,i will send a screenshot of what im talking about,if this works it's going to save me many pads with simple things like functions like snap values,record modes,automation,markers,i can have the same pad set ,locate and cycle and zoom.fantastic!!!
is that possable,or do the switches detremine the cc out ? so the pad will have to have a switch on or it will have no function?,yes a defualt cc for orig function would be nice , but if not possable thats ok i guess, tomm i will upload a screenshot to visulize what i mean,again thanks for helping me with this killer project that u all will love!!!!!
softcore....i tryed ur pad idea,,,and its awesome !!! i made a few of them and just changed the pads name in script as well i addes 4 more switches and figured it out...now how can i do the same thing but add 4 more to top of pad? not that it matters cause i did put 2 rowss of 4 and figued it out 4 on top and 4 on bottom would be good ,is that hard? heres a screenshot of what i was thinking about,,,,,btw urs was nice and i can fy around the switches

image.jpg