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

Returns:
current song position in MIDI file.
Type: number

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

Get song position.

View Source doc/internal.js, line 194

Returns:
current song position in seconds.
Type: number

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

Check if the file is still playing.

View Source doc/internal.js, line 173

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.

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