#5870 - tangl_99 - Sun May 11, 2003 9:59 am
I can only use Direct Sound by *.wav
But I want to use mid sound.
How?
Thanks!
#5872 - gb_feedback - Sun May 11, 2003 11:40 am
Assuming you mean midi...
You have to write a midi decoder, a wave synthesis note generator, and a mixer. The decoder produces 'note on', 'note off' events, and these turn on the notes which are generated by the generator which sends them to the mixer.
The general opinion of others around here is not to waste your time on midi (at least for games)...
If you want to hear my effort at playing midis, it's available on my web-site as a plug-in for pogoshell, in a V0.8 version with not-very-optimised samples.
_________________
http://www.bookreader.co.uk/
#5876 - Quirky - Sun May 11, 2003 2:43 pm
Another option if you just want something quickly is to convert the midi to a mod file and use one of the "free" mod players to play that.
Modtracker or ptmid convert midis to mods with varying rates of success.
Neimod works pretty well for playback and is probably the easiest modplayer to add to a gcc project.
#5877 - Daikath - Sun May 11, 2003 3:26 pm
Quirky wrote: |
Neimod works pretty well for playback and is probably the easiest modplayer to add to a gcc project. |
Except for the fact that when Catapult used it Nmod (as it is called) isnt avaible anymore for public use. (officially anyways, I still got the files from when they appeared on gbadev.org the first time, all three of em ;))
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?
#5934 - tangl_99 - Tue May 13, 2003 1:19 pm
I heard somebody said Krawall Free SDK can play the midi sound.
Is that useful?
#5936 - Quirky - Tue May 13, 2003 1:51 pm
Krawall plays mod files (and variations on that theme).
#6107 - DracoX5 - Sat May 17, 2003 5:34 am
I remember seeing something about MIDI in the BIOS section of CowBite's spec sheet, but I don't really know anything about it. As I recall there wasn't any information in the sheet either.
#6256 - HuangYZ - Wed May 21, 2003 3:29 am
MP2K is good choice to play midi in GBA
#6364 - Maddox - Fri May 23, 2003 8:25 pm
tangl_99 has written: Quote: |
I can only use Direct Sound by *.wav
But I want to use mid sound.
How?
Thanks! |
I believe I have the solution to all your trouble! Look!
1) Create or find a sample set of the instruments you use in your MIDI music.
2) Write a tool that reads your MIDI files and outputs a binary or whatever format you want (you're in charge!) which will be used by the GBA software during music playback.
3) Write software for the GBA which takes the data output by your tool in 2) and plays it back on the GBA using the samples you choose. You can decide (!) if you want to use the old school GB-type music registers in your music playback.
You can alternately reverse the order of 2) and 3) above, that is, you could write the GBA player code before the MIDI tool, if that's how your brain works.
Do that and your problem is solved!
M-A-D-D-O-X
_________________
You probably suck. I hope you're is not a game programmer.
#6381 - niltsair - Fri May 23, 2003 9:59 pm
The only flaw in your logic is that you assume everyone have music/sound handling knowledge. I seriously doubt there's a lot of people with an all around knowledge of GameDev, thus the need for multi-talents.