expand

Reference > triangle

Wave
Spectrum

    

triangle(frequency, phase) Returns a function whose input is a time (in seconds) and whose output is a point on a triangle wave. You can create a 440 Hz triangle wave by mapping a time wave to this triangle function, using time.map(triangle(440))

You can find the code for triangle in the synthesine library.