1
#N canvas 430 114 568 497 12;
2
#X obj 24 451 snapshot~;
3
#X floatatom 24 476 5 0 0 0 - - -;
4
#X obj 33 425 metro 100;
6
#X text 96 6 - sample and hold unit;
7
#X obj 24 376 samphold~;
8
#X text 14 32 The samphold~ object samples its left input whenever
9
its right input decreases in value (as a phasor~ does each period \,
10
for example.) Both inputs are audio signals.;
13
#X floatatom 59 315 3 0 0 0 - - -;
14
#X floatatom 116 355 3 0 0 0 - - -;
17
#X text 89 210 set output to a number;
18
#X text 97 315 sample signal;
19
#X text 159 353 control signal;
20
#X msg 32 244 reset 10;
21
#X text 111 242 reset previous value;
22
#X text 100 292 to force the next sample;
23
#X obj 33 403 loadbang;
24
#X text 320 472 updated for version 0.39;
25
#X text 111 256 for control inlet;
26
#X text 99 278 reset to default 1e+20;
27
#X text 14 82 The "set" message sets the output value (which continues
28
to be updated as normal afterward.) The "reset" message causes samphold~
29
to act as if the specified value were the most recent value of the
30
control input. Use this \, for example \, if you reset the incoming
31
phasor but don't want the jump reflected in the output. Plain "reset"
32
is equivalent to "reset infinity" which forces the next input to be
34
#X msg 122 422 \; pd dsp 1;