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.

Newcomers DBPro Corner / Sound Analysis/Move to the Music

Author
Message
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 15th Nov 2003 05:51
Has anyone managed to code a way to analyze a wave/sound file yet, so you can create graphics effects like the WINAMP Visualization studio?

IE so you can have your lights move to the beat, etc.?

I'm curious because I don't think I'm quite enough of a coder to work on something like that myself yet, but if I could see a decently commented source code example, I could probably work from there. Never done it before.

I suppose what you'd need to know is how WAV files are encoded, and how to decode them properly and work from there.
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 15th Nov 2003 10:09
If you have dbpro then look at the make memblock from sound command.
The documentation isn't helpfull and I don't know enough about sound files to work out how the date is stored myself.
Hopefully someone else will come along and explain how the sound data is stored in the memblock.

dbpro : p166mmx @ 233 : 256mb : sb 128pci : sis onboard
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 16th Nov 2003 02:15
Hmm. Thanks for pointing that out to me. It's nice to know you can put it there, now if only you could figure out what to do with it!
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 16th Nov 2003 03:11
Could this be of any use to you?

http://www.thegamecreators.com/?m=forum_view&t=7137&b=6

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 16th Nov 2003 05:05
I say, great stuff. Very helpful! Thank you my friend.
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 16th Nov 2003 05:19
Hrm.

If only there was a way to locate what position you were at in the sound while it was playing to keep any analysis of the waveform in sync with the music.

I'm going to stare at this code until I understand it better. Or my eyes fall out. One or the other.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 16th Nov 2003 08:43
Not sure about wav files, but someone did have something that had visuals syncing with the beat of a MOD file.
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 16th Nov 2003 14:52 Edited at: 16th Nov 2003 14:54
Quote: "If only there was a way to locate what position you were at in the sound while it was playing"

Currently there are at least three things missing from the DBPro sound system:

1) Checking to see whether a sound is mono or stereo.
2) Making stero sounds from memblocks.
3) Reading the current position of a playing sound.

The last one could be handy for triggering events in games as well as sound analysis. If these were included in a future patch then I might get my finger out and build a WAV sound utility

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 17th Nov 2003 03:49
Hrm. I wonder if the -will- update that in a future patch. I certainly hope so. Looks like they've got a lot on their plate.

Perhaps there's a .dll that would do the trick?

Login to post a reply

Server time is: 2024-11-25 17:43:00
Your offset time is: 2024-11-25 17:43:00