SetInstrument
Sets the current MIDI instrument.
Syntax
-
SetInstrument(i)
-
i
is a string or an integer
-
Description
If i
is the name of a MIDI instrument as a string, or a MIDI instrument number between 0 and 127, then SetInstrument(i)
selects this instrument as the current one.
Examples
SetInstrument("Acoustic Bass"); NoteOn(60, 75); sleep(.5); NoteOn(70, 75); sleep(.5); NoteOn(80, 75); sleep(1.5); NoteSilence();