Algosim documentation: NoteOn

NoteOn

Turns on a note.

Syntax

Description

NoteOn(n, v) turns on MIDI note n with relative intensity v. The current instrument is used.

Depending on the instrument, the note has to be manually turned off using the NoteOff function.

Examples

SetInstrument("Acoustic Grand Piano");
NoteOn(61, 127);
NoteOn(65, 127);
NoteOn(68, 127);
sleep(0.5);
NoteOn(61, 127);
NoteOn(65, 127);
NoteOn(68, 127);

SetInstrument("String Ensemble 1");
NoteOn(60, 80);
sleep(1);
NoteOn(45, 100);
sleep(1);
NoteOn(85, 80);
sleep(1.5);
NoteSilence();

See also