Codebox Operators trapezoid

trapezoid

Trapezoid wavetable operator.

trapezoid(phase, rampUp, rampDown): out1

Arguments:

Arguments

NameTypeDefaultDescription
phasenumber

The input to trapezoid should be a that repeatedly goes from 0 to 1.

rampUpnumber0.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.

rampDownnumber0.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

NameTypeDescription
out1number

A floating-point value which corresponds to the value referenced by the trapezoid operator's input floating-point value.