## midi

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

### Methods

#### inner MidiGetTime() → {number}
`doc/internal.js`, `line 194`

  Get song position.

  ##### Returns:

  number - current song position in seconds.

#### inner MidiIsPlaying() → {boolean}
`doc/internal.js`, `line 173`

  Check if the file is still playing.

  ##### Returns:

  boolean - true if the file is still playing.

#### inner MidiOut(data)
`doc/internal.js`, `line 200`

  Send MIDI commands to output.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `data` | Array.<number> | an array of midi commands.

#### inner MidiPause()
`doc/internal.js`, `line 183`

  Pause playing midi.

#### inner MidiResume()
`doc/internal.js`, `line 188`

  Resume playing midi after MidiPause().

#### inner MidiStop()
`doc/internal.js`, `line 178`

  Stop playing midi.