gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Audio > midi files

#3394 - Jer1400 - Mon Feb 24, 2003 12:32 am

What is the simplest way to get a .mid file to play and loop?
_________________
http://saoghal.cywh.com/Jer1400/index.html

*Note that the site is still in early development.

#3401 - tepples - Mon Feb 24, 2003 2:11 am

GBA typically doesn't use MIDI. You'll have to write your own software mixer and MIDI file interpreter (the standard MIDI file spec is on the web).

On the other hand, if you want to use a tracked format (.mod, .s3m, .xm) instead, there are a bunch of player libraries for those.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#3410 - Jer1400 - Mon Feb 24, 2003 6:22 am

Are there any applications that can convert a .mid file into one of those formats?
_________________
http://saoghal.cywh.com/Jer1400/index.html

*Note that the site is still in early development.

#3420 - gb_feedback - Mon Feb 24, 2003 2:11 pm

http://www.modplug.com has a (free) tracker which seems to do this. You have to decide on the limitations of this approach for yourself.

If you don't plan to write a mixer then the above answer covers it. If you do though, you will find that the mixer you end up with can have more uses than just playing midis, so it is not a complete waste of time!
_________________
http://www.bookreader.co.uk/


Last edited by gb_feedback on Mon Feb 24, 2003 4:52 pm; edited 1 time in total

#3424 - headspin - Mon Feb 24, 2003 4:23 pm

There is a program that will convert .mid files to .mod. mid2mod is one example.

Go here: http://hem.spray.se/joakim.slettengren/

Lots of handy audio file conversion programs

#3457 - Jer1400 - Tue Feb 25, 2003 7:52 am

Thanks a bunch everyone. I will download those programs and try to get things working tomorrow, but for now I'm going to bed. 'Night all.:)
_________________
http://saoghal.cywh.com/Jer1400/index.html

*Note that the site is still in early development.