Minim
core
ugens
analysis
 
Name triangle
Examples
None available
Description Constructs a perfect triangle wave with the specified duty cycle.
Syntax
triangle(dutyCycle);
Parameters
dutyCycle   float: a triangle wave with a duty cycle of 0.5 will be a perfect triangle wave that is 1 half the time and -1 the other half. By changing the duty cycle, you change how much of the triangle is below zero. So, a duty cycle of 0.2 would result in 20 percent of the triangle below zero and the rest above. Duty cycle will be clamped to [0,1].
Returns Wavetable
Usage Web & Application
Related Waves
Wavetable
Waveform