Module

midi

MIDI music functions. See Midi on how to load MIDI files.

View Source doc/internal.js, line 164

Methods

# inner MidiGetPos() → {number}

Get song position.

View Source doc/internal.js, line 200

current song position in MIDI file.
number

# inner MidiGetTime() → {number}

Get song position.

View Source doc/internal.js, line 194

current song position in seconds.
number

# inner MidiIsPlaying() → {boolean}

Check if the file is still playing.

View Source doc/internal.js, line 173

true if the file is still playing.
boolean

# inner MidiOut(data)

Send MIDI commands to output.
Parameters:
Name Type Description
data Array.<number> an array of midi commands.

View Source doc/internal.js, line 206

# inner MidiPause()

Pause playing midi.

View Source doc/internal.js, line 183

# inner MidiResume()

Resume playing midi after MidiPause().

View Source doc/internal.js, line 188

# inner MidiStop()

Stop playing midi.

View Source doc/internal.js, line 178