J
Jan Kowalski
Hi!
Does someon know how to generate a sinusoidal tone?
Thanks in advance!
Does someon know how to generate a sinusoidal tone?
Thanks in advance!
Jan Kowalski said:Does someon know how to generate a sinusoidal tone?
Jan Kowalski said:Does someon know how to generate a sinusoidal tone?
Use Platform/Invoke to call Beep():
[DllImport("kernel32.dll")]
public static extern bool Beep(int frequency, int duration);
Regards,
Will
Michael Gray said:2) It is NOT a sine wave. It is a distorted square wave.
The 'easiest' is to record the sine wave that you want to a file, then
play that file.
I didn't know that, thanks for the correction.
The wave file format is pretty simple and the mmio... functions are easy to
use so with a little math it shouldn't be hard to create a file on the fly
and loop the playback, no?
Regards,
Will
Michael Gray said:For a programmer with a math and computing degree it would be a
peice-of-cake.
Well, the OP did use the word "sinusoidal" which means he most likely made
it through basic trigonometry at least.
Regards,
Will