Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c++ question / sound filtering #309446
02/09/10 12:35
02/09/10 12:35
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
hey there,

does anyone know of sites where i can find some (pseudo) code about how one can filter specified frequency from a wav file (from its samples) ?? i am looking for how such things basically work

i cant find anything like that ...

cheers,
ello

edit: seems i found something on wikipedia, anyhow mor input on this is welcome

Last edited by ello; 02/09/10 12:41.

www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: c++ question / sound filtering [Re: ello] #309498
02/09/10 19:28
02/09/10 19:28
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
hmpf, i dont really understand what i found on wikipedia..
how can i adapt that pseudo code (http://en.wikipedia.org/wiki/Low-pass_filter) so i can check for a specific frequency of a sample?

that pseudocode looks not too complex, but what for example does that := means??
and is this thing representing the whole sound: real[0..n] x ??

thanks in advance,
ello

Re: c++ question / sound filtering [Re: ello] #309500
02/09/10 19:34
02/09/10 19:34
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
if i was you i'd have a look into fourier transformation, especially fft:
http://en.wikipedia.org/wiki/Fast_Fourier_transform

like that you can transform your data from time space to frequency space. there you can process the data and after that you transform it back into time space. that's how most digital filters work.

edit: also have a look at
http://en.wikipedia.org/wiki/FFTW

edit2: and here
http://www.captain.at/howto-fftw-spectrograph.php

Last edited by Joey; 02/09/10 19:39.
Re: c++ question / sound filtering [Re: Joey] #309506
02/09/10 19:55
02/09/10 19:55
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
thank you very much.. this gives much more examples on the net. i'll check if i can get something to work laugh

one question which i cant answer, whats the diference between dft and fft ??

Last edited by ello; 02/09/10 20:01.
Re: c++ question / sound filtering [Re: ello] #309511
02/09/10 20:18
02/09/10 20:18
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
discrete fourier transformation just means that the signal is not given as a continuous function but at given intervals, "discrete". continuous fourier transformation (or transformation of infinite series) is not relevant for computer applications but rather for scientific purpose. and fft is a method how to calculate such a discrete transformation.

Re: c++ question / sound filtering [Re: Joey] #309599
02/10/10 07:34
02/10/10 07:34
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
thank you for clarifying this...

Re: c++ question / sound filtering [Re: ello] #309614
02/10/10 10:01
02/10/10 10:01
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
you're welcome.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1