Chrome: Midi Player

: Search “Web MIDI player” in Google, drag any .mid file you have into the page, and listen. You might be surprised how good it sounds. Have a favorite Chrome MIDI player or a cool project? Share it in the comments below – or better, compose a MIDI file and test it yourself.

// Load a MIDI file via fetch const response = await fetch('song.mid'); const arrayBuffer = await response.arrayBuffer(); // Parse with a library like @tonejs/midi const midi = new Midi(arrayBuffer); chrome midi player

// Play using Tone.js or a SoundFont player import Soundfont from 'soundfont-player'; const instrument = await Soundfont.instrument(audioContext, 'acoustic_grand_piano'); // schedule notes... : Search “Web MIDI player” in Google, drag any