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 > search for basic soundfont

#166522 - ghuldan - Mon Feb 09, 2009 11:28 am

Hi,

I search for a basic soundfont that could be used for a DS midi player.
Something of decent 16 bits quality for a DS :
- 16 bits 11khz/22khz ?
- with the 128 basic midi instruments (not necessary with all the useless ones)
- one sample per instrument / one bank (i'm not an expert)
- small size (i would start with 1-2Mb but i'm open minded)

I have hard time finding something basic on the net, and i guess guys who coded some midiPlayer would have that sort of things in stock.

Thanks

#166536 - Ruben - Mon Feb 09, 2009 2:32 pm

Well, for 16-bit samples, and your average sample being about 8192 bytes long, you'd be getting this equation:

2 * 8192 = 16384

Which is 16KB.. and times this by 127 instruments...

16 * 127 = 2032KB

Which means that you've already reached 2MB, and that's not including a single drum kit, and only 1 sample per instrument/patch/voice.

I personally prefer 8-bit samples (if size is what you're after), but if you're after quality, you should go with 16-bit samples at either 16384Hz or 32768Hz (usual mixing frequency).

Oh, and usually you wouldn't use SoundFonts for a DS MIDI player, you'd use DLS files (DownLoadable Sounds, if I remember right), which are pretty rare to find, but if you can afford Awave Studio, this will let you convert from too many formats to, again, too many formats.

:P

#166565 - ghuldan - Mon Feb 09, 2009 9:22 pm

Well DLS seems harder to find than what i already look for ...
Unless someone would have some material to share.

I'll probably end with soundfont. I could probably go for a little more than 2Mb (maybe <10Mb with a standard drum kit) ... if someone got one ...

#166574 - nanou - Tue Feb 10, 2009 1:17 am

You might start with the freepats samples. Some of them are in excess of 200k (with some layered patches up to about 2MB--per instrument) but I think quite a few of them are fairly small. If you're willing to sacrifice multisampling and clone patches for similar instruments it might just fit.

Personally, I'd sooner convert the midi file to a mod format and tweak the instruments by hand. This is going to be smaller and sound better in 99% of all cases.
_________________
- nanou

#166575 - Dwedit - Tue Feb 10, 2009 2:29 am

Windows comes with this DLS file:
C:\WINDOWS\system32\drivers\gm.dls

It's part of DirectX.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#168332 - theli - Wed Apr 22, 2009 3:13 pm

well.. it's an old topic... but hey.. it was 4th from top :)
ghuldan wrote:
I'll probably end with soundfont. I could probably go for a little more than 2Mb (maybe <10Mb with a standard drum kit) ... if someone got one ...

well, in my DS-midi experiments i used 1Mb GM soundfont which comes with freeware "SynthFont" software... also, with some sf editor like "Viena" (free) you can autoresample whole soundfont for size...
(or better decompile it with sf2comp, process with sox, compile with sf2comp back)

if i'm not mistaking this is that soundfont
http://omploader.org/vMWs4ZA/test.sf2

#168335 - Ruben - Wed Apr 22, 2009 11:15 pm

Ah, the 1MB soundfont.
Yeah, it's pretty small, but not suitable for NDS, as it uses low-pass filters, etc, unless you force these manually.