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 --- README.txt | 2 +- bartlett~-help.pd | 40 +++++++++++++++++++++++++++------------- blackman~-help.pd | 36 +++++++++++++++++++++++++----------- connes~-help.pd | 28 ++++++++++++++++++++-------- cosine~-help.pd | 38 +++++++++++++++++++++++++------------- gaussian~-help.pd | 26 +++++++++++++++++++------- hamming~-help.pd | 42 +++++++++++++++++++++++++++--------------- hanning~-help.pd | 42 +++++++++++++++++++++++++++--------------- kaiser~-help.pd | 26 +++++++++++++++++++------- lanczos~-help.pd | 26 +++++++++++++++++++------- welch~-help.pd | 42 +++++++++++++++++++++++++++--------------- 11 files changed, 236 insertions(+), 112 deletions(-) diff --git a/README.txt b/README.txt index 835705c..998423f 100644 --- a/README.txt +++ b/README.txt @@ -1,4 +1,4 @@ -Porvides: +Provides: hammimng~, hanning~, blackman~, cosine~, connes~, bartlett~, welch~, lanczos~, gaussian~, and kaiser~ diff --git a/bartlett~-help.pd b/bartlett~-help.pd index 0f2ebd0..d018dfc 100644 --- a/bartlett~-help.pd +++ b/bartlett~-help.pd @@ -1,14 +1,15 @@ -#N canvas 256 141 557 517 10; +#N canvas 1 53 557 517 10; +#X declare -lib windowing; #X obj 4 479 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 bartlett~ 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 239 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 3 299 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13 +-228856 -1 0; +#X obj 3 359 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 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 -162280 0; #X text 168 40 formula:; @@ -22,7 +23,7 @@ #X msg 36 154 \; pd dsp 1; #X text 21 85 height --->; #X obj 127 109 sig~ 1; -#N canvas 0 0 450 300 graph3 0; +#N canvas 0 0 450 300 (subpatch) 0; #X array \$0-bartlett 64 float 0; #X coords 0 1 63 -1 200 140 1; #X restore 326 65 graph; @@ -31,13 +32,9 @@ 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 102 258 SIGNAL: the height (amplitude) of the window is controlled -by the signal on its inlet.; #X obj 127 158 tabsend~ \$0-bartlett; #X obj 127 132 bartlett~; #X text 169 53 1-x^2; -#X text 103 317 SIGNAL: a bartlett (triangle) window with size=dsp -blocksize; #X obj 102 380 pddp/pddplink http://mathworld.wolfram.com/BartlettFunction.html -text mathworld link; #X obj 435 6 pddp/pddplink http://wiki.puredata.info/en/bartlett~ -text @@ -46,8 +43,25 @@ pdpedia: bartlett~; block; #X obj 72 319 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; +#N canvas 303 134 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 45 DESCRIPTION generate a bartlett window for each dsp block +; +#X text 12 65 INLET_0 signal; +#X text 12 85 OUTLET_0 signal; +#X text 12 105 AUTHOR Joe Sarlo; +#X restore 505 480 pd META; +#X text 101 257 signal; +#X text 101 317 signal; +#X text 151 257 - the height (amplitude) of the window is controlled +by the signal on its inlet.; +#X text 151 317 - a bartlett (triangle) window with size=dsp blocksize +; #X connect 7 0 14 0; #X connect 8 0 7 0; #X connect 9 0 8 0; -#X connect 14 0 19 0; -#X connect 19 0 18 0; +#X connect 14 0 18 0; +#X connect 18 0 17 0; diff --git a/blackman~-help.pd b/blackman~-help.pd index f54f8c6..f82b4e6 100644 --- a/blackman~-help.pd +++ b/blackman~-help.pd @@ -1,14 +1,15 @@ -#N canvas 256 141 561 517 10; +#N canvas 1 53 561 517 10; +#X declare -lib windowing; #X obj 4 479 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 blackman~ 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 239 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 3 299 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13 +-228856 -1 0; +#X obj 3 359 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 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 -162280 0; #X text 168 40 formula:; @@ -25,7 +26,7 @@ block; #X obj 127 109 sig~ 1; #X obj 127 132 blackman~; -#N canvas 0 0 450 300 graph3 0; +#N canvas 0 0 450 300 (subpatch) 0; #X array \$0-blackman 64 float 0; #X coords 0 1 63 -1 200 140 1; #X restore 326 65 graph; @@ -33,7 +34,6 @@ block; #X text 168 55 0.42+(0.5*cos(pi*x))+; #X obj 102 380 pddp/pddplink http://mathworld.wolfram.com/BlackmanFunction.html -text mathworld link; -#X text 103 317 SIGNAL: a blackman window with size=dsp blocksize; #X obj 435 6 pddp/pddplink http://wiki.puredata.info/en/blackman~ -text pdpedia: blackman~; #X text 102 394 Windowing functions are used with FFTs. These transform @@ -41,13 +41,27 @@ 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 102 258 SIGNAL: the height (amplitude) of the window is controlled -by the signal on its inlet.; #X obj 127 158 tabsend~ \$0-blackman; #X obj 73 319 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; +#X text 102 259 signal; +#X text 102 318 signal; +#X text 152 259 - the height (amplitude) of the window is controlled +by the signal on its inlet.; +#X text 152 318 - a blackman window with size=dsp blocksize; +#N canvas 308 206 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 blackman window for each dsp block +; +#X restore 505 480 pd META; #X connect 7 0 15 0; #X connect 8 0 7 0; #X connect 9 0 8 0; #X connect 15 0 16 0; -#X connect 16 0 25 0; +#X connect 16 0 23 0; diff --git a/connes~-help.pd b/connes~-help.pd index c4fce2f..59615f2 100644 --- a/connes~-help.pd +++ b/connes~-help.pd @@ -1,14 +1,15 @@ -#N canvas 230 69 553 535 10; -#X obj 4 484 cnv 15 550 20 empty \$0-pddp.cnv.footer empty 20 12 0 +#N canvas 1 53 553 535 10; +#X declare -lib windowing; +#X obj 4 493 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 connes~ 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 239 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 3 299 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13 +-228856 -1 0; +#X obj 3 359 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 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 -162280 0; #X text 168 40 formula:; @@ -28,7 +29,7 @@ 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; -#N canvas 0 0 450 300 graph5 0; +#N canvas 0 0 450 300 (subpatch) 0; #X array \$0-connes 64 float 0; #X coords 0 1 63 -1 200 140 1; #X restore 301 55 graph; @@ -48,6 +49,17 @@ wikipedia: Alain Connes; pdpedia: connes~; #X text 15 6 description: generates a connes window for each dsp block ; +#N canvas 309 235 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 connes window for each dsp block +; +#X restore 502 493 pd META; #X connect 7 0 16 0; #X connect 8 0 7 0; #X connect 9 0 8 0; diff --git a/cosine~-help.pd b/cosine~-help.pd index 50bb1c9..ff7616d 100644 --- a/cosine~-help.pd +++ b/cosine~-help.pd @@ -1,15 +1,16 @@ -#N canvas 230 69 567 494 10; +#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 239 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 15 12 0 13 +#X obj 3 232 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 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 - - -; @@ -17,19 +18,19 @@ -1 -1 7000 1; #X msg 94 66 1; #X obj 94 46 loadbang; -#X obj 102 363 pddp/pddplink http://en.wikipedia.org/wiki/Window_function +#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 377 Windowing functions are used with FFTs. These transform +#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 graph5 0; +#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; @@ -39,12 +40,23 @@ in terms of stopband attenuation and noise bandwidth.; #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 319 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 +#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 258 SIGNAL: the height (amplitude) of the window is controled +#X text 102 251 SIGNAL: the height (amplitude) of the window is controled by the signal on its inlet.; -#X text 103 317 SIGNAL: a cosine (otherwise known as a sine - actually +#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; diff --git a/gaussian~-help.pd b/gaussian~-help.pd index ac715ac..7976c4b 100644 --- a/gaussian~-help.pd +++ b/gaussian~-help.pd @@ -1,14 +1,15 @@ -#N canvas 256 141 559 517 10; +#N canvas 1 53 559 517 10; +#X declare -lib windowing; #X obj 4 479 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 gaussian~ 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 239 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13 -228856 -1 0; -#X obj 3 319 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 3 319 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13 +-228856 -1 0; +#X obj 3 359 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 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 -162280 0; #X text 168 40 formula:; @@ -22,7 +23,7 @@ #X msg 36 154 \; pd dsp 1; #X text 21 85 height --->; #X obj 127 109 sig~ 1; -#N canvas 0 0 450 300 graph3 0; +#N canvas 0 0 450 300 (subpatch) 0; #X array \$0-gaussian 64 float 0; #X coords 0 1 63 -1 200 140 1; #X restore 326 65 graph; @@ -53,6 +54,17 @@ is controlled by floats in the inlet; -text mathworld link; #X obj 73 326 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; +#N canvas 310 251 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 gaussian window for each dsp block +; +#X restore 505 480 pd META; #X connect 7 0 14 0; #X connect 8 0 7 0; #X connect 9 0 8 0; 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; diff --git a/hanning~-help.pd b/hanning~-help.pd index 8a0c1d6..af881d7 100644 --- a/hanning~-help.pd +++ b/hanning~-help.pd @@ -1,18 +1,19 @@ -#N canvas 283 199 561 515 10; +#N canvas 1 53 561 515 10; +#X declare -lib windowing; #X obj 4 474 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 hanning~ 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 226 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 286 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13 +-228856 -1 0; +#X obj 3 346 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12 +0 13 -228856 -1 0; +#X obj 72 246 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; #X obj 170 141 hanning~; -#N canvas 0 0 450 300 graph1 0; +#N canvas 0 0 450 300 (subpatch) 0; #X array \$0-hanning 64 float 0; #X coords 0 1 63 -1 200 140 1; #X restore 302 54 graph; @@ -26,29 +27,40 @@ #X obj 94 46 loadbang; #X obj 435 6 pddp/pddplink http://wiki.puredata.info/en/hanning~ -text pdpedia: hanning~; -#X obj 102 376 pddp/pddplink http://en.wikipedia.org/wiki/Hanning -text +#X obj 102 363 pddp/pddplink http://en.wikipedia.org/wiki/Hanning -text wikipedia: hanning function; -#X obj 102 389 pddp/pddplink http://mathworld.wolfram.com/HanningFunction.html +#X obj 102 376 pddp/pddplink http://mathworld.wolfram.com/HanningFunction.html -text mathworld link; -#X obj 102 363 pddp/pddplink http://en.wikipedia.org/wiki/Window_function +#X obj 102 350 pddp/pddplink http://en.wikipedia.org/wiki/Window_function -text wikipedia: window functions; #X obj 438 -14 import windowing; -#X text 103 317 SIGNAL: a hanning (inverted cosine) window with size=dsp +#X text 103 304 SIGNAL: a hanning (inverted cosine) window with size=dsp blocksize; #X msg 36 154 \; pd dsp 1; #X text 21 85 height --->; #X text 15 6 description: generates a hanning window for each dsp block ; -#X text 102 402 Windowing functions are used with FFTs. These transform +#X text 102 389 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 167 tabsend~ \$0-hanning; -#X text 102 258 SIGNAL: the height (amplitude) of the window is controled +#X text 102 245 SIGNAL: the height (amplitude) of the window is controled by the signal on its inlet.; -#X obj 72 319 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 +#X obj 72 306 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; +#N canvas 290 213 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 hanning window for each dsp block +; +#X restore 505 475 pd META; #X connect 6 0 25 0; #X connect 9 0 6 0; #X connect 11 0 9 0; diff --git a/kaiser~-help.pd b/kaiser~-help.pd index 78038f2..45c8fd5 100644 --- a/kaiser~-help.pd +++ b/kaiser~-help.pd @@ -1,14 +1,15 @@ -#N canvas 256 141 557 517 10; +#N canvas 1 53 557 517 10; +#X declare -lib windowing; #X obj 4 479 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 kaiser~ 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 239 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13 -228856 -1 0; -#X obj 3 319 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 3 319 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13 +-228856 -1 0; +#X obj 3 359 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 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 -162280 0; #X text 168 40 formula:; @@ -22,7 +23,7 @@ #X msg 36 154 \; pd dsp 1; #X text 21 125 height --->; #X obj 127 149 sig~ 1; -#N canvas 0 0 450 300 graph3 0; +#N canvas 0 0 450 300 (subpatch) 0; #X array \$0-kaiser 64 float 0; #X coords 0 1 63 -1 200 140 1; #X restore 326 65 graph; @@ -52,6 +53,17 @@ blocksize; by floats in the inlet; #X text 15 6 description: generates a kaiser window for each dsp block ; +#N canvas 286 187 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 kaiser window for each dsp block +; +#X restore 506 479 pd META; #X connect 7 0 14 0; #X connect 8 0 7 0; #X connect 9 0 8 0; diff --git a/lanczos~-help.pd b/lanczos~-help.pd index 4495841..afb4dbd 100644 --- a/lanczos~-help.pd +++ b/lanczos~-help.pd @@ -1,14 +1,15 @@ -#N canvas 256 141 560 517 10; +#N canvas 1 53 560 517 10; +#X declare -lib windowing; #X obj 4 479 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 lanczos~ 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 239 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 3 299 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13 +-228856 -1 0; +#X obj 3 359 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 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 -162280 0; #X text 168 40 formula:; @@ -22,7 +23,7 @@ #X msg 36 154 \; pd dsp 1; #X text 21 85 height --->; #X obj 127 109 sig~ 1; -#N canvas 0 0 450 300 graph3 0; +#N canvas 0 0 450 300 (subpatch) 0; #X array \$0-lanczos 64 float 0; #X coords 0 1 63 -1 200 140 1; #X restore 326 65 graph; @@ -44,6 +45,17 @@ pdpedia: lanczos~; #X obj 127 132 lanczos~; #X obj 72 319 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; +#N canvas 288 245 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 lanczos window for each dsp block +; +#X restore 505 480 pd META; #X connect 7 0 14 0; #X connect 8 0 7 0; #X connect 9 0 8 0; diff --git a/welch~-help.pd b/welch~-help.pd index efc0060..23d31fa 100644 --- a/welch~-help.pd +++ b/welch~-help.pd @@ -1,52 +1,64 @@ -#N canvas 256 141 560 517 10; +#N canvas 1 53 560 517 10; +#X declare -lib windowing; #X obj 4 479 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 welch~ 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 227 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 287 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlet 8 12 0 13 +-228856 -1 0; +#X obj 3 347 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12 +0 13 -228856 -1 0; +#X obj 72 247 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; #X text 168 40 formula:; #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 365 pddp/pddplink http://en.wikipedia.org/wiki/Window_function +#X obj 102 353 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 obj 127 109 sig~ 1; -#N canvas 0 0 450 300 graph3 0; +#N canvas 0 0 450 300 (subpatch) 0; #X array \$0-welch 64 float 0; #X coords 0 1 63 -1 200 140 1; #X restore 326 65 graph; -#X text 102 406 Windowing functions are used with FFTs. These transform +#X text 102 394 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 102 258 SIGNAL: the height (amplitude) of the window is controlled +#X text 102 246 SIGNAL: the height (amplitude) of the window is controlled by the signal on its inlet.; #X obj 127 158 tabsend~ \$0-welch; #X obj 127 132 welch~; #X text 169 53 1-abs(x); -#X obj 102 379 pddp/pddplink http://en.wikipedia.org/wiki/Welch_method +#X obj 102 367 pddp/pddplink http://en.wikipedia.org/wiki/Welch_method -text wikipedia: Welch's method; -#X obj 102 392 pddp/pddplink http://mathworld.wolfram.com/WelchApodizationFunction.html +#X obj 102 380 pddp/pddplink http://mathworld.wolfram.com/WelchApodizationFunction.html -text mathworld link; -#X text 103 317 SIGNAL: a welch window with size=dsp blocksize; +#X text 103 305 SIGNAL: a welch window with size=dsp blocksize; #X text 15 6 description: generates a welch window for each dsp block ; #X obj 435 6 pddp/pddplink http://wiki.puredata.info/en/welch~ -text pdpedia: welch~; -#X obj 73 319 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 +#X obj 73 307 cnv 17 3 30 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856 -162280 0; +#N canvas 290 303 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 welch window for each dsp block +; +#X restore 505 480 pd META; #X connect 7 0 14 0; #X connect 8 0 7 0; #X connect 9 0 8 0; -- cgit v1.2.1