Music Software Development

MIDI and music programming guides

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.

MIDI tutorial

Start here: follow a note from a keyboard through three bytes to a synthesizer, then write your first MIDI program.

MIDI messages in bytes

Decode every MIDI 1.0 message, from Note On to Pitch Bend and clock, with a tested parser.

Web MIDI API guide

Connect MIDI keyboards and synths to a web page, with permissions, timestamps, hot-plugging and a live monitor.

MIDI troubleshooting

Symptom, cause, check and fix for silence, stuck notes, wrong octaves, timing, loops and file imports.

Web Audio timing

Schedule notes on the audio clock with a look-ahead scheduler instead of trusting timers.

Music data structures

Ticks, tempo maps, note pairing, event ordering and quantization for sequencers and piano rolls.

MusicXML basics

Encode measures, chords, ties and accidentals, and convert MIDI ticks into MusicXML.

Music software SDKs

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.