Hi guys,
I have this frustration that when adding two sine waves of different frequency to one channel output, for example 500hz and 1000hz, the output audio is not what a 500hz + 1000hz sound like but a very high pitch and loud sound. The frequency in the sink still shows the right frequency (two peaks at 500hz and 1000hz).
Any one knows why and how can I properly add two sine waves together?
Thanks,
Daniel
10:41am
Hi Daniel,
You need to be mindful of signal amplitudes when you do a float->fract32 conversion. Most likely the signal amplitude is over +/- 1.0 and is clipping heavily. You can put a Meter on the Interleaver output pin to check this. If it's over 0 dB then you will clip at that final Type Convertor. I would suggest putting a Scaler module inline with the adder output and setting the gain to -12 dB or 0.25. Does this help?
Thanks,
Gary
10:46am
Thanks Gary! That solves the issue, and thanks for explaining the reasoning behind!