Using Fluidsynth to play notes from SoundFonts on Android
Asked Answered
I

2

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:

Interferometer answered 28/10, 2011 at 11:8 Comment(2)
I am think about writing wrapper on fluidsynth through jni too.Denounce
I wish there were a solution for this.Bombproof
L
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);
Lorenzo answered 27/5, 2022 at 14:47 Comment(0)
R
-1

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

Karaoke Live MIDI Player DEMO

Roden answered 10/1, 2013 at 3:38 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.