Skip to content

getInstrument()

Return the part's instrument.

part.getInstrument()

Returns

return instrument

Value Type Description
instrument int The instrument (timbre), as a MIDI instrument number from 0 to 127.