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 > Question about Modplug

#168099 - DiscoStew - Fri Apr 10, 2009 7:17 am

I have some midi files that I want to convert to digital modules, but I've run into a sort of wall. I know converting with Modplug still requires some editing of the output because the conversion isn't perfect, but my problem is that I want them to use samples from a soundbank that I currently use for midi playback on my PC. It says that Modplug supports soundbanks, but they don't ever seem to be used when I import them in.

Anyone know how to deal with this situation?
_________________
DS - It's all about DiscoStew

#168100 - nanou - Fri Apr 10, 2009 7:42 am

Are you using SF2 or something? In the past I've gone to the trouble of extracting the samples myself (using some forgotten Linux tools) and importing them the traditional way.

I haven't used ModPlug much at all so this is just a wild guess, but are you sure the instruments are mapped right? After import, check to make sure they appear in the instruments list and the numbers in the tracks correspond to the correct instrument numbers. (It's shenanigans like that that in other trackers that made me extract/load them manually.)

You might have better luck converting your sound bank from whatever format it's in to .xi or .iti assuming ModPlug recognizes those. I think Awave Studio comes recommended for this.
_________________
- nanou

#168101 - Ruben - Fri Apr 10, 2009 7:45 am

But Awave Studio costs $$$ :)

Another thing you could do is, depending on your target platform, find a Midi player. If you're coding for the GBA, I can make you one easily, but if you're on the DS, sorry but I'm not familiar with it yet.

#168103 - nanou - Fri Apr 10, 2009 7:58 am

Ruben wrote:
But Awave Studio costs $$$ :)

Hm. I thought there was a useful freeware version. There must be something up to the task anyway.
_________________
- nanou

#168104 - Ruben - Fri Apr 10, 2009 8:02 am

Awave Studio's "freeware" version is a 30-day demo that IIRC, lets you save instruments but not collections (multiple instruments in a single file (like a .dls file))

#168105 - Ruben - Fri Apr 10, 2009 8:04 am

Oh yeah, I forgot to mention..

There's also a neat little program called "MIDI2XM" that converts Midi files to XM files, as long as you tell it what XM instruments to use for what patch. Dunno where I found it though...

EDIT:

I found it. You can get it from http://www.un4seen.com/

#168229 - pitcrawler - Thu Apr 16, 2009 3:05 am

I got sound fonts to work fine in Modplug. I managed to convert a midi in Modplug tracker, set all the instruments from a sound font and import it into a GBA game I was working on (Using pimpmobile) and it sounded fine.

You right click on the left of the screen where you see all the folders and instruments, then click on "Add Soundfont" then you load your soundfont (I used .sf2 soundfonts) then it will appear as a folder.

Now in your converted midi, you can go to the instruments panel then you can drag instruments from the soundfont's folder into the waveform section of the instrument panel. All the mappings etc should be done automatically if it's a decent soundfont.