tri
Anti-aliased triangular oscillator.
new tri()
Methods
next(frequency, pulsewidth, syncPhase): [out1, out2]
Arguments
Name | Type | Default | Description |
---|---|---|---|
frequency | number | ||
pulsewidth | number | 0.5 | |
syncPhase | number |
Returns
Name | Type | Description |
---|---|---|
out1 | number | An antialiased triangular waveform. An ideal, straight-line |
out2 | number | The phase of the oscillator. |