How to switch on/off an FX module with Sustain Pedal (or other CC)?
-
How to switch on/off an FX module with Sustain Pedal (or other CC)?
-
@musictop -look for MIDI CC64
0 to 63 = Off, 64 to 127 = On
-
@Lindon cool, thanx a lot... would appreciate any hints on how to script it? :)
I have no idea how to approach this! -
@musictop said in How to switch on/off an FX module with Sustain Pedal (or other CC)?:
@Lindon cool, thanx a lot... would appreciate any hints on how to script it? :)
I have no idea how to approach this!function onController() { Console.print(Message.getControllerNumber()); Console.print(Message.getControllerValue()); }
-
You can also make use of
Synth.isSustainPedalDown()
-
@Lindon @d-healey Thank you very much guys, i think i got it!
I'm working on an update for my piano instrument. I have joined all piano samples in a single stereo wav file and use it with convolution reverb to simulate strings resonance of sustain pedal. I like how it sounds - it works as a kind of a simulation of the resonance effect. I thought to control it with sustain pedal - enabling and disabling convolution module according to pedal state!
-
@musictop Thought I'd share this. Sustain pedal switching on/off "process input" on convolution reverb module.
function onController() { if (Synth.isSustainPedalDown() == true) ConvolutionReverb1.setAttribute(4, true); if (Synth.isSustainPedalDown() == false) ConvolutionReverb1.setAttribute(4, false); }
-
@musictop said in How to switch on/off an FX module with Sustain Pedal (or other CC)?:
@musictop Thought I'd share this. Sustain pedal switching on/off "process input" on convolution reverb module.
function onController() { if (Synth.isSustainPedalDown() == true) ConvolutionReverb1.setAttribute(4, true); if (Synth.isSustainPedalDown() == false) ConvolutionReverb1.setAttribute(4, false); }
or the slightly shorter version
function onController() { ConvolutionReverb1.setAttribute(4, Synth.isSustainPedalDown() ); }
-
@Lindon Thanks... I must learn to think in that way! Much appreciated!
-
@Lindon May i bother you with some more please :)
I need to use this:
MidiAutomationHandler.setConsumeAutomatedControllers(bool shouldBeConsumed)
but have no clue on how to use it! Any advice/suggestion in this regard?
-
@musictop Try to avoid using magic numbers. Almost all effect controls have constants available (shown in the module browser).
ConvolutionReverb1.setAttribute(ConvolutionReverb1.ProcessInput, Synth.isSustainPedalDown() );
-
@d-healey Great, thanks!