Skip to content

tencircles/oscillope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Oscillope.js

=========

Simple Javascript Synthesizer

This is basically just a wrapper around the oscillator in the web audio api.

Usage

var context = new window.webkitAudioContext(), //Make you a context
        osc = context.createOscillope();       //Make you an oscillope

osc.connect(context.destination);              //Connect like any other audioNode
osc.adsr(0.005, 0.05, 0.5, 1);                 //ADSR is in seconds

//MidiNote #, startTime, duration
osc.makeNote(60, context.currentTime, 1);

//...that's all folks

About

Simple Javascript Synthesizer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published