#N canvas 378 46 563 533 10;
#X obj 5 507 cnv 15 552 21 empty empty empty 20 12 0 14 #e0e0e0 #202020 0;
#X obj 7 392 cnv 3 550 3 empty empty inlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 7 432 cnv 3 550 3 empty empty outlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 7 473 cnv 3 550 3 empty empty arguments 8 12 0 13 #dcdcdc #000000 0;
#X obj 117 404 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 117 443 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 150 404 signal;
#X text 150 443 signal;
#X text 230 482 (none);
#X text 215 443 - the wrapped signal;
#X text 215 404 - the signal to be wrapped;
#X obj 222 223 cyclone/phasewrap~;
#N canvas 615 118 464 526 example 0;
#X obj 54 279 cyclone/phasewrap~;
#X text 115 397 wrapped output;
#X obj 54 181 line~;
#X msg 54 155 0 \, 1000 500000;
#X text 72 445 -pi;
#X text 74 348 pi;
#X text 76 398 0;
#X obj 54 358 vsl 15 95 -3.14 3.14 0 0 empty empty empty 0 -9 0 10 #dcdcdc #000000 #000000 0 1;
#X obj 54 93 cyclone/active;
#X obj 54 124 sel 1;
#X obj 264 279 cyclone/phasewrap~;
#X obj 264 181 line~;
#X obj 264 93 cyclone/active;
#X obj 264 124 sel 1;
#X msg 264 155 0 \, -1000 500000;
#X text 56 23 A signal of increasing or decreasing value outputs a sawtooth like waveform with -π and π as lower and upper values.;
#X obj 72 212 cyclone/snapshot~ 1;
#X floatatom 72 239 7 0 0 0 - - - 12;
#X obj 282 210 cyclone/snapshot~ 1;
#X floatatom 282 237 7 0 0 0 - - - 12;
#X obj 54 314 cyclone/snapshot~ 1;
#X floatatom 54 475 8 0 0 0 - - - 0;
#X text 332 395 wrapped output;
#X text 282 443 -pi;
#X text 284 346 pi;
#X text 286 396 0;
#X obj 264 356 vsl 15 95 -3.14 3.14 0 0 empty empty empty 0 -9 0 10 #dcdcdc #000000 #000000 0 1;
#X obj 264 312 cyclone/snapshot~ 1;
#X floatatom 264 473 8 0 0 0 - - - 0;
#X connect 0 0 20 0;
#X connect 2 0 0 0;
#X connect 2 0 16 0;
#X connect 3 0 2 0;
#X connect 7 0 21 0;
#X connect 8 0 9 0;
#X connect 9 0 3 0;
#X connect 10 0 27 0;
#X connect 11 0 10 0;
#X connect 11 0 18 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 11 0;
#X connect 16 0 17 0;
#X connect 18 0 19 0;
#X connect 20 0 7 0;
#X connect 26 0 28 0;
#X connect 27 0 26 0;
#X restore 455 244 pd example;
#X text 81 87 Use [phasewrap~] ro wrap the input between π (pi) and -π (-pi) - useful for wrapping phase values. When the input exceeds π (around 3.14159) \, the output signal value is "wrapped" to a range whose lower bound is -π (around -3.14159)., f 54;
#X obj 499 69 cyclone/dsponoff~;
#X obj 2 1 ./header phasewrap~;
#X text 19 62 Wrap between π & -π;
#X floatatom 222 161 7 0 0 0 - - - 12;
#X obj 222 191 sig~;
#X obj 222 254 cyclone/snapshot~ 1;
#X floatatom 222 281 7 0 0 0 - - - 12;
#X obj 438 356 open-else;
#X text 485 330 click;
#X text 45 341 see also:;
#X obj 113 340 wrap~;
#X msg 438 330 wrap2~;
#X text 164 334 Plugdata users or those with ELSE can also use [else/wrap~2~] as an alternative, f 42;
#X connect 11 0 19 0;
#X connect 17 0 18 0;
#X connect 18 0 11 0;
#X connect 19 0 20 0;
#X connect 25 0 21 0;
