#N canvas 57 40 836 521 10; #X obj 71 32 cnv 15 15 15 empty empty vasp.min 0 10 1 14 -262144 -1 0; #N canvas 40 55 281 170 clear_buffer 0; #X obj 54 79 vasp.update; #X obj 54 56 vasp.= 0; #X obj 54 26 inlet; #X obj 54 108 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152 8 -262144 -1 -1; #X connect 0 0 3 0; #X connect 1 0 0 0; #X connect 2 0 1 0; #X restore 412 403 pd clear_buffer; #N canvas 0 0 450 300 graph1 0; #X array bufmin 88200 float 0; #X coords 0 1 88199 -1 300 100 1; #X restore 412 112 graph; #N canvas 0 0 400 276 init 0; #X obj 33 19 loadbang; #X msg 33 73 \; \$1 xticks 0 4410 10 \; \$1 xlabel 1.1 0 22050 44100 66150 88200 \; \$1 yticks 0 0.25 2 \; \$1 ylabel 94000 -1 -0.5 0 0.5 1; #X msg 33 43 symbol bufmin \, symbol bufmin1; #X connect 0 0 2 0; #X connect 2 0 1 0; #X restore 687 409 pd init; #X obj 73 144 vasp.osc 44100; #X obj 73 167 vasp.update; #X text 70 75 argument/right inlet: value; #N canvas 0 0 450 300 graph1 0; #X array bufmin1 88200 float 0; #X coords 0 1 88199 -1 300 100 1; #X restore 412 249 graph; #X text 666 74 source; #X text 68 58 take minimum of vasp and argument; #X msg 73 123 vasp bufmin; #X msg 412 380 vasp bufmin bufmin1; #X text 162 121 generate a sine wave at 1 Hz; #X text 178 251 copy to new buffer; #X obj 72 354 vasp.update; #X msg 72 255 vasp bufmin1; #X obj 72 281 vasp.= bufmin; #X obj 72 328 vasp.min 0.4; #X obj 66 460 VASP-HELP; #X text 177 327 set all values > 0.4 to 0.4; #X connect 4 0 5 0; #X connect 10 0 4 0; #X connect 11 0 1 0; #X connect 15 0 16 0; #X connect 16 0 17 0; #X connect 17 0 14 0;