Using Fluidsynth to play notes from SoundFonts on Android

6.8k views Asked by At

Is there a way to allow android to play sounds using SoundFont files via using FluidSynth? I've been looking at jOrgan but the source code seems to be kind of... overwhelming to say the least.

Problem is that java sound API is not supported in android so a great sample to the project i'm in would have been Java Sound Demo's Midi Synth.

I think I should be fine with some porting from C to JNI but I'm not knowledgeable when it comes to handling audio features (I've only read and started researching today).

Any Help?

Also I've read the following threads and tried available java/android projects with possible solution for this:

2

There are 2 answers

0
nijian81 On

https://www.fluidsynth.org/api/example_8c-example.html

this doc tell how to load .sf2 file

and, call this to play a note

fluid_synth_noteon(synth, 0, key, 80);
0
choi On

Please refer this app. This app use libfluidsynth.so library.

Karaoke Live MIDI Player DEMO