triangle
A triangle/ramp wavetable oscillator with a phase input.
triangle(phase, duty): out1
Arguments:
Arguments
Name | Type | Default | Description |
---|---|---|---|
phase | number | Any signal, float, or an input signal progressing from 0 to 1 is used to scan the triangle operator's wavetable, treating the contents of the wavetable as a repeating waveform. | |
duty | number | 0.5 | The duty cycle (or peak value phase offset) value from 0 to 1.0. The default is 0.5. A value of 0 produces a ramp (down) waveform when the triangle operator is driven by a {rnbo_phasor~} or event rate linear ramp, and a value of 1.0 produces a sawtooth waveform. |
Returns
Name | Type | Description |
---|---|---|
out1 | number | A float value which corresponds to the value referenced by the triangle operator's input. |