#N canvas 369 83 783 601 12;
#X declare -stdpath ./;
#N canvas 0 0 450 300 (subpatch) 0;
#X array samphold 22050 float 0;
#X coords 0 1.025 22049 -0.025 300 200 1 0 0;
#X restore 397 344 graph;
#X obj 112 265 samphold~;
#X floatatom 112 190 5 0 0 0 - - - 0;
#X floatatom 235 190 5 0 0 0 - - - 0;
#X obj 112 360 *~ 48;
#X obj 112 385 +~ 36;
#X obj 112 483 osc~;
#X msg 281 233 0;
#X msg 278 108 32 96.33;
#X msg 112 108 5 7;
#X msg 37 108 1 5;
#X msg 71 108 2 11;
#X msg 147 108 3.7 8.8;
#X msg 212 108 3.4 8.9;
#X obj 112 516 output~;
#X obj 517 92 declare -stdpath ./;
#X obj 112 160 unpack float float;
#X obj 112 442 mtof~;
#X text 406 154 Another analog favorite \, the sample and hold unit freezes an audio signal on command. In the Pd version \, the second input of [samphold~] triggers it and the first input becomes the output's new value whenever the trigger decreases from one sample to the next. This is ideal for updating values when a [phasor~] wraps around., f 40;
#X obj 61 28 cnv 5 5 25 empty empty Sample\ and\ Hold 15 13 0 16 #dfdfdf #202020 0;
#X obj 228 306 bng 19 250 50 0 empty empty empty 17 7 0 10 #dfdfdf #000000 #000000;
#X text 251 305 <-- graph once;
#X obj 255 333 tgl 19 0 empty empty empty 0 -10 0 12 #dfdfdf #000000 #000000 0 1;
#X text 279 332 <-- graph repeatedly, f 10;
#N canvas 146 130 450 300 graph 0;
#X obj 256 73 inlet;
#X obj 192 73 inlet;
#X obj 122 73 inlet~;
#X obj 192 203 tabwrite~ samphold;
#X obj 256 137 metro 510;
#X connect 0 0 4 0;
#X connect 1 0 3 0;
#X connect 2 0 3 0;
#X connect 4 0 3 0;
#X restore 202 366 pd graph;
#X text 314 227 reset phase, f 5;
#X text 701 530 0;
#X text 701 343 1;
#X text 122 412 pitch from 36 to 84;
#X obj 112 220 phasor~;
#X obj 235 265 phasor~;
#X obj 112 80 loadbang;
#X connect 1 0 4 0;
#X connect 1 0 24 0;
#X connect 2 0 29 0;
#X connect 3 0 30 0;
#X connect 4 0 5 0;
#X connect 5 0 17 0;
#X connect 6 0 14 0;
#X connect 7 0 29 1;
#X connect 7 0 30 1;
#X connect 8 0 16 0;
#X connect 9 0 16 0;
#X connect 10 0 16 0;
#X connect 11 0 16 0;
#X connect 12 0 16 0;
#X connect 13 0 16 0;
#X connect 16 0 2 0;
#X connect 16 1 3 0;
#X connect 17 0 6 0;
#X connect 20 0 24 1;
#X connect 22 0 24 2;
#X connect 29 0 1 0;
#X connect 30 0 1 1;
#X connect 31 0 9 0;
