rect
Anti-aliased rectangular (pulse) oscillator.
new rect()
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 rectangular waveform. An ideal, straight-line |
out2 | number | The phase of the oscillator. |