Description
html-midi-player is a pair of web components that play and display MIDI files inside a web page. You add a player element and a visualizer element, then point the player at a MIDI file or a note sequence. It plays the notes with a SoundFont, and the visualizer draws them as they play. It is built on Magenta.js, can be styled with CSS and scripted from JavaScript, and offers options such as looping, the SoundFont and the visualizer's note height, timing and pitch range. One visualizer can be attached to several players, and the player emits events you can listen to. It installs from npm, or its scripts can be loaded directly on the page. It also works in Jupyter notebooks, Google Colab and Weights and Biases through a Python package. The project has a demo, and a separate site that lets you upload a MIDI file.…
Highlights
- Player and visualizer as embeddable web elements
- Plays MIDI files or note sequences
- Choose, change or disable the SoundFont
- Styled with CSS and scripted with JavaScript
- One visualizer can serve several players
- Works in Jupyter, Colab and Weights and Biases
Ratings & Reviews
No ratings yet
Be the first to rate Html Midi Player.
People also visit
Html Midi Player FAQ
What does html-midi-player do?
It plays and visualizes MIDI files in a web page using two custom elements, a player and a visualizer.
How do I install it?
Install the package from npm, or add its scripts to your page. Then place the player and visualizer elements in your HTML.
Can it run in Jupyter notebooks?
Yes. The readme says it works in Jupyter notebooks, Colab and Weights and Biases, through the midi-player Python package.
Can I change the sound?
Yes. Set the soundFont property to a URL, to an empty string for the default, or to null to play with no SoundFont.
Is the source available?
Yes. The repository is public on GitHub, and the project also has a demo and a MIDI upload page.
What are the best Html Midi Player alternatives?
Popular alternatives to Html Midi Player include Webaudiofont, Chip Player JS and Waveform Playlist. See all Html Midi Player alternatives


