android play midi files, need to load soundfonts

Monkey Targets Forums/Android/android play midi files, need to load soundfonts

Bladko(Posted 2011) [#1]
1) i was able to just paste midi file into data folder and play it using playmusic()

2) other thing is i know that java able to load soundfont for midi and it can be part of JAR file

so it could be cool combine 1 + 2 for medium quality back music with low space requirements

anyone can help with 2)

	int LoadSoundBank(String filePath)
	{
		Synthesizer synth = MidiSystem.getSynthesizer();
		synth.loadAllInstruments(MidiSystem.getSoundbank( getClass().getResourceAsStream(filePath)));
		return 0;
	}




this is good start http://code.google.com/p/droid292/