getInstrument()
Return the part's instrument.
Parameters
Once an object part has been created, you can use the following function:
part.getInstrument()
Returns
return instrument
| Value | Type | Description |
|---|---|---|
| instrument | int |
The instrument (timbre), as a MIDI instrument number from 0 to 127. |