Thanks alot. That worked perfectly.
I have a program that generates a sine wave. I wanted to know how to generate a multitone wave with 2 frequencies using this program.What has to...
Sorry I realised that I didn't explain fully what I was doing in my first reply to you. I am trying to build a gui that will output a sine and...
Solution: The sgn function should only be for the sin function int a = amplitude_scale * sgn(sin(phase)) * maxval;
Of course. How silly of me. Thanks
Hi this is actually a sample c program that I got form the ALSA website. It is called pcm.c. It is for Linux based systems. I can't seem to post...
Square wave = sign(sinusoidal wave) So then why isn't the following code creating a square wave: int sgn(double d){ if (d>=0) d=1; else d=-1;...
Separate names with a comma.