Skip to content

Commit

Permalink
Merge pull request #81 from obnews/main
Browse files Browse the repository at this point in the history
update README.md
  • Loading branch information
swharden authored Oct 13, 2023
2 parents 70e9cd2 + fa0b46e commit c71db42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ double[] signal = FftSharp.SampleData.SampleAudio1();
int sampleRate = 48_000;

// calculate the power spectral density using FFT
System.Numerics.Complex[] spectrum = FftSharp.FFT.Forward(audio);
System.Numerics.Complex[] spectrum = FftSharp.FFT.Forward(signal);
double[] psd = FftSharp.FFT.Power(spectrum);
double[] freq = FftSharp.FFT.FrequencyScale(psd.Length, sampleRate);

Expand Down

0 comments on commit c71db42

Please sign in to comment.