Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 1.04 KB

README.md

File metadata and controls

12 lines (6 loc) · 1.04 KB

wavetable-synth

this is an experiment in non-linear waveshaping synthesis written using the web audio api.

it uses chebyshev polynomials to create 16 wavetables and drives those tables with a variable amplitude sine wave. when the amplitude of the sine wave is low the output is a sine; when the amplitude is +/-1.0 the output includes a harmonic of the input sinewave (the Nth order polynomial gives the Nth harmonic); when the amplitude is somewhere in-between lots of interesting harmonics are created (see here for more about this technique).

it supports midi in chrome and probably crashes in any other browser. it's very much a work in progress.

the oscilliscope was lifted from here and i will remove it very soon when my version is working.

the midi was adpated from a few different tutorials.