HeldNotes

heldnotes (<include sustain?>)

Returns a map with all the currently held down MIDI notes and their properties.

Parameters:

  1. Whether or not notes that are not pressed down, but are still left playing due to the sustain pedal, should be included in the result.

Returns: A map with all the currently held down MIDI notes, where the map keys are the note numbers, and the map values are lists of maps with note properties.