2 ms·
This is pretty sweet. It'd be cool to have more examples though like square wave, triangle wave, etc. and maybe some simple effects like tremolo.
by droidist2 8y ago
This is pretty sweet. It'd be cool to have more examples though like square wave, triangle wave, etc. and maybe some simple effects like tremolo.
- nabla9 8y agolet amp = 0; const maxamp = 0.5; const freq = 880; function loop(numFrames, outL, outR, sampleRate) { const steps = sampleRate / freq; const delta = maxamp/steps; for (let i = 0; i < numFrames; i++) { amp += delta; outL[i] = amp; outR[i] = amp; if (amp > maxamp) amp = 0.0; } }
- homero 8y agoThis would be cool http://superdupercollider.blogspot.com/2009/05/crushing-bits-for-fun-and-profit.html http://superdupercollider.blogspot.com/2009/05/crushing-bits...