I want to read only frequencys from a WAV-File by using the fileaccess function from purebasic.
Do anyone knows, how to realize it ?


Code: Select all
Procedure SlowFourierTransform()
For bin=0 To (#BUFFERSIZE/2)-1
cosAmp.f = 0.0
sinAmp.f = 0.0
For k=0 To #BUFFERSIZE-1
x.f = 2.0 * #PI * bin * k / #BUFFERSIZE
sinAmp + InputData(k) * Sin(x)
cosAmp + InputData(k) * Cos(x)
Next
AmpOutput(bin) = Sqr(sinAmp*sinAmp + cosAmp*cosAmp)
Next
EndProcedure

I have presently two firm projects. But all my question about sound and the other subjects are a training for me. A training for better understand interresting areas of the programming.Other than that, I'd like to repeat Xombie's question: What are you up to?
It seems like you're randomly asking questions on any and every topic.
No offense.