Oscillator

Oscillator

Sine Wave Oscillator

Constructor

new Oscillator(p, a, b, phase)

Source:
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

Methods

activate()

Activates the Oscillator(Resets Time to zero)
Source:

go() → {number}

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

pause()

Pauses the Oscillator
Source:

unPause()

unPauses the oscillator
Source: