[Csnd] [ANN] CsoundJNI
Date | 2020-05-17 05:21 |
From | Steven Yi |
Subject | [Csnd] [ANN] CsoundJNI |
Hi All, I'd like to announce a new Java binding for Csound I've put together called CsoundJNI. It uses JNI (Java Native Interface) to interact with Csound natively. It should be perform marginally better than the SWIG bindings. It currently has much of the Csound API exposed--enough that I am now using it for Blue. The API has it's native components included in the jar file meaning it only needs to find libcsound64/CsoundLib64 on the target system. (It does not use csnd6, the C++ interface.). Importantly, I have it setup so that it will detect and locate Csound on macOS whether you have installed Csound with the installer, self-compiled it, or installed Csound via Homebrew. (This was an issue with the SWIG-compiled interface and the various installation methods.). Using this library should "just work" out of the box with better success than the SWIG-based system. The library is available from Maven Central: and that page has instructions for use with common build systems for various JVM-based languages (Java, Scala, Kotlin, Clojure, etc.). I think by having this be in Maven, it should be dead-simple now to create a JVM-based system with Csound as it works better well with modern development practices. I will be continuing to develop this API as needs arise, largely driven by Blue, but I would be happy to add additional methods and expose parts of Csound's C API by request. Issues and pull requests are welcome at the github site above. Thanks and enjoy! Steven |
Date | 2020-05-17 23:49 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] [ANN] CsoundJNI |
Cool - I am especially excited that this will bring new life to Blue and make it easier for new users to install, explore, and use that wonderful and powerful system of yours Steven! _____________________________________________ Dr. Richard Boulanger Professor of Electronic Production and Design Professional Writing and Music Technology Division Berklee College of Music On Sun, May 17, 2020 at 12:21 AM Steven Yi <stevenyi@gmail.com> wrote:
|
Date | 2020-05-23 14:33 |
From | docB <000005d2745f1ec0-dmarc-request@LISTSERV.HEANET.IE> |
Subject | Re: [Csnd] [ANN] CsoundJNI |
Hi, The function i would appreciate is csoundScoreEventAsync. I tried it myself to add (i did it simply analogeous to the other
api calls), and it does actually work, but when the triggered instrument triggers another one nothing happens. in C the same scenario works fine.
On 5/17/20 6:21 AM, Steven Yi wrote:
|
Date | 2020-05-27 00:28 |
From | Steven Yi |
Subject | Re: [Csnd] [ANN] CsoundJNI |
I'll take a look at adding this and a native compiled library for arm linux and will email this list when complete. On Sat, May 23, 2020 at 9:33 AM docB <000005d2745f1ec0-dmarc-request@listserv.heanet.ie> wrote:
|