General
switches...
Started by digitalson on .
Sign in or create an account to join the conversation.
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)
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)
here is an example (changing the knob.x's cc output)
ps--will delete after you download
let me know if you need more help (or if it doesn't work cuz I didn't test it..)
CCSwitch.jzlib
ps--will delete after you download
let me know if you need more help (or if it doesn't work cuz I didn't test it..)
CCSwitch.jzlib
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
and with all switches off rewind and ff,not sure how to do this ,but will try ur idea,scripting is not an option for me ,i have no idea aboutthe syntax
?? 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.
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.
So if I understand correctly, you don't want 8 pads for all ff/rw things but 2 pads with each 4 switches?
Doesn't that make the total number of switches 10, which is even more than before?
Doesn't that make the total number of switches 10, which is even more than before?
No cause the pad is in the transport at the bottom and u can make a switch small and surround a pad on left ,right ,top,and bottom,I'll send u a screen shot...it will free up 8 pads
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
here is a Pads object, that sends to CC 21,22,23,24 (customize by editing the AllCCs expression) - selectable via a Switches object (4 switches).
Each time a switch is selected, not only the Pad sends to the preassigned CC but also reflects its function via a label.
Pad-with4switchableCCout.jzml
Each time a switch is selected, not only the Pad sends to the preassigned CC but also reflects its function via a label.
Pad-with4switchableCCout.jzml
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!!!
Well see, it all depends on what you are after.....In my design above I followed your earlier instructions - you didnt ask for a fifth, "default" assignment of CC.
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!!!!!
In the level of what you are after......EVERYTHING is possible.....
But you have two choices:
Either
a).be very specific on your questions here in the forums
or
b).learn a bit about scripting
I'll be back with a second example soon.
But you have two choices:
Either
a).be very specific on your questions here in the forums
or
b).learn a bit about scripting
I'll be back with a second example soon.
ya know i want to learn,but its a matter of time,im always working on a film or a mix or mastering project.and i cant experment to much,i guess thats why this lemur cb8 project took 4 months to build
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
image.jpg
and a screenshot of the cb8 project
https://docs.google.com/file/d/0B2YF900KJrEcbnh1US1DWXJUNjA/edit?usp=docslist_api
https://docs.google.com/file/d/0B2YF900KJrEcbWNLdjJHT2gxU1k/edit?usp=docslist_api
https://docs.google.com/file/d/0B2YF900KJrEcaEJfay1IWHlmTkU/edit?usp=docslist_api
see how the switches can eliminate some commands that do kinda of the same thing like events,,,move,nudge,locate,etc
https://docs.google.com/file/d/0B2YF900KJrEcbnh1US1DWXJUNjA/edit?usp=docslist_api
https://docs.google.com/file/d/0B2YF900KJrEcbWNLdjJHT2gxU1k/edit?usp=docslist_api
https://docs.google.com/file/d/0B2YF900KJrEcaEJfay1IWHlmTkU/edit?usp=docslist_api
see how the switches can eliminate some commands that do kinda of the same thing like events,,,move,nudge,locate,etc
softcore a question,,,why do u need the string that starts with 1.0.0.0 ?
sorry can u make one with 2 switckes for the slip csr ?so i can switch between jog and shuttle
https://docs.google.com/file/d/0B2YF900KJrEcRkM4R3FBbVdVSWc/edit?usp=docslist_api
https://docs.google.com/file/d/0B2YF900KJrEcRkM4R3FBbVdVSWc/edit?usp=docslist_api