Dynamically generating MIDI in JavaScript
sergimansilla.com
sergimansilla.com
Nonetheless, implementing MIDI through javascript would be kind of cool. I'm about 90% done an HTML5 emulation of a Boss DR-110 (warts and all), and while the timing of the audio playback ain't great, I'd be curious to see if better results could be achieved by sending the sequencer data out as MIDI instead.
Considering how picky folks get about latency in audio software though, generating MIDI with Javascript seems more useful as a learning tool than an actual music production tool.
Also, the MIDI format is not slow to generate or to read, it is actually designed for speed (and may other perks) and any implementation of it would be very likely faster than any other format you could come up with. Of course, you would still have to deal with its complications and the many particularities and edge-cases it has.
An example of a strongly-timed audio app in Flash: http://www.audiotool.com/app
I am curious about your Boss DR-110 emulation in HTML5, are you going to publish it somewhere?
After I publish it, I'm going to work on better knobs (they're a little clunky now) and the ability to store your patterns. As it stands now, if you leave the page and come back, it's like you're running off a 9v with no batteries. I'll either store the array in a cookie or make it something you can download/upload.
http://midiserver.appspot.com/ https://github.com/skybrian/Midi-Server
Agreed that this stuff is way too nonportable.