downloadMidi
Description​
Generates a SMF1.0 compliant MIDI file of the currently loaded song and starts the download of it. Please be aware that SMF1.0 does not support bends per note which might result in wrong bend effects in case multiple bends are applied on the same beat (e.g. two notes bending or vibrato + bends).
Signatures​
function downloadMidi()JavaScript |
function downloadMidi(format)JavaScript |
Parameters​
Parameters | Type | Summary |
---|---|---|
formatJavaScript | alphaTab.midi.MidiFileFormat | The SMF file format to which the song should be exported. (default: |
Returns​
Nothing
Examples​
- JavaScript
const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.downloadMidi();