Module

midi

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

Methods

# inner MidiGetPos() → {number}

Get song position.

current song position in MIDI file.

number

# inner MidiGetTime() → {number}

Get song position.

current song position in seconds.

number

# inner MidiIsPlaying() → {boolean}

Check if the file is still playing.

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.

# inner MidiPause()

Pause playing midi.

# inner MidiResume()

Resume playing midi after MidiPause().

# inner MidiStop()

Stop playing midi.