Skip to main content

downloadMidi

since 1.3.0

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​

ParametersTypeSummary
formatJavaScriptalphaTab.midi.MidiFileFormat

The SMF file format to which the song should be exported. (default: SingleTrackMultiChannel)

Returns​

Nothing

Examples​

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'));
api.downloadMidi();