oscillator

Wavetable oscillators

npm install dsp-oscillator

This is part of dsp-kit

References

  • http://www.earlevel.com/main/2012/05/09/a-wavetable-oscillator%E2%80%94part-3/
  • http://www.earlevel.com/main/2012/05/25/a-wavetable-oscillator%E2%80%94the-code/
  • https://github.com/OpenDAWN/wavetable
Source:
Example
const oscillator = require('dsp-oscillator')

Methods

(static) oscillator(params)

Create an oscillator. Returns a function that generates the oscillator signal

Parameters:
Name Type Description
params Object

oscillator parameters:

  • type: one of 'sine'
  • sampleRate: 44100 by default
  • defaultSize: the length of the generated buffer
Source: