Deprecated, please use Chris Wilson’s WebMIDIAPI Shim I made a test version of the midibridge that allows you to playback midi files. This version uses the File API for loading the midi file and a html5 slider for controlling the song position, so it currently only runs in Chrome:
http://abumarkub.net/midibridge/examples/base64.html You can simply drag and drop a midi file (.mid extension) onto the dropbox and the file gets loaded into the applet as a base64 string. For older browers that don’t support the File API, i will make a test version whereby midi files can be loaded into the applet by an upload form. The form lets you select a local midi file that gets uploaded to a php script. The php script encodes the midi file and sends it back to the webpage as a base64 string that subsequently can be loaded into the applet. Note that this is just a proof of concept; while implementing the sequencer (the midi files get played back by the
And in most cases that causes the Quicktime plugin to play the file using the default built-in GM set of your computer or soundcard. Paul wanted to investigate the possible use of the midibridge in Draw the Dots and that’s why i decided to bring forward the implementation of the playMidiFile(url) method. Although the method is currently implemented with the more descriptive name playBase64String(). More on this soon. PS: Michael Deal provided a very good midi file to stress test the midibridge. It is a rather heavy Waltz and you can download it here.