Class: Oscillator

Oscillator(p, a, b, phase)

Sine Wave Oscillator

Constructor

new Oscillator(p, a, b, phase)

Parameters:
Name Type Default Description
p number 1s Period of the Oscillator
a number 1 Lower value of the oscillator
b number 2 Higher value of the oscillator
phase number 0 Initial oscillator angle
Source:

Methods

activate()

Activates the Oscillator(Resets Time to zero)
Source:

go() → {number}

Computes the value of the oscillator
Source:
Returns:
The value of the oscillator at current time.
Type
number

pause()

Pauses the Oscillator
Source:

unPause()

unPauses the oscillator
Source: