Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Sound Generation with Memblocks

Author
Message
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 15th Aug 2009 10:01
Ive been looking at generating sounds recently, without media. The main reason for this was that my interest was sparked by reading through the DBPro Coding challenges thread.

Alot of the entries in there for games and even some others, use various methods of generating sounds without media. The most common, and what I see as the easiest, being with memblocks.

I spent a little bit of time looking around and found a few different snippets for generating sounds, but one in particular grabbed my attention. It is very simple, just 1 function, with alot of parameters. It was originall written by Ric in the DBPro forums, with input from alot of other forums members, credits are in the code.

Im posting this with the idea that people may find it useful if they are looking to enter the GDK coding challenges, or even if their next project requires some simple beeps and buzzes, more efficient to generate them than to take up diskspace storing them.

Here is the code, it contains a bunch of examples of creating different sounds and a simple demo to play them :



Here is the original DBPro thread, this is ported from the code at the top of the thread(as you can see, its not much different lol) :

http://forum.thegamecreators.com/?m=forum_view&t=49008&b=6

Hope this helps someone

If it ain't broke.... DONT FIX IT !!!
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 15th Aug 2009 18:00
Kewl stuff. I wish I had time to play around with this. I will keep it in mind when if and when I get back in the coding challenge. I've always wanted to create my own sound generator where you can use a text string to define what happens, how fast and in what sequence. Or by using graphic controls.

There are some interesting article on codeproject.com dealing with synthesizers in C# that appear to be interesting. Just search using "synth".

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-11-20 17:25:36
Your offset time is: 2024-11-20 17:25:36