Skip to content

getPitch()

Return the note's pitch.

Parameters

Once an object note has been created, you can use the following function:

note.getPitch()

Returns

return pitch

Value Type Description
pitch int The MIDI pitch, from 0 to 127, or REST for a rest.