aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/pd-help/vasp_sign.pd
blob: 83062d7e610ebba48dcc1d0ecb4390ba50467f39 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#N canvas 95 158 858 400 10;
#X obj 71 32 cnv 15 15 15 empty empty vasp.sign 0 10 1 14 -262144 -1
0;
#N canvas 0 0 450 300 graph1 0;
#X array bufsign 88200 float 0;
#X coords 0 1 88199 -1 300 100 1;
#X restore 465 124 graph;
#N canvas 0 0 396 272 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 45 symbol bufsign;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X restore 737 285 pd init;
#N canvas 40 55 247 122 clear_buffer 0;
#X obj 54 79 vasp.update;
#X obj 54 56 vasp.= 0;
#X obj 54 26 inlet;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X restore 521 284 pd clear_buffer;
#X text 178 134 generate a sinewave;
#X obj 77 178 vasp.u;
#X text 70 77 samples == 0 stay 0;
#X text 70 95 samples < 0 become -1;
#X text 70 61 samples > 0 become 1;
#X msg 77 135 vasp bufsign;
#X obj 77 156 vasp.osc 44100;
#X msg 521 263 vasp bufsign;
#X obj 77 322 vasp.update;
#X obj 77 291 vasp.sign;
#X msg 77 260 vasp bufsign;
#X text 79 237 use sign to generate a square wave out of a sine wave
;
#X obj 46 370 VASP-HELP;
#X connect 9 0 10 0;
#X connect 10 0 5 0;
#X connect 11 0 3 0;
#X connect 13 0 12 0;
#X connect 14 0 13 0;