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.

DarkBASIC Professional Discussion / Does anyone know how to make a reverb with memblock sound?

Author
Message
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 13th Sep 2011 04:06
Hi guys,

I'm trying to load sound wave up of foot steps to make a reverb with memblocks with it. However I change the values and nothing really happens. Anyone got a idea how to do it?

darkvee
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 13th Sep 2011 05:55 Edited at: 13th Sep 2011 07:24
Sorry about that guys not posting any code.
LOL!



darkvee
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 13th Sep 2011 12:18 Edited at: 13th Sep 2011 12:30
What is this line supposed to be doing?



If it works at all (which I doubt ) it is simply amplifying the old value like this:



I doubt that was your intention though.

There was a code snippet posted ages ago which showed how to manipulate sounds - and someone recently (within last month?) posted a corrected version of it. I'd check that out first.

Edit Here's the recent link:

Ric's sound creator program revisited
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 13th Sep 2011 16:02 Edited at: 13th Sep 2011 16:04
Hi Green Gandalf
Thanks for posting. Your always a great help.

I'm trying to do this Green Gandalf.

This is what it says:

Here is a very simple implementation of a "delay line" which will produce a reverb effect in an existing array (C#, buffer is short[]):



Do you know how to convert that code to darkbasic pro? The reason is I can't find a plugin that uses reverb besides fmod. However i'm planning on selling the game so I can't afford $3000 so I can't use it. So that's why i'm trying to figure this out. So any help from you trying to figure this would really be a big help

darkvee
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 13th Sep 2011 16:08 Edited at: 13th Sep 2011 16:15
You could have made reverb without memblocks just by using the play sound command, and changing its volume. This seems like the hard way to do it.

Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 14th Sep 2011 00:23
darkvee

Can you see the big difference between this:



and this



?

Anyway, if all you want to do is add an echo or reverberation to an existing sound I suggest you download Audacity which is an excellent FREE sound editor. I use it a lot. I've attached an example of a standard windows sound plus a second copy with an echo added to it. Took just a few moments to create the echo version.
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 14th Sep 2011 04:32 Edited at: 14th Sep 2011 04:53
Hi Pincho Paxton,
thanks for helping
I can't get it to echo with that?

Hi Green Gandalf,
Thanks for getting back with me

Yes the code is different I changed it around to be more like it in this post. I tried your files out. It sounds great! however I need to use dynamic reverbs. So it can switch from a big room vs a small room etc. So I can't use like Audacity.

Here is my code with lots of comments so far it seems kind of right but still it's not giving me a echo.


darkvee
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 14th Sep 2011 18:12 Edited at: 14th Sep 2011 18:13
Well the problem is that you have to load a sound more than once, but that might be the part that you can fix with a memblock. But here's a very simple way to do it... DOWNLOAD

You would use a timer() check rather than a wait command.

darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 14th Sep 2011 19:04
Hi Pincho Paxton

I did some tweaking and it sounds really good thanks.
Now I just need to make a volume control to turn all 3 down or up at the same time so it will work with the dynamic audio system i'm building. Which won't be hard at all. thank you.

darkvee

Login to post a reply

Server time is: 2026-07-10 20:57:09
Your offset time is: 2026-07-10 20:57:09