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 Discussion / midi loops

Author
Message
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 20th Mar 2004 01:54
is there a way to get around the lag when a midi file loops? and why is mp3 faster?


Programs for programmers.
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 20th Mar 2004 06:46
I have found no way to get around the lagging midis, so I'm using a more stable sound format like wavs or mp3s isntead. The way these different formats work is that they save sound frequencies and give that data to DirectSound which then gives it to the sound card in a format that the card understands, which then gives the data to the speakers which then spit out the pretty sound.

The problem with midis is that they do not save actual frequencies. You can think of midis as a musicial notation format. It saves what notes are pressed for how long, how they are articulated, and then they run through the same process, except DirectSound has to take longer with them because it has to convert all the notation data to actual frequency data.

Fortunately, I've seen many midi/music creation software that, after saving to midi, allows you to export to .wav or .mp3.

Mp3 is the most efficient format just because of the way its structured. I don't think it does too well with detail though because it crunches the sound data. Unless you're not planning to sell your game commercially, or at least not get too many customers, you will have to pay a royalty fee for using mp3s in your program.
Wavs on the other hand are the most accurate because it keeps track of everything, but has bigger file sizes and could slow your program down. Fortunately, there's no royalty fees.

Crazy Donut Productions
Current Project: KillZone
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 20th Mar 2004 08:15
get roxio easy cd creater.. it comes with a sound editor. what you can do is play your midi in (say) window media player and record that using roxio then save it as .wav, .mp3, .ogg and .rxs.

PC: Pentium II, 333Mhz, 128 Mb SDRAM, 20 & 4Gb hard drives, 8Mb Videocard, DBC 1.13
~Dragael Software
Tim Ballisto
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 20th Mar 2004 14:19
you have to pay royalties for using the mp3 sound format or you have to pay to use ones that you didn't write?


Programs for programmers.
Code Ninja
21
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 20th Mar 2004 17:12
then learn to play an instrument? or write your own midi and covert it to mp3. unless you're music illiterate like me then yer gonna have problems.

PC: Pentium II, 333Mhz, 128 Mb SDRAM, 20 & 4Gb hard drives, 8Mb Videocard, DBC 1.13
~Dragael Software
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 20th Mar 2004 20:51
Wheter or not royalties are charged is the decision of the composer of the music. Most people will want some mula for their creations, but a lot of the stuff that came with DB is royalty-free as long as you include the composer's name in the credits.

If you want to compose yourself check out Finale Notepad 2003. Doesn't support many tracks, but is retty easy to get to grips with in comparison to the mother product, Finale, and it's free.

I forget where the link for mp3 was, but it says that if your app sells more than so many units, you owe them money. Look around for www.mp3.com or something.

Crazy Donut Productions
Current Project: KillZone

Login to post a reply

Server time is: 2025-05-31 17:41:15
Your offset time is: 2025-05-31 17:41:15