openmusic-oscillator

1.3.0 • Public • Published

openmusic-oscillator

An immortal oscillator

Install with NPM

Demo

** 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?

Run npm install so it installs stuff for the demo. Then gulp build, and then you can open build/demo/index.html for the demo.

If you do changes in the code, you'll need to rebuild the demo. Use gulp build or gulp only for running build and setting up a watch loop that automatically rebuilds the demo as you change its files.

Usage

Install first: npm install openmusic-oscillator.

Then you can use it in your code:

var Oscillator = require('openmusic-oscillator');
var audioContext = new AudioContext();
var osc = Oscillator(audioContext);
 
osc.connect(audioContext.destination);
osc.start();

TO DO

  • explain more of the features
    • frequency
    • event scheduling
    • start/stop/clearSchedule
  • demo the features

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.0
    0
  • 1.2.0
    0
  • 1.1.0
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i openmusic-oscillator

Weekly Downloads

0

Version

1.3.0

License

Apache 2

Last publish

Collaborators

  • sole