aboutsummaryrefslogtreecommitdiff
path: root/cosine~-help.pd
blob: ff7616d82226951d4cb7f0c672f32e69477db573 (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
#N canvas 1 53 567 494 10;
#X declare -lib windowing;
#X obj 4 454 cnv 15 550 20 empty \$0-pddp.cnv.footer empty 20 12 0
14 -228856 -66577 0;
#X obj 4 -17 cnv 15 550 40 empty \$0-pddp.cnv.header cosine~ 3 12 0
18 -204280 -1 0;
#X obj 3 232 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13
-228856 -1 0;
#X obj 3 292 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13
-228856 -1 0;
#X obj 3 352 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12
0 13 -228856 -1 0;
#X obj 72 252 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X text 168 40 formula:;
#X floatatom 170 104 5 0 0 0 - - -;
#X obj 97 86 hsl 71 15 -1 1 0 0 empty empty empty -2 -6 0 10 -262144
-1 -1 7000 1;
#X msg 94 66 1;
#X obj 94 46 loadbang;
#X obj 102 356 pddp/pddplink http://en.wikipedia.org/wiki/Window_function
-text wikipedia: window functions;
#X obj 438 -14 import windowing;
#X msg 36 154 \; pd dsp 1;
#X text 21 85 height --->;
#X text 103 370 Windowing functions are used with FFTs. These transform
the signal block-by-block into a spectral representation whose resolution
in both the frequency and time domains are proportional to their size
(as a power-of-two in PD). The different windows have different characteristics
in terms of stopband attenuation and noise bandwidth.;
#X obj 170 122 sig~ 1;
#X obj 170 143 cosine~;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-cosine 64 float 0;
#X coords 0 1 63 -1 200 140 1;
#X restore 301 55 graph;
#X text 169 52 cos(pi*x/2);
#X text 15 6 description: generates a cosine window for each dsp block
;
#X obj 435 6 pddp/pddplink http://wiki.puredata.info/en/cosine~ -text
pdpedia: cosine~;
#X obj 170 169 tabsend~ \$0-cosine;
#X obj 72 312 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X text 102 251 SIGNAL: the height (amplitude) of the window is controled
by the signal on its inlet.;
#X text 103 310 SIGNAL: a cosine (otherwise known as a sine - actually
it's half a sine) window with size=dsp blocksize;
#N canvas 309 222 494 344 META 0;
#X text 12 125 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2;
#X text 12 5 KEYWORDS signal;
#X text 12 65 INLET_0 signal;
#X text 12 85 OUTLET_0 signal;
#X text 12 105 AUTHOR Joe Sarlo;
#X text 12 45 DESCRIPTION generate a cosine window for each dsp block
;
#X restore 502 456 pd META;
#X connect 7 0 16 0;
#X connect 8 0 7 0;
#X connect 9 0 8 0;
#X connect 10 0 9 0;
#X connect 16 0 17 0;
#X connect 17 0 22 0;