A digital audio signal is series of pairs (amplitude, time).
Or you can say it is a function of time.
If you take a sequence of an audio signal and perform a Fourier Transformation (DFT/FFT) on this sequence, you will get a new sequence which contains pairs of (amplitude, frequency).
Or you can say a function of frequency.
This sequence describes the properties of a signal in frequency domain.
It does not contain any time information at all.
I guess, what you want, is a function, which describes the change of an audio signal's frequency components over time. This can not be done by a simple FFT.
What you can do is:
- Take N samples of the audio data stream, samples (0, ..., N-1)
- Perform a FFT
- Take another N samples of the audio data stream, (m, ..., m+N-1) with m << N
- Perform a FFT
- Take another N samples of the audio data stream, (2m, ..., 2m+N-1)
- Perform a FFT
- and so on
If your sampling time is ts, you will get a new frequency analysis after T = m*ts.
Maybe, that is what you you want.
wav
file should give you that information. – Mark Ransom