Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load custom DLS or SoundFonts to Android MIDI

I have an application that plays MIDI files through the SONiVOX EAS library. Is it possible to load my own DLS or SoundFont wavetables into the player and have the library use these sounds for MIDI playback?

like image 831
Eli Konky Avatar asked Feb 26 '11 08:02

Eli Konky


People also ask

How do I use SoundFonts with MIDI?

Just open MIDI, SoundFont files from your Google Drive and your computer, and Play it in your browser. It's very easy to use. You can control your playback like Play, Stop, Seek, Volume and all common controls in any audio player.

What is a SoundFont file?

SoundFont is a brand name that collectively refers to a file format and associated technology that uses sample-based synthesis to play MIDI files. It was first used on the Sound Blaster AWE32 sound card for its General MIDI support.


1 Answers

Ok, I change my answer completely, as the Jet Creator obviously wasn't what you were looking for.

I took a look into the eas library, and found, (in eas.h)

/*----------------------------------------------------------------------------
 * EAS_LoadDLSCollection()
 *----------------------------------------------------------------------------
 * Purpose: 
 * Downloads a DLS collection
 *
 * Inputs:
 * pEASData             - instance data handle
 * streamHandle         - file or stream handle
 * locator              - file locator
 *      
 * Outputs:
 * 
 *
 * Side Effects:
 * May overlay instruments in the GM sound set
 *
 *----------------------------------------------------------------------------
*/
EAS_PUBLIC EAS_RESULT EAS_LoadDLSCollection (EAS_DATA_HANDLE pEASData, EAS_HANDLE streamHandle, EAS_FILE_LOCATOR locator);

Now this surely indicates that there is a way to load DLS files into the player. I've never used it though.

like image 54
Hjalmar Avatar answered Nov 15 '22 04:11

Hjalmar