Page 1 of 1

Disable a Fader.

Posted: 24 Jul 2015 09:53
by droman
I need to disable a fader at any time.

kind of like:

Fader.enable = false;

It would also be able to change the channel or Midi Controller number that will send information to send it to a free channel.

Thanks.

Sorry for my english ;)

Re: Disable a Fader.

Posted: 24 Jul 2015 22:51
by ndivuyo
Can't exactly do it the way you are saying, but there are several workarounds depending on what you want.

If you also want to change the MIDI channel or CC#, then you would probably just want to manage the whole thing through a ctlout() command or a custom MIDI.

To do ctlout(), you will have to do little scripting. The arguments for it are ctlout(target,cc#,value,channel)
Then just make an expression or 2 or an array and assign the desired variables to the cc# argument and/or channel argument.

Then to disable the fader, either change the cc# variable to an unnassigned number, or make a condition to prevent the ctlout() message from being sent.


There are other workarounds too, but this one encompasses both of your requests I think. Let me know if it helps and if you have further questions. I can post an example if you need one.