#N canvas 491 23 562 723 10;
#X obj 5 693 cnv 15 552 21 empty empty empty 20 12 0 14 #e0e0e0 #202020 0;
#X obj 5 383 cnv 3 550 3 empty empty inlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 5 496 cnv 3 550 3 empty empty outlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 5 541 cnv 3 550 3 empty empty arguments 8 12 0 13 #dcdcdc #000000 0;
#X obj 94 390 cnv 17 3 50 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 93 510 cnv 17 3 17 empty empty 0 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 162 447 float;
#X obj 94 470 cnv 17 3 17 empty empty 2 5 9 0 16 #dcdcdc #9c9c9c 0;
#X obj 94 446 cnv 17 3 17 empty empty 1 5 9 0 16 #dcdcdc #9c9c9c 0;
#X text 162 471 float;
#X floatatom 313 229 8 -100 100 0 - - - 0;
#X text 142 548 1) float;
#X text 142 566 2) float;
#X obj 5 593 cnv 3 550 3 empty empty attributes 8 12 0 13 #dcdcdc #000000 0;
#X text 216 446 - set low value of range;
#X text 217 471 - set high value of range;
#X text 214 510 - original \, clipped \, wrapped \, or folded number;
#X text 133 510 float/list;
#X msg 193 178 range -0.5 0.5;
#X text 209 566 - high range value (default 0);
#X text 209 548 - low range value (default 0);
#X text 215 390 - value(s) to clip \, fold or wrap;
#X obj 162 231 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
#X msg 57 103 none;
#X obj 131 133 symbol;
#X msg 131 177 mode \$1;
#X msg 93 103 clip;
#X msg 169 103 wrap;
#X msg 131 103 fold;
#X symbolatom 131 155 8 0 0 0 - - - 0;
#X obj 162 204 trigger b a;
#X text 70 176 set mode;
#X text 285 178 set range;
#X text 308 209 low range;
#X text 399 210 high range;
#X obj 225 287 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10 #dcdcdc #000000 #000000 0 256;
#X text 158 601 @mode;
#X text 152 619 @range;
#X text 209 618 - followed by two numbers set low and high range.;
#X text 209 600 - <fold> \, <wrap> \, <clip> & <none>: sets the object mode;
#X text 115 405 mode <symbol>;
#X text 121 420 range <f \, f>;
#X text 215 405 - sets mode to: none (default) \, clip \, wrap or fold;
#X text 215 422 - sets low and high values of range;
#X obj 4 642 cnv 3 550 3 empty empty more_info 8 12 0 13 #dcdcdc #000000 0;
#X obj 225 257 cyclone/pong -10 10 @mode wrap;
#N canvas 993 192 302 189 lists 0;
#X obj 55 38 loadbang;
#X obj 55 92 cyclone/pong 0 10 @mode wrap;
#X msg 55 64 15 -1 20;
#X listbox 55 121 10 0 0 0 - - - 0;
#X text 124 36 example with lists containing more than one element., f 18;
#X connect 0 0 2 0;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X restore 483 254 pd lists;
#X text 229 104 Use [pong] to fold \, wrap or clip its input within a given low-high range., f 38;
#X text 140 648 maximum range is always the highest value & minimum range is always the lowest value. Wrap mode is useful for modulo arithmetic.;
#X floatatom 402 229 8 -100 100 0 - - - 0;
#X text 169 390 list;
#X obj 2 2 ./header pong;
#X text 23 62 Range limiter (fold \, wrap & clip);
#X text 107 331 see also:;
#X obj 403 353 open-else;
#X msg 403 305 fold;
#X text 456 316 click;
#X msg 413 326 wrap2;
#X text 183 322 Plugdata users or those with ELSE can also use [else/fold] and [else/wrap2] as alternatives, f 33;
#X connect 10 0 45 1;
#X connect 18 0 30 0;
#X connect 22 0 45 0;
#X connect 23 0 24 0;
#X connect 24 0 29 0;
#X connect 25 0 30 0;
#X connect 26 0 24 0;
#X connect 27 0 24 0;
#X connect 28 0 24 0;
#X connect 29 0 25 0;
#X connect 30 0 22 0;
#X connect 30 1 45 0;
#X connect 45 0 35 0;
#X connect 49 0 45 2;
#X connect 55 0 54 0;
#X connect 57 0 54 0;
