triangle
triangle(
@phase 440
@duration 50
@offset 0
@lo -1
@hi 1
) -> llll
Triangle/ramp wavetable to change phase offset of the peak value.
Arguments
@phase
[int/float/llll]: A buffer, float, or breakpoint function in the 0 to 1 range to scan the triangle wavetable. The output ofphasor
or some other buffer can be used to control thetriangle
wavetable as an oscillator, treating the contents of the wavetable as a repeating waveform. (default:440
).@duration
[int/float]: Buffer duration, in milliseconds. Ignored if@phase
is a buffer. (default:50
).@offset
[int/float/llll]: Peak value phase offset, expressed as a fraction of a cycle, from 0 to 1.0., either as a single number, envelope, or buffer. (default:0
).@lo
[int/float]: Minimum value of output buffer. (default:-1
).@hi
[int/float]: Maximum value of output buffer. (default:1
).
Output
Triangle buffer [llll]
Usage
$buffer = triangle();
$buffer.view('triangle buffer')