Article View: alt.pl.comp.lang.csharp
Article #21858Re: Example tutorial of Frequency/tone generator in csharp tia sal22
From: Jeff Johnson
Date: Fri, 03 Dec 2010 18:38
Date: Fri, 03 Dec 2010 18:38
25 lines
2469 bytes
2469 bytes
"Peter Duniho" <NpOeStPeAdM@NnOwSlPiAnMk.com> wrote in message news:lOadnXF-W7heqmTRnZ2dnUVZ_uudnZ2d@posted.palinacquisition... >> Greetings all >> I'm trying to find a tutorial that shows me how to make a Frequency/tone >> generator in Csharp (C#) >> Example I would like to have a slider that changes the value of x for the >> formula y=sin(x) so if the slider is moved >> to 440 it would play a 440hz sin wave out the speaker does such a >> tutorial exist if so can someone post a link to it >> tia sal22 > > Unlike Java (i.e. the previous language for which you asked this exact > same question), there is no sample-level audio API support in .NET. The > closest you can come is to play pre-generated media files (e.g. .wav). > See, for example, System.Media.SoundPlayer. I added some audio capability to an app of mine using Bass (http://www.un4seen.com/). "BASS is an audio library for use in Windows and Mac OSX software. Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions."
Technical Details
Message-ID:
<idbdfc$cof$1@news.eternal-september.org>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mailReferences:
<f9aKo.438890$pX3.23680@en-nntp-11.dc1.easynews.com> <lOadnXF-W7heqmTRnZ2dnUVZ_uudnZ2d@posted.palinacquisition>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Jeff Johnson" <i.get@enough.spam> Newsgroups: microsoft.public.dotnet.languages.csharp,alt.pl.comp.lang.csharp Subject: Re: Example tutorial of Frequency/tone generator in csharp tia sal22 Date: Fri, 3 Dec 2010 13:38:36 -0500 Organization: A noiseless patient Spider Lines: 27 Message-ID: <idbdfc$cof$1@news.eternal-september.org> References: <f9aKo.438890$pX3.23680@en-nntp-11.dc1.easynews.com> <lOadnXF-W7heqmTRnZ2dnUVZ_uudnZ2d@posted.palinacquisition> Injection-Date: Fri, 3 Dec 2010 18:38:37 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="c1cQHdxE5jY0WhqYugSG7g"; logging-data="13071"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jvVbQci90Pl/qiPvTPCCSU7CGaOzVQ6k=" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-RFC2646: Format=Flowed; Response X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 Cancel-Lock: sha1:NUKqwr+HvXtipBXecfDFpAMewlQ= X-Priority: 3 X-MSMail-Priority: Normal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit