Supports MIDI 1.0 SMF and MIDI 2.0 Clips
Playing MIDI files via Web Audio and Web MIDI
npm install polymer-midi-player --save
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script type="module">
import 'polymer-midi-player';
</script>
<midi-player src="test.mid" loop=2 autoplay></midi-player>
src
- MIDI file URL
data
- contents of the MIDI file as String;
can be used as an alternative to src
autoplay
- start playback immediately
loop
- the number of repeats, or true
for an infinite loop
play()
pause()
resume()
stop()
Make sure the Polymer CLI is installed:
npm install -g polymer-cli
In the project directory:
run npm install
run polymer serve --open
https://github.com/jazz-soft/JZZ-gui-Player
https://github.com/jazz-soft/react-midi-player