drawing a triangular wave

elisabatti's icon
Max Patch
Copy patch and select New From Clipboard in Max.

hello
I'm trying to model a triangular wave but the only way I could thnk about was with a recursive line command, Do you have any other way of doing it, so then I can control the frequency?
this is an example of the wave I'm producing (very simple!!)

Tim Lloyd's icon
Max Patch
Copy patch and select New From Clipboard in Max.

If you need an audio rate triangle wave, then tri~ is the first thing to check out. If you want a non-bandlimited triangle wave, try this:

yas's icon

or triangle~ for non-bandlimited

Tim Lloyd's icon

Oh ye........ lol

I shouldn't post things here so fast, I forget things :)

elisabatti's icon

great thx a lot tim!!