"Range" Modifier (if x >A && x < B )
Posted: Tue Jul 25, 2017 11:31 pm
I have MIDI notes doing different things on the same channel, essentially changing the colour of a mask on the video output.
The problem is that I want the modifier that deals with colour to only respond to MIDI notes from my 'colour' buttons, and nothing else on the same MIDI channel. The ideal solution would be for a modifier than allows for a thru-put range to be set. Sadly, an expression can't do this as I've tried tirelessly; I just keep getting NaN returned as it doesn't know how to do nothing if the result is false. I figure a modifier that can go in sequence would be far simpler anyway...
One A value. One B value. If X input value lies between A and B, carry on processing the output... otherwise, the output value remains unchanged and hence the module doesn't respond to any MIDI values outside A and B in this case.
Ta muchly,
D.
The problem is that I want the modifier that deals with colour to only respond to MIDI notes from my 'colour' buttons, and nothing else on the same MIDI channel. The ideal solution would be for a modifier than allows for a thru-put range to be set. Sadly, an expression can't do this as I've tried tirelessly; I just keep getting NaN returned as it doesn't know how to do nothing if the result is false. I figure a modifier that can go in sequence would be far simpler anyway...
One A value. One B value. If X input value lies between A and B, carry on processing the output... otherwise, the output value remains unchanged and hence the module doesn't respond to any MIDI values outside A and B in this case.
Ta muchly,
D.