B4A Class jFugue Midi Programming - Android

Discussion in 'Additional libraries, classes and official updates' started by stevel05, Jan 10, 2016.

  1. stevel05

    stevel05 Expert Licensed User

    This is not a Library per se, but a link into the jfugue for Android jar file. I have built a jfplayer class which creates and saves a midi file, then plays it (the only way it can be done on Android without using external devices). I have yet to look to see if it can drive the MidiLib I posted previously.

    i have re-created some of the example code that appears on the jfugue web site: http://www.jfugue.org/examples.html so you can see how easy it is to access this jar using JavaObject. So rather than me deciding what to wrap, you can access most of the functions directly.

    It took a while to get a working jar file, I had to install Android Studio and learn to use that and Gradle, and fix a bug that prevented it playing chords.

    There is a simliar post for B4j which shares all of the processing code of the attached project (with the use of compilation directives).

    The jfugue website with more examples and documentation for the API is here: http://www.jfugue.org/index.html.

    The library zip contains 2 files, the jfugue-android.jar and a javaxmidi.jar which is written by the same person that converted jfugue for android. Copy both of the jars to your additional libraries directory.

    Edit: If you want to try your hand at wrapping this with JavaObject, there is an example walkthrough here: https://www.b4x.com/android/forum/threads/wrapping-the-jfugue-midi-programming-jar-b4a-b4j.62280/

    Have fun

    Attached Files:

    Last edited: Jan 24, 2016
  2. palmzac

    palmzac Active Member Licensed User

    Great. Thank you !
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice