Click here to Skip to main content
15,921,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFFT for dummies Pin
Steve Messer1-Sep-03 8:14
Steve Messer1-Sep-03 8:14 
GeneralRe: FFT for dummies Pin
Joaquín M López Muñoz1-Sep-03 11:16
Joaquín M López Muñoz1-Sep-03 11:16 
GeneralRe: FFT for dummies Pin
Anonymous1-Sep-03 11:50
Anonymous1-Sep-03 11:50 
GeneralRe: FFT for dummies Pin
mr20031-Sep-03 13:27
mr20031-Sep-03 13:27 
GeneralRe: FFT for dummies Pin
Steve Messer1-Sep-03 21:26
Steve Messer1-Sep-03 21:26 
GeneralRe: FFT for dummies Pin
Joaquín M López Muñoz1-Sep-03 22:14
Joaquín M López Muñoz1-Sep-03 22:14 
GeneralRe: FFT for dummies Pin
Steve Messer2-Sep-03 6:21
Steve Messer2-Sep-03 6:21 
GeneralRe: FFT for dummies Pin
Joaquín M López Muñoz2-Sep-03 7:02
Joaquín M López Muñoz2-Sep-03 7:02 
RE: 3) You mention picking frequencies of interest. None are particularly interesting to me,seriouly is there a techique or formula for picking these points of interest?

Well, frequency spectrums come in two flavors:
  • linear: points in the x-axis are evenly spaced (with respect to frequency).
  • logarithmic: points in the x-axis are not evenly spaced (like 10 Hz, 20, Hz, 30, HZ, etc.) but on an exponential fashion: for instance, 101 Hz, 102=100 Hz, 103=1000 Hz, etc.
Why the second style (called logarithmic scale)? Many systems, including the human ear, perceive exponentially distributed frequencies as being "perceptually" distributed in an uniform scale. For instance, the musical note C0 has a frequency 16.35 Hz, C1 is at 2·16.35=32.70 Hz, and C2 is at 4·16.35=65.40 Hz, although they "sound" as evenly distributed. Got the idea?
If you want to write a logarithmic spectrum displayer, the problem is that FFT outputs results in a linear scale. To transform to logartichmic you have to do some math in order to compute the different exponential bands and group all points inside a band into a single sample (suming their energies as described in my previous post).
Apart from this, no frequency is regarded as specially important. Go find an electronic spectrum analyzer (like the one in your music equipment) and use those values, for instance.

New 1) If you want to display the right and left channel at the same time having calculated themseparately do you just average them together?

I guess you mean the right and left channel of a stereo signal. The proper way to add them is by suming their energies is
Total = sqrt(Right<sup>2</sup>+Left<sup>2</sup>).

Muchas gracias Joaguin. De donde está usted?

De España. Suerte con tu proyecto,

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: FFT for dummies Pin
Steve Messer2-Sep-03 7:58
Steve Messer2-Sep-03 7:58 
Questionhow to hide the view of MDI program at startup Pin
mr20031-Sep-03 8:06
mr20031-Sep-03 8:06 
AnswerRe: how to hide the view of MDI program at startup Pin
KaЯl1-Sep-03 10:45
KaЯl1-Sep-03 10:45 
GeneralRe: how to hide the view of MDI program at startup Pin
mr20032-Sep-03 8:07
mr20032-Sep-03 8:07 
GeneralRe: how to hide the view of MDI program at startup Pin
KaЯl2-Sep-03 8:29
KaЯl2-Sep-03 8:29 
Questionhow to hide the view of MDI program Pin
Anonymous1-Sep-03 8:05
Anonymous1-Sep-03 8:05 
QuestionHow to fit a bitmap into a CStatic control Pin
tico_tech1-Sep-03 7:38
tico_tech1-Sep-03 7:38 
AnswerRe: How to fit a bitmap into a CStatic control Pin
Anonymous1-Sep-03 10:46
Anonymous1-Sep-03 10:46 
GeneralAnybody please help with linked list implementation Pin
digiman20031-Sep-03 6:02
digiman20031-Sep-03 6:02 
GeneralRe: Anybody please help with linked list implementation Pin
DViggiano1-Sep-03 7:11
DViggiano1-Sep-03 7:11 
GeneralOnPaint problem Pin
YaronNir1-Sep-03 5:59
YaronNir1-Sep-03 5:59 
GeneralRe: OnPaint problem Pin
Stefan Pedersen1-Sep-03 10:34
Stefan Pedersen1-Sep-03 10:34 
GeneralRe: OnPaint problem Pin
YaronNir2-Sep-03 4:08
YaronNir2-Sep-03 4:08 
GeneralRe: OnPaint problem Pin
Neville Franks1-Sep-03 10:47
Neville Franks1-Sep-03 10:47 
GeneralRe: OnPaint problem Pin
YaronNir2-Sep-03 4:08
YaronNir2-Sep-03 4:08 
GeneralI would like to calculate pi. Pin
Snyp1-Sep-03 4:23
Snyp1-Sep-03 4:23 
GeneralRe: I would like to calculate pi. Pin
Ted Ferenc1-Sep-03 4:53
Ted Ferenc1-Sep-03 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.