triangle~ Reference

A triangle/ramp wavetable oscillator with a phase input.

triangle~

Examples

Arguments

duty [auto]

Optional

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~ Triangle/ramp wavetable
tri~ Anti-aliased triangular oscillator.