Algosim documentation: SetInstrument

SetInstrument

Sets the current MIDI instrument.

Syntax

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();

See also