triangle~
A triangle/ramp wavetable oscillator with a phase input.
Description
A triangle/ramp wavetable oscillator with a phase input to change the the offset of the peak value. This operator can be better suited to modulation and control signals, for the anti-aliased signal rate version of this operator, see tri~ .
Arguments
duty [auto]
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 phasor~ or event rate linear ramp, and a value of 1.0 produces a sawtooth waveform.
Inlets
phase [auto]
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 [auto]
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 phasor~ or event rate linear ramp, and a value of 1.0 produces a sawtooth waveform.
Outlets
out1 [signal]
A signal which corresponds to the value referenced by the triangle~ operator's input. If the output of a rnbo_phasor~ or some other audio signal is used to scan the triangle~ object, the output will be a periodic waveform.
Dynamic Attributes
These attributes can be modified in the code during execution using the set object
duty [auto]
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 phasor~ or event rate linear ramp, and a value of 1.0 produces a sawtooth waveform.
phase [auto]
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.
reset [bang] (default: 0)
Banging this attribute will reset the object to its default state.
See Also
Name | Description |
---|---|
triangle~ | |
tri~ | Anti-aliased triangular oscillator. |