Song - abudaan/qambi GitHub Wiki
Creates a new song, the settings object is not mandatory.
The following song parameters can be set by the settings object:
- ppq (960)
- bpm (120)
- bars (30)
- nominator (4)
- denominator (4)
- quantizeValue (8)
- fixedLengthValue (false)
- useMetronome (false)
- autoSize (true)
- loop (false)
- playbackSpeed (1)
- autoQuantize (false)
Adds on or more tracks to the song
##### Song.addTimeEvents(...event)
Adds on or more time events to the song. Time events are MIDIEvent instances with a data1 value of 0x51 (tempo event) or 0x58 (time signature)
##### Song.play(position: number)
Starts playing the song from the provided position in milliseconds. If you omit this parameter, the song will start from the beginning
##### Song.stop()
##### Song.stopAllSounds()
##### Song.getTracks()
##### Song.getParts()
##### Song.getEvents()
##### Song.getNotes()