Create Tone sound from Soundcard

How can we create a tone from soundcard.so that its frequency can be varied.?
[77 byte] By [Aldair] at [2007-11-15 17:38:13]
# 1 Re: Create Tone sound from Soundcard
Hi. I also want to do this, and I believe the best way would be to use the MIDI capability of the card. That way you can make any sound you want, and it would be generated right on the card. I have found a vb project sample of some MIDI stuff, but have not tried it yet. Search under MIDI and you should find something usefull.
WizBang at 2007-11-10 0:43:53 >
# 2 Re: Create Tone sound from Soundcard
I've answered to such question already here:

http://www.dev-archive.com/cgi-bin/bbs/wt/showpost.pl?Board=vb&Number=63088&page=&view=&sb=
Andrew R. at 2007-11-10 0:44:55 >
# 3 Re: Create Tone sound from Soundcard
That can't be run in Win 98. It just gave me the default system sound.
Aldair at 2007-11-10 0:46:00 >
# 4 Re: Create Tone sound from Soundcard
Hi I also thought about that. But I think we can't controll the tone and frequency of the midi out easily.
Aldair at 2007-11-10 0:46:54 >
# 5 Re: Create Tone sound from Soundcard
Hi I also thought about that. But I think we can't controll the frequency of the midi out easily.
Aldair at 2007-11-10 0:48:04 >
# 6 Re: Create Tone sound from Soundcard
You didn't mention platform in your question...
But that's true:

Windows 95: The Beep function ignores the dwFreq and dwDuration parameters. On computers with a sound card, the function plays the default sound event. On computers without a sound card, the function plays the standard system beep.
Andrew R. at 2007-11-10 0:49:06 >
# 7 Re: Create Tone sound from Soundcard
Hi. I found some really cool oscillator stuff on PlanetSourceCode.com. Search under vb for "oscillator".
WizBang at 2007-11-10 0:49:59 >