A component for plotting wave data on a canvas
** YOU NEED SUPPORT FOR WEB COMPONENTS IN YOUR BROWSER BECAUSE WE'RE NOT SHIMMING ANYTHING IN **
Firefox: go to about:config
, find dom.webcomponents.enabled
and set it to true.
Chrome: maybe nothing to do?
Just grab Oscilloscope.js
from the repo or do npm install openmusic-oscilloscope
.
Just include Oscilloscope.js
before you use the component. It will be registered automatically as openmusic-oscilloscope
so you can document.createElement('openmusic-oscilloscope')
or just have <openmusic-oscilloscope>
elements in your HTML source.
You need to load the module and then register it--it is not automatically registered!
require('openmusic-oscilloscope').register('openmusic-oscilloscope');
But you could even register it with other name. Up to you.