From ab083522b988fafe1e3b71605b709723321bedee Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes Date: Mon, 5 Sep 2011 22:57:48 +0000 Subject: added META subpatch to help patches svn path=/trunk/externals/windowing/; revision=15286 --- hamming~-help.pd | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) (limited to 'hamming~-help.pd') diff --git a/hamming~-help.pd b/hamming~-help.pd index f5ed123..5c689c6 100644 --- a/hamming~-help.pd +++ b/hamming~-help.pd @@ -1,15 +1,16 @@ -#N canvas 256 141 559 514 10; +#N canvas 1 53 559 514 10; +#X declare -lib windowing; #X obj 4 477 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 hamming~ 3 12 0 18 -204280 -1 0; -#X obj 3 239 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 15 12 0 13 +#X obj 3 229 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13 -228856 -1 0; -#X obj 3 299 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 15 12 0 -13 -228856 -1 0; -#X obj 3 359 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 15 -12 0 13 -228856 -1 0; -#X obj 72 259 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 +#X obj 3 289 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13 +-228856 -1 0; +#X obj 3 349 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12 +0 13 -228856 -1 0; +#X obj 72 249 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 - - -; @@ -17,7 +18,7 @@ -1 -1 7000 1; #X msg 94 66 1; #X obj 94 46 loadbang; -#X obj 102 364 pddp/pddplink http://en.wikipedia.org/wiki/Window_function +#X obj 102 354 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; @@ -28,27 +29,38 @@ pdpedia: hamming~; #X obj 170 122 sig~ 1; #X obj 170 146 hamming~; -#N canvas 0 0 450 300 graph2 0; +#N canvas 0 0 450 300 (subpatch) 0; #X array \$0-hamming 64 float 0; #X coords 0 1 63 -1 200 140 1; #X restore 334 60 graph; #X text 167 53 0.54+0.46*(cos(pi*x)); -#X obj 102 377 pddp/pddplink http://en.wikipedia.org/wiki/Hamming -text +#X obj 102 367 pddp/pddplink http://en.wikipedia.org/wiki/Hamming -text wikipedia: Richard Hamming; -#X obj 102 390 pddp/pddplink http://mathworld.wolfram.com/HammingFunction.html +#X obj 102 380 pddp/pddplink http://mathworld.wolfram.com/HammingFunction.html -text mathworld link; -#X text 102 402 Windowing functions are used with FFTs. These transform +#X text 102 392 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 text 103 317 SIGNAL: a hamming (raised cosine) window with size=dsp +#X text 103 307 SIGNAL: a hamming (raised cosine) window with size=dsp blocksize; #X obj 170 171 tabsend~ \$0-hamming; -#X obj 72 319 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 +#X obj 72 309 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; -#X text 102 258 SIGNAL: the height (amplitude) of the window is controlled +#X text 102 248 SIGNAL: the height (amplitude) of the window is controlled by the signal on its inlet.; +#N canvas 288 199 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 hamming window for each dsp block +; +#X restore 505 477 pd META; #X connect 7 0 17 0; #X connect 8 0 7 0; #X connect 9 0 8 0; -- cgit v1.2.1