midi to web audio

a tiny tool to turn a midi file into a playable code snippet using the web audio API.

drop a midi file in below, adjust the sound, then copy a snippet to embed on any page. nothing is uploaded - runs locally in the browser.

source file

no file loaded
🎼
drop file / click to browse
files are processed in your browser. nothing is uploaded
or pick example

examples from mutopia

preview

piano roll will render here once a file is loaded
0:00 / 0:00

sound settings

waveform

attack8 ms
decay80 ms
sustain70%
release120 ms

volume80%
transpose0 st
speed1.00×

cutoff18.0 khz
drive0%
bitcrush0%
delay time220 ms
echo0%
reverb0%
chaos0%

embed code

self-contained html + js snippet. no external libraries or files. paste it anywhere to make a play button with above settings. note data is included in snippet, so original midi file isn't needed.