openmusic-theremin-ui

UI for Theremin

Usage no npm install needed!

<script type="module">
  import openmusicThereminUi from 'https://cdn.skypack.dev/openmusic-theremin-ui';
</script>

README

openmusic-theremin-ui

UI for Theremin

Install with NPM

Installation

Grab ThereminUI.js from the repo or do npm install openmusic-theremin-ui.

If not using any package manager

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.

If using npm

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.

Usage

Have a look at demo/demo.js for an example that shows how to use this component with the Theremin in OpenMusic.