aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/pd-help/vasp_peaks.pd
blob: 7cfc0fd041d9658a9378dbbd3fe9d16527238b0f (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#N canvas 152 40 822 598 10;
#X obj 71 32 cnv 15 15 15 empty empty vasp.peaks 0 10 1 14 -262144
-1 0;
#X obj 71 131 filelist \$0;
#N canvas 40 55 281 170 clear_buffers 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 479 495 pd clear_buffers;
#X obj 60 292 vasp.update;
#X obj 58 433 vasp.update;
#X obj 58 453 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152
8 -262144 -1 -1;
#X obj 60 312 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152
8 -262144 -1 -1;
#X obj 337 495 dac~;
#X obj 337 457 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 358 455 play;
#X text 70 66 argument/right inlet: density value 0-1;
#X text 172 231 copy to new buffer \, find valleys;
#X floatatom 151 307 12 0 0;
#X obj 151 328 * 88200;
#X floatatom 151 350 5 0 0;
#X obj 58 412 vasp.opt;
#X text 679 99 source;
#X text 69 52 find the local maxima of a buffer content;
#X text 69 81 outlet: current density value;
#X msg 60 227 vasp bufpeaks2;
#X obj 337 475 tabplay~ bufpeaks1;
#X msg 479 475 vasp bufpeaks1 bufpeaks2;
#X obj 399 117 wavedisplay-simple bufpeaks1 \$0;
#X obj 399 271 wavedisplay-simple bufpeaks2 \$0;
#N canvas 92 108 428 393 inside 0;
#X obj 66 169 soundfiler;
#X obj 84 253 s \$0-sample-length;
#X obj 66 223 s \$0-draw_display;
#X msg 214 221 resize \$1;
#X obj 66 47 loadbang;
#X obj 66 193 t b f f;
#X obj 66 113 filelisthandler \$0;
#X msg 66 91 2;
#X obj 66 69 t b b;
#X msg 99 91 88200;
#X obj 214 243 s bufpeaks1;
#X obj 225 264 s bufpeaks2;
#X msg 66 145 read \$1 bufpeaks1;
#X connect 0 0 5 0;
#X connect 3 0 10 0;
#X connect 3 0 11 0;
#X connect 4 0 8 0;
#X connect 5 0 2 0;
#X connect 5 1 1 0;
#X connect 5 2 3 0;
#X connect 6 0 12 0;
#X connect 7 0 6 0;
#X connect 8 0 7 0;
#X connect 8 1 9 0;
#X connect 9 0 5 0;
#X connect 12 0 0 0;
#X restore 668 495 pd inside;
#X msg 58 389 vasp bufpeaks2;
#X text 673 252 peaks;
#X text 191 348 peak count;
#X text 230 306 actual peak density;
#X text 166 273 target peak density as argument;
#X text 171 390 optimize the buffer content;
#X obj 60 251 vasp.= bufpeaks1;
#X obj 60 272 vasp.peaks 0.001;
#X obj 49 531 VASP-HELP;
#X connect 3 0 6 0;
#X connect 4 0 5 0;
#X connect 8 0 20 0;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 15 0 4 0;
#X connect 19 0 31 0;
#X connect 20 0 7 0;
#X connect 20 0 7 1;
#X connect 21 0 2 0;
#X connect 25 0 15 0;
#X connect 31 0 32 0;
#X connect 32 0 3 0;
#X connect 32 1 12 0;