6

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
  • 1
    I am think about writing wrapper on fluidsynth through jni too.
    – void
    Nov 25, 2012 at 14:27
  • 1
    I wish there were a solution for this.
    – Dabbler
    Jan 7, 2018 at 8:53

2 Answers 2

0

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);
-1

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

Karaoke Live MIDI Player DEMO

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.