MIDI tutorial
Start here: follow a note from a keyboard through three bytes to a synthesizer, then write your first MIDI program.
Practical guides for developers building MIDI and audio software. Each one works through real bytes or runnable code, and links to a browser tool where you can try the idea immediately.
Start here: follow a note from a keyboard through three bytes to a synthesizer, then write your first MIDI program.
Decode every MIDI 1.0 message, from Note On to Pitch Bend and clock, with a tested parser.
Connect MIDI keyboards and synths to a web page, with permissions, timestamps, hot-plugging and a live monitor.
Chunks, delta times, tempo and meta events, with a small reader and writer you can copy.
Symptom, cause, check and fix for silence, stuck notes, wrong octaves, timing, loops and file imports.
Schedule notes on the audio clock with a look-ahead scheduler instead of trusting timers.
Ticks, tempo maps, note pairing, event ordering and quantization for sequencers and piano rolls.
Encode measures, chords, ties and accidentals, and convert MIDI ticks into MusicXML.
Compare browser and native audio and MIDI libraries, and pick one with a short checklist.
Looking for something to use right now? See the free browser tools.