Skip to main content

Module triangle

Module triangle 

Source
Expand description

Triangle wave source.

See the book entry Signal sources: oscillators, CORDIC and waveforms.

Structs§

TriangleWave
A symmetric triangle wave aligned with the sine: 0 at phase 0, +1 at a quarter turn, 0 at half a turn, -1 at three quarters.

Functions§

triangle
Convenience: length samples of a unit triangle wave with an integer period (>= 2).