Consider the following sound:
sound = ExampleData[{"Sound", "ViolinScale"}]
One may perform a FFT:
sound = ExampleData[{"Sound", "ViolinScale"}]
sampleRate = sound[[1, 2]];
fft = Fourier[samples];
I have a few very basic questions:
Am I right that the (modulus of) frequency corresponding to nth term is omega[n_]=(n-1)/Length[fft] sampleRate, where $n \in (1,\text{Length[fft]/2})$?
Also, am I right that the signal may be restored using fft as
omegamax=omega[Length[fft]/2+1];
a0=fft[[1]];
amax=fft[[Length[fft]/2+1]];
an[n_]:=fft[[n+1]]
aMn[n_]:=fft[[Length[fft]-1+n]]
signal[t_] = 1/Sqrt[Length[fft]](a0+Sum[(an[n]Exp[2Piomega[n]t]+aMn[n]Exp[-2Piomega[n]t]),{n,1,Length[fft]/2-1}]+amaxExp[2Piomegamaxt])
where t denotes time in seconds, fft[[1]] is the zeroth frequency amplitude, and an, aMn are amplitudes corresponding to $\omega_{+n}$, $\omega_{-n}$, and the maximal frequency amplitude is $a_{\text{max}}$?
