blob: afb94c91c890b7e1fe2af32c733bcbc2f285918c (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#N canvas 490 83 724 474 12;
#X text 34 13 Besides the metronome \, there are three objects for
dealing with time:;
#X obj 64 117 print;
#X msg 64 59 bang;
#X msg 110 61 stop;
#X obj 64 89 delay 2000;
#X msg 76 192 bang;
#X obj 76 239 timer;
#X text 160 117 The right inlet can be used to set the time value without
scheduling any output.;
#X obj 106 214 delay 123.45;
#X floatatom 76 264 0 0 0 0 - - -;
#X text 34 288 Note that all time calculations are idealized \; they
do not show the effects of computation time or OS latency. This way
you can write deterministic algorithms dealing with time passage.;
#X obj 74 387 pipe 2000;
#X floatatom 74 360 0 0 0 0 - - -;
#X floatatom 74 413 0 0 0 0 - - -;
#X text 165 361 The pipe object allocates memory dynamically in order
to schedule any number of delayed events. The events may hold any collection
of data (as usual \, for more details you can consult the help window.)
;
#X text 442 440 updated for Pd version 0.43;
#X text 35 154 The timer \, shown below \, measures the time elapsed
between the arrival of 'bang' messages to its left and right inlets:
;
#X text 159 40 The delay object schedules an event for a future time
expressed in milliseconds. Unlike in Max \, time values need not be
integers. If a delay has been scheduled and you "bang" it again \,
it is rescheduled (the previously scheduled output is cancelled.);
#X connect 2 0 4 0;
#X connect 3 0 4 0;
#X connect 4 0 1 0;
#X connect 5 0 6 0;
#X connect 5 0 8 0;
#X connect 6 0 9 0;
#X connect 8 0 6 1;
#X connect 11 0 13 0;
#X connect 12 0 11 0;
|