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

# Methods

#### # inner MidiGetPos() → {number}

Get song position.

Returns:

current song position in MIDI file.

Type: number

#### # inner MidiGetTime() → {number}

Get song position.

Returns:

current song position in seconds.

Type: number

#### # inner MidiIsPlaying() → {boolean}

Check if the file is still playing.

Returns:

true if the file is still playing.

Type: 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.