Hello,
A nice way of generating a triangle wave is by integrating a square wave... You can do this using the biquad~ object.
Steve
#N canvas 87 77 687 583 10; #X obj 193 122 tabwrite~ array1; #N canvas 0 0 450 300 graph1 0; #X array array1 10000 float 2; #X coords 0 1 9999 -1 200 140 1; #X restore 433 62 graph; #X obj 97 186 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 180 77 osc~ 10; #N canvas 0 0 450 300 graph1 0; #X array array2 10000 float 2; #X coords 0 1 9999 -1 200 140 1; #X restore 433 235 graph; #N canvas 0 0 450 300 graph1 0; #X array array3 10000 float 2; #X coords 0 1 9999 -1 200 140 1; #X restore 433 402 graph; #X obj 189 201 tabwrite~ array2; #X obj 181 285 tabwrite~ array3; #X obj 180 157 clip~ -0.001 0.001; #X obj 181 244 biquad~ 1 0 0 -1 0; #X connect 2 0 0 0; #X connect 2 0 6 0; #X connect 2 0 7 0; #X connect 3 0 0 0; #X connect 3 0 8 0; #X connect 8 0 6 0; #X connect 8 0 9 0; #X connect 9 0 7 0;