Build 4155, up now has three new functions to query the status of the held notes on the on-screen keyboard:
is_note_held(noteNumber, [channel])
all_notes_held(noteNumbersArray, [channel])
any_notes_held(noteNumbersArray, [channel])
Channel defaults to 1 if not specified.
eg: all_notes_held([60,64,57], 2)
would return 1 if Middle-CMaj chord is held on channel 2.
Note the first parameter of the any_notes_held
and all_notes_held
functions are arrays and require the []
syntax around the notes to check.