setInstrument()
Set the phrase's instrument.
Parameters
Once an object phrase has been created, you can use the following function:
phrase.setInstrument(instrument)
| Parameter | Type | Default | Description |
|---|---|---|---|
instrument |
int |
required | The instrument (timbre), as a MIDI instrument number from 0 to 127. |