trapezoid
Trapezoid wavetable operator.
trapezoid(phase, rampUp, rampDown): out1
Arguments:
Arguments
Name | Type | Default | Description |
---|---|---|---|
phase | number | The input to trapezoid should be a that repeatedly goes from 0 to 1. | |
rampUp | number | 0.5 | The rampUp argument sets the phase value (0.0 ... 1.0) where the trapezoid will hit its peak. A floating-point value can be used to specify the ramp up value. The arguments 0. 0. produce a ramp waveform, and 0.5 0.5 produces a triangle waveform. Default: 0.5. |
rampDown | number | 0.5 | The rampDown argument sets the phase value (0.0 ... 1.0) where the trapezoid will begin dropping back to the minimum. A floating-point value can be used to specify the ramp down value. The arguments 0. 0. produce a ramp waveform, and 0.5 0.5 produces a triangle waveform. Default: 0.5. |
Returns
Name | Type | Description |
---|---|---|
out1 | number | A floating-point value which corresponds to the value referenced by the trapezoid operator's input floating-point value. |