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
go() → {number}
Computes the value of the oscillator
- Source:
Returns:
- Type:
-
number
The value of the oscillator at current time.