aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/5.reference/until-help.pd
blob: 9da7a9cec6a32aca86eb13518277692257a38078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#N canvas 142 97 410 273 10;
#X msg 65 116 bang;
#X obj 66 15 until;
#X text 114 16 - LOOP;
#X text 24 36 The until object's left inlet starts a loop in which it outputs "bang" until its right inlet gets a bang which stops it. If you start "until" with a number \, it iterates at most that number of times \, as in the Max "uzi" object.;
#X text 24 85 WARNING: if you bang an "until" which doesn't have a stopping mechanism \, Pd goes into an infinite loop!;
#X obj 65 168 until;
#X text 110 115 start;
#X msg 73 137 3;
#X text 109 138 start limited to 3 iterations;
#X obj 65 196 f;
#X obj 96 198 + 1;
#X obj 140 198 sel 0;
#X obj 65 240 print;
#X obj 96 219 mod 10;
#X text 225 247 updated for Pd version 0.28;
#X connect 0 0 5 0;
#X connect 5 0 9 0;
#X connect 7 0 5 0;
#X connect 9 0 10 0;
#X connect 9 0 12 0;
#X connect 10 0 13 0;
#X connect 11 0 5 1;
#X connect 13 0 9 1;
#X connect 13 0 11 0;