aboutsummaryrefslogtreecommitdiff
path: root/pd/doc/5.reference/snapshot~.pd
blob: 244a2a7c91378fca8ba6c9c796447b2d3194f1f2 (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
#N canvas 40 55 704 399 12;
#X obj 205 266 snapshot~;
#X floatatom 205 292 0 0 0;
#X obj 105 274 snapshot~;
#X floatatom 105 318 0 0 0;
#X obj 74 14 snapshot~;
#X msg 205 236 bang;
#X text 201 313 This output updates each time bang is clicked above.;
#X text 154 14 - convert a signal to a number on demand;
#X text 9 46 The snapshot~ object takes a signal and converts it to a control value whenever it receives a bang in its left outlet. This object is particularly useful for monitoring outputs.;
#X text 459 375 updated for Pd version 0.33;
#X msg 19 212 \; pd dsp 1;
#X obj 12 187 loadbang;
#X obj 12 251 metro 200;
#X text 104 334 This output updates every 200 milliseconds.;
#X obj 105 214 osc~ 0.1;
#X text 110 196 0.1 Hz cosine;
#X text 7 111 In the example below \, the first snapshot~ object prints out the values of a low frequency cosine wave every 200 milliseconds. The second snapshot~ object prints the output value when the bang button above it is clicked.;
#X connect 0 0 1 0;
#X connect 0 0 1 0;
#X connect 2 0 3 0;
#X connect 2 0 3 0;
#X connect 5 0 0 0;
#X connect 11 0 10 0;
#X connect 11 0 12 0;
#X connect 12 0 2 0;
#X connect 14 0 2 0;
#X connect 14 0 0 0;