fm

All functions for FM music.

Methods

inner NoteOff(voice, note, octave)

Stop playing a note.
Parameters:
Name Type Description
voice number the voice between 0-8.
note number the note frequency.
octave number the octave.

inner NoteOn(voice, note, octave)

Start playing a note.
Parameters:
Name Type Description
voice number the voice between 0-8.
note number the note frequency.
octave number the octave.

inner SetInstrument(voice, instrument)

Convert the contents of a JS object into an instrument and set the parameters to the given voice.
Parameters:
Name Type Description
voice number the voice between 0-8.
instrument FmInstrument an instrument definition.