Midi filter in createNoteInput?

Post Reply New Topic
RELATED
PRODUCTS

Post

Hi

Could someone please explain what each question mark represents in:

Code: Select all

noteInput = host.getMidiInPort(0).createNoteInput("", "??????", "??????");
Thanks.

Post

Ok, it looks like status, data 1 and data 2, would that be right? 90 and 80 used in some scripts which matches note on and off. In Tom's multi scripts the second "?" is used for the midi channel filter. One more line that actually makes sense. :)

Post

Just check the midi documentation here:
http://www.midi.org/techspecs/midimessages.php
The second table has all the common stuff in HEX as this command needs it (so each position can have 16 values from 0 to F).

A question mark means: "Whatever", like a joker. So having all question marks means "Let it all through".
You can combine ? at any position with any fixed values and can have as many such definitions in that line as you need if you want to go specific.

The first position being an 8 is note off, a 9 is note on, where the next position defines on what midi channel (as you found out).
You are also right about the status, data1 and data2, which is used differently depending on the actual midi message. For notes it is note number and velocity, for CCs it is controller number and value etc.

Be aware that what you let through to the note lane here is not sent to the onMidi function if you don't explicitly say so with:
NoteInputName.setShouldConsumeEvents(false);

Cheers,

Tom
"Out beyond the ideas of wrongdoing and rightdoing, there is a field. I’ll meet you there." · Rumi
UrbanFlow.art · Instagram · YouTube

Post Reply

Return to “Controller Scripting”