Oscillators // pass the time // and oh how often
Useful for DSP, and with Audio Javascript modules such as
npm install oscillators
creates sine waves
creates saw waves
creates square waves
creates triangle waves
creates inverted saw waves
creates probably something silly
var oz = require('oscillators')
, frequency = 100000
function sineWave(time){ // given a time domain
oz.sine(time, frequency) // returns sinewave at given frequency
}
talk to aliens
var oz = require('oscillators');
function sineWave(time){ // given a time domain
oz.sine(time * os.sine(time, osc.sine(time, 10)), 440 * osc.square(time, 44 * osc.saw(time, 4))) // no idea
}