Demo and example use
Try this demo for seeing / hearing it running.
Once included in your page, you only need to do (where song is a Base64 coded midi file):
Remark: you also need to include the
wildwebmidi.data file that needs to be retrieved by locateFile option, or accessible from the root of your site if not specified.
The source code of the demo is available here
The player uses a piano sound font by default. Other instruments can be used, but only one at a time. For this, you need to replace the
wildwebmidi.js and the
wildwebmidi.data files with the instrument files you want from the
For example, for using the church organ, you need to include
019_church_organ.js in your page and have
019_church_organ.data accessible from the root of your site.
For building the midi-player you need Emscripten installed on your machine.
git clone email@example.com:Mindwerks/wildmidi.git node make