Math for Triangle Waveform [Phasor]

95f's icon

whats the math for creating triangle waveform from phasor object to control signal please?

daddymax's icon

I'd multiply it to twice the amplitude with *` 2. then pop it through the pong~ object specifying the 'fold' option to fold it into a triangle.

vichug's icon

or like so, using selector~ and !-~ 2 to concatenate it into 2 wave sections :

Max Patch
Copy patch and select New From Clipboard in Max.

Luigi Castelli's icon

That's how I would do it:

Max Patch
Copy patch and select New From Clipboard in Max.

95f's icon

thanks, much appreciated :)