A web component for picking keys/scales
TODO: allow user to provide custom list of scales. (or just make a bigger list i guess...)
index.js from the repo or do
npm install scale-select.
index.js before you use the component:
It will be registered automatically as
scale-select, so you can
document.createElement('scale-select') or just have
<scale-select> elements in your HTML source.
You need to load the module and then register it--it is not automatically registered!
But you could even register it with other name, for example:
Up to you.
Have a look at
demo/demo.js for an example that does things in order to things.
This event will be dispatched when the tonic select is changed. To listen for
tonic events on this component, add an event listener:
This event will be dispatched when the scale select is changed. To listen for
scale events on this component, add an event listener: