1
#N canvas 143 0 729 407 12;
3
#X text 105 12 -- find peaks in an FFT spectrum;
5
#X obj 131 129 osc~ 2000;
6
#X graph graph2 0 -64 63 64 519 179 719 39;
7
#X array fft-real 64 float;
9
#X graph graph3 0 -64 63 64 519 327 719 187;
10
#X array fft-imag 64 float;
12
#X obj 214 215 tabwrite~ fft-real;
13
#X obj 245 240 tabwrite~ fft-imag;
14
#X obj 315 158 metro 1000;
15
#X obj 315 116 loadbang;
18
#X msg 91 322 64 fft-real fft-imag 10;
20
#X obj 205 132 osc~ 5000;
21
#X text 25 37 pique takes unwindowed FFT analyses as input (they should be stored in arrays) and outputs a list of peaks \, giving their peak number \, frequency \, amplitude \, and phase (as a cosine/sine pair.);
22
#X text 13 289 message argumnets: number of FFT points \, fft real part \, fft imaginary part \, maximum number of peaks to report.;
23
#X text 578 387 updated for Pd 0.31.;