midiin_note()

Reads a specific MIDI note message from the MIDI input device and returns the velocity of that note.

Syntax

midiin_note({notenum})

Parameters

Parameter Type Description Comment
notenum Number The MIDI note number to check for.

Return Value

Examples

Check the status of MIDI note 60 (Middle C)

midiin_note(60); // returns 1 if the note is active, otherwise 0

See also

midi_note_on
midi_note_off
midi_ctrl
midi_prog
midi_play
midi_stop
midi_is_playing

midiin_channel
midiin_prog
midiin_note
midiin_ctrl