UI for Theremin
Grab ThereminUI.js
from the repo or do npm install openmusic-theremin-ui
.
Include ThereminUI.js
before you use the component.
<script src="ThereminUI.js"></script>
It will be registered automatically as openmusic-theremin-ui
, so you can document.createElement('openmusic-theremin-ui')
or just have <openmusic-theremin-ui>
elements in your HTML source.
You need to load the module and then register it--it is not automatically registered!
require('openmusic-theremin-ui').register('openmusic-theremin-ui');
But you could even register it with other name, for example:
require('openmusic-theremin-ui').register('mega-theremin-ui');
Up to you.
Have a look at demo/demo.js
for an example that shows how to use this component with the Theremin in OpenMusic.