1.1.8 • Published 5 months ago

polymer-midi-player v1.1.8

Weekly downloads
2
License
MIT
Repository
github
Last release
5 months ago

polymer-midi-player

npm Published on webcomponents.org

MIDI Player Web Component

Supports MIDI 1.0 SMF and MIDI 2.0 Clips

midi-player

Playing MIDI files via Web Audio and Web MIDI

Usage

Install the Web Component

npm install polymer-midi-player --save

HTML

<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>

Attributes

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

API

play()
pause()
resume()
stop()

Testing with Polymer

Make sure the Polymer CLI is installed: npm install -g polymer-cli
In the project directory:
run npm install
run polymer serve --open

See also:

https://github.com/jazz-soft/JZZ-gui-Player
https://github.com/jazz-soft/react-midi-player

1.1.8

5 months ago

1.1.7

1 year ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago