[sharing] autoswitch ON/OFF for any device
Hello.
I (...with a lot of copy/paste from forums,...=) made a piece of m4l patch that you can put in any device (audio and midi)
which add an "auto switch on/off" functionnality to auto switch off the device
when the chain selector doesn't correspond to the chain number where the device is.
It's like the AutoBypassChain from WeirdNoise but directly integrated in any device, now, not all the devices of a chain are switched off but just the devices where this code is. You can bypass this autoOnOFF function and redirect it for something else If you need.
The code is a bit messy, but it works.
... if you have an idea to make it cleaner, I 'd like to learn how! thank you
------------------------------------------------SETUP
- Just copy thethe code below from <pre><code> until the end.
- then open a m4l device in edit view
- Go to File/New From Clipboard
- copy the patch from the new window
- paste it anywhere in a device where you want to add this functionnality
- move the new auto-on/off button in the desired place in the device.
- save the device.
- close it
- drag and drop it from the live's navigator menu in a rack
--->the rack has to already be created.
--->don't create the rack by the "group" command of the device.
- drag another device in another chain of this rack.
- move chain range of the chain 1 to [0-0], for chain 2 on [1-1], for chain 3 on [2-2] etc...
------>it's working anyway if you let all the chains on [0-0] but you will just loose the little yellow arrow which select the current active chain
EXAMPLES:
There is here a device that upgrade the Expression Controller device with this addon to permit to change all the mappings setting of your live set on the fly with the chain selector and a controller
Or another device that do the same but for direct mapping and with a preset bank to store and recall all your bindings.
This way you can have several controller binding in the same live.Set
/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\/!\
----> The autoswitch mode only works if the device is in a Rack
------------------>Sometimes, the device will not autoswitch if the rack is created after the device
------->create a rack and THEN drag and drop the device from the navigator.
if you want several chains ; do the same for each
Hope it can help !
Cheers
Julien