setInstrument()
Set the part's instrument.
part.setInstrument(instrument)
Parameters
part.setInstrument(instrument)
| Parameter | Type | Default | Description |
|---|---|---|---|
instrument |
int |
required | The instrument (timbre), as a MIDI instrument number from 0 to 127. |
Set the part's instrument.
part.setInstrument(instrument)
part.setInstrument(instrument)
| Parameter | Type | Default | Description |
|---|---|---|---|
instrument |
int |
required | The instrument (timbre), as a MIDI instrument number from 0 to 127. |