
Pure Tones in C# How do I produce?
If you can produce .WAV or .MID(I) files
for this tones, and timing no issue, try:
WaveFile
http://www.allapi.net/classlib/class.php?id=8
MidiFile
http://www.allapi.net/classlib/class.php?id=19
else I guess you have to search pure C++/win32 code first,
then port it yourself to C# using PInvoke.
E.g. low-level C++ sample (using waveOutWrite)
http://www.codeproject.com/audio/lamer2000.asp
Note you could use stereo files and
control the volume of left/right channel...
--
NETMaster (Thomas Scheidegger)
http://www.cetus-links.org/oo_csharp.html
Quote:
> I posted this in the .framework newsgroup a couple of days ago and did not
> get any type of response so I thought that I would post it here.
> I need to produce some tones at various frequencies such as 250 - 6000
> kilohertz.
> I need to produce these tones for both the left and right channels at the
> same time and then produce them seperatly for the left channel and then for
> the right channel.
> I know that there is no built in support for this in C# (at least that I
> could find) and was wondering if anyone has any dirty code and or ideas on
> how I could produce these tones using C# and .net.