#N canvas 777 96 515 444 12;
#X obj 55 337 snapshot~;
#X obj 65 19 snapshot~;
#X msg 66 279 bang;
#X text 112 365 This output updates each time bang is clicked above.
;
#X text 145 19 - convert a signal to a number on demand;
#X text 24 51 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 obj 55 254 osc~ 0.1;
#X text 55 231 0.1 Hz cosine;
#X text 264 402 updated for Pd version 0.37;
#X text 124 254 signal in to take snapshots of;
#X text 26 114 In the example below \, a snapshot~ object prints out
the values of a low frequency cosine wave every time it is sent a bang
message.;
#X text 27 166 A 'set' message is provided for the (rare) situations
where you might make a known change to the signal input \, and then
read snapshot's value before any ensuing signal computation.;
#X floatatom 55 364 7 0 0 0 - - - 0;
#X msg 78 307 set 5 \, bang;
#X text 109 278 - take one snapshot;
#X text 167 307 - set value (which is reset next DSP block.), f 22
;
#X msg 369 298 \; pd dsp \$1;
#X obj 369 271 tgl 17 0 empty empty empty 17 7 0 10 #fcfcfc #000000
#000000 0 1;
#X text 391 273 DSP on/off;
#X connect 0 0 12 0;
#X connect 2 0 0 0;
#X connect 6 0 0 0;
#X connect 13 0 0 0;
#X connect 17 0 16 0;
