Baluncore said:
You should simplify your setup and first experiment with the amplitude effects of a sine wave only.
You should show us the loop that synthesises the time domain signal, not just the inner function.
Are you a masochist? Why are you adding harmonics when you have not yet got a clean predictable sine wave?
Maybe you think that if you juggle your code fast enough it will all fall into place and suddenly work correctly.
Re: Post #18. Why is there so much noise on your time plot? Where does that time data come from? Why are there multiple plots on your spectrum? Is it a power or an amplitude spectrum?
The 44100 samples is not a power of two so you must be using an unusual FFT. If the FFT is a power of two then it will not be a multiple of signal periods and so will show noise due to an end wrap-around step. Are you windowing your data before the FFT ?
Are you a masochist? no lol
Why are you adding harmonics when you have not yet got a clean predictable sine wave?
I did, A while back. My code works fine if I just have one sine ... but not so will with more than one : sine(3F) + sine(F)
Why is there so much noise on your time plot?
I do not know, I have a filter that does not display anything with a magnitude low than 300000, I am thinking because It is a dell computer
Where does that time data come from?
a program I wrote in C# that plays out my computer speakers
Why are there multiple plots on your spectrum?
I do not know, noise I guess
The 44100 samples is not a power of two so you must be using an unusual FFT. If the FFT is a power of two then it will not be a multiple of signal periods and so will show noise due to an end wrap-around step.
no, I am not using 44100 samples where did you get that from ? I am using 16384 samples for my fft.
Are you windowing your data before the FFT ?
kind of , i take 16384 at a time and do the FFT and i just low the other same until i redo the FFT so kind of ...