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 FrequencyGraph.js
from the repo or do npm install openmusic-frequencygraph
.
Just include FrequencyGraph.js
before you use the component. It will be registered automatically as openmusic-frequencygraph
so you can document.createElement('openmusic-frequencygraph')
or just have <openmusic-frequencygraph>
elements in your HTML source.
You need to load the module and then register it--it is not automatically registered!
require('openmusic-frequencygraph').register('openmusic-frequencygraph');
But you could even register it with other name. Up to you.