MIDI Routing - Floating Tile Keyboard Retrigering (strategy help)
-
Have a rather simple setup,
- sample player for instrument samples "controlled" by floating tile keyboard
- two audio loop players for atmos controlled by two buttons
Whenever I play through the floating tile keyboard it also retriggers the Audio Loop Player. Both of the Audio Loop Players are connected via Buttons on the main interface and I use a MIDI Processor to specifically trigger those two players.
I assume I would need to MIDI map the keyboard just to the sampler but am thinking what would be the best way to do it? Through MIDI Processor? Channel selection?
Any help greatly appreciated!
-
All the keyboard does is send out MIDI notes. Anything in the chain that can receive those notes will respond. If you don't want something to respond then you need to place a MIDI processor at that point in the chain and in it's on note on and on note off callback's you ignore the incoming events.
-
@d-healey said in MIDI Routing - Floating Tile Keyboard Retrigering (strategy help):
it's on note on and on note off callback's you ignore the incoming events.
thank you as always @d-healey! I assume this is done by using the following command?
Settings.toggleMidiInput( String midiInputName, bool enableInput)
however, aren't the Audio Loop Players also triggered by MIDI note 64? - which is connected to the button?
-
however, aren't the Audio Loop Players also triggered by MIDI note 64? - which is connected to the button?
No idea, is that what you've done?
I assume this is done by using the following command?
Not quite. In those callbacks you need to ignore the incoming messages. This is done using
Message.ignoreEvent(true);
-
@d-healey said in MIDI Routing - Floating Tile Keyboard Retrigering (strategy help):
No idea, is that what you've done?
yeah, I'm using a button connected to the MIDI Processor to trigger a note on event, kickstarting the Audio Loop Player. Should I done it a bit differently? :)
const var processorButton = Content.addButton("processorButton", 0, 0); const var AudioLoopPlayer1 = Synth.getChildSynth("Audio Loop Player1"); reg eventId; processorButton.setControlCallback(playAtmo); inline function playAtmo(component, value) { if (value) { eventId = Synth.playNote(64, 100); } else Synth.noteOffByEventId(eventId); };
hope this is ok?
@d-healey said in MIDI Routing - Floating Tile Keyboard Retrigering (strategy help):
This is done using Message.ignoreEvent(true);
great! will try it with this tomorrow!
-
@fellowfinch You could probably just put your trigger script after the ignore events script.
-
@d-healey said in MIDI Routing - Floating Tile Keyboard Retrigering (strategy help):
Message.ignoreEvent(true);
This works perfectly! Thank you @d-healey