aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/pd-help/vasp_cifft.pd
blob: 22f10920137fc02706a8fd5838f82b310ea93d59 (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 81 48 890 610 10;
#N canvas 92 108 396 316 inside 0;
#X obj 66 154 soundfiler;
#X obj 192 209 s \$0-sample-length;
#X obj 66 208 s \$0-draw_display;
#X msg 241 140 resize \$1;
#X obj 241 93 loadbang;
#X obj 67 53 loadbang;
#X msg 241 114 88200;
#X obj 67 101 filelisthandler \$0;
#X msg 67 79 4;
#X obj 241 162 s bufrei;
#X obj 251 186 s bufimi;
#X obj 66 178 t b;
#X msg 67 133 read \$1 bufrei;
#X connect 0 0 11 0;
#X connect 3 0 9 0;
#X connect 3 0 10 0;
#X connect 4 0 6 0;
#X connect 5 0 8 0;
#X connect 6 0 3 0;
#X connect 6 0 1 0;
#X connect 7 0 12 0;
#X connect 8 0 7 0;
#X connect 11 0 2 0;
#X connect 12 0 0 0;
#X restore 781 472 pd inside;
#X obj 75 32 cnv 15 15 15 empty empty vasp.c!fft 0 10 1 14 -262144
-1 0;
#X obj 74 90 filelist \$0;
#X obj 61 411 vasp.update;
#X obj 61 434 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152
8 -262144 -1 -1;
#X obj 61 388 vasp.c!fft;
#X obj 61 233 vasp.cfft;
#X obj 61 254 vasp.update;
#X obj 61 275 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152
8 -262144 -1 -1;
#X text 801 97 real;
#X text 768 242 imaginary;
#X text 524 385 0 Hz;
#X text 660 384 sr/2;
#X text 171 473 <-- click to open;
#X text 789 386 44.1 kHz;
#X obj 352 474 dac~;
#N canvas 0 0 413 295 clear_buffers 0;
#X obj 49 73 vasp.= 0;
#X obj 49 49 inlet;
#X obj 49 97 vasp.u;
#X obj 49 118 bng 15 250 50 0 \$0-draw_display empty empty 0 -6 1152
8 -262144 -1 -1;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X restore 486 474 pd clear_buffers;
#X obj 352 431 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 374 428 play;
#X text 486 429 clear;
#X obj 59 473 filter_examplei;
#X text 71 53 invers complex fourier transformation (giant);
#X text 69 66 c!fft needs two buffers;
#X msg 486 451 vasp bufrei bufimi;
#X obj 352 451 tabplay~ bufrei;
#X msg 61 212 vasp bufrei bufimi;
#X text 189 211 transform to frequency domain;
#X text 152 247 each sample of the buffer now represents a frequency
(range from 0 to 44.1 kHz).;
#X text 60 306 to get back to the sourcefile in time domain either
use 3 more times vasp.cfft or just once vasp.c!fft;
#X text 195 364 invers cfft to transform back to time domain;
#X msg 61 365 vasp bufrei bufimi;
#X obj 525 112 wavedisplay-simple bufrei \$0;
#X obj 527 263 wavedisplay-simple bufimi \$0;
#X text 59 538 related objects:;
#X obj 59 574 VASP-HELP;
#X obj 371 539 vasp.r!fft;
#X obj 288 539 vasp.rfft;
#X obj 202 539 vasp.cfft;
#X connect 3 0 4 0;
#X connect 5 0 3 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 17 0 24 0;
#X connect 23 0 16 0;
#X connect 24 0 15 0;
#X connect 24 0 15 1;
#X connect 25 0 6 0;
#X connect 30 0 5 0;