trapezoid~
Trapezoid wavetable operator.
Description
trapezoid~ is a trapezoidal wavetable operator with a signal input. The ramp up and down position values are independently adjustable.
Arguments
rampUp [auto]
The rampUp argument sets the phase value (0.0 ... 1.0) where the trapezoid will hit its peak. A floating-point or signal 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 [auto]
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.
Inlets
phase [auto]
The input to trapezoid~ should be a that repeatedly goes from 0 to 1.
rampUp [auto]
The rampUp argument sets the phase value (0.0 ... 1.0) where the trapezoid will hit its peak. A floating-point or signal 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 [auto]
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.
Outlets
out1 [signal]
A signal which corresponds to the value referenced by the trapezoid~ operator's input signal. If the output of a phasor~ or some other audio signal is used to scan the trapezoid~ object, the output will be a periodic waveform.
Dynamic Attributes
These attributes can be modified in the code during execution using the set object
phase [auto]
The input to trapezoid~ should be a that repeatedly goes from 0 to 1.
rampDown [auto]
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.
rampUp [auto]
The rampUp argument sets the phase value (0.0 ... 1.0) where the trapezoid will hit its peak. A floating-point or signal 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.
reset [bang] (default: 0)
Banging this attribute will reset the object to its default state.
See Also
Name | Description |
---|---|
triangle~ | |
triangle~ | A triangle/ramp wavetable oscillator with a phase input. |
boxtotri~ | A variable shape window multiplier, from boxcar to triangle. |
phasor~ | Generate sawtooth signals |
line~ | Linear ramp generator |