Skip to content

setPitch()

Set the note's pitch.

Parameters

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

note.setPitch(pitch)
Parameter Type Default Description
pitch int required The new MIDI pitch, from 0 to 127, or REST for a rest.