csound api java maxmsp
Date | 2015-06-27 14:53 |
From | peiman khosravi |
Subject | csound api java maxmsp |
Attachments | None None |
Dear all, If you fancy doing some testing, you could try a csound api java maxmsp external I'm working on. I haven't tested on windows but would be interested to see if it works. 1- Download this zip file: https://www.dropbox.com/s/qsmxbet706t5617/csound_java.zip?dl=0 2- put the content of "java-classes" wherever java classes are normally istalled on windows. 3- fire up javaCsoundTest.maxpat, turn DSP on and play the soundfile to see if you get anything. Currently it supports only one in/out channel (easy to add more later) and unlimited number of control channels. Thanks P |
Date | 2015-06-27 22:52 |
From | Rory Walsh |
Subject | Re: csound api java maxmsp |
Attachments | None None |
This great. This might get us 64bit man-Csound in Windows! On 27 Jun 2015 14:54, "peiman khosravi" <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-28 10:14 |
From | alfonso santimone |
Subject | Re: csound api java maxmsp |
Attachments | None None |
great news!! i'll test it in the next days. thanks! Il 27/giu/2015 23:54, "Rory Walsh" <rorywalsh@ear.ie> ha scritto:
|
Date | 2015-06-28 11:59 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
New version: https://www.dropbox.com/s/eg7gpt6528xo5nb/csound_java_alpha2.zip?dl=0 New: - The patch is properly commented now. - Csound sample rate is automatically reset if it doesn't match that of msp. Best, Peiman On 28 June 2015 at 10:14, alfonso santimone <alfonso.santimone@gmail.com> wrote:
|
Date | 2015-06-29 13:47 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Here's another version: https://www.dropbox.com/s/mk3r6cavs78qwxu/csoundjava_alpha3.zip?dl=0 - Added multichannel support. - 'stop/restar' messages - 'open' message to open the CSD in the default editor. NOTE - The latest os x installer isn't installing the java classes. To do this manually just copy the content of /Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Java/ (csnd6.jar and lib_jcsound6.jnilib) into /Library/Java/Extensions/ and restart Max. - Also note that on my system (OS X 10.9.5) the java csound wrapper only works in 32-bit mode max. Both these issue will hopefully be fixed soon! Thanks P On 28 June 2015 at 11:59, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-29 22:40 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
New version with better documentation and ability to write table indices. https://www.dropbox.com/s/29oz94z16kc74qb/csoundjava_alpha4.zip?dl=0 Most of the important features of csound~ are now implemented! Best, P On 29 June 2015 at 13:47, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-30 05:11 |
From | "Dr. Richard Boulanger" |
Subject | Re: csound api java maxmsp |
Attachments | Screen Shot 2015-06-30 at 12.09.39 AM.png None None |
just tried alpha 3 and still can't get it to "find" csound. copied files as you instructed as well.
On Mon, Jun 29, 2015 at 5:40 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-30 09:27 |
From | alfonso santimone |
Subject | Re: csound api java maxmsp |
Attachments | None None |
hi here's my error list. Max 7.0.4 on Win7.MXJ System CLASSPATH: C:\Program Files (x86)\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\jitter.jar C:\Program Files (x86)\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\jode-1.1.2-pre-embedded.jar C:\Program Files (x86)\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\max.jar C:\Program Files (x86)\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\jitter.jar C:\Program Files (x86)\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\jode-1.1.2-pre-embedded.jar C:\Program Files (x86)\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\max.jar MXJClassloader CLASSPATH: C:\Program Files (x86)\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\classes\ C:\Program Files (x86)\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\classes\ C:\Program Files (x86)\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\ C:\Users\Live Machine\Documents\Max 7\Packages\max_package_downloader-master\java-classes\ C:\Users\Live Machine\Documents\Max 7\Packages\ejies_3.2\java-classes\ Jitter Java support installed java.lang.NoClassDefFoundError: csnd6/Csound at csound.<init>(csound.java:25) Caused by: java.lang.ClassNotFoundException: csnd6.Csound at com.cycling74.max.MXJClassLoaderImpl.lookupClassData(MXJClassLoaderImpl.java:219) at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:111) at com.cycling74.max.MXJClassLoaderImpl.loadClass(MXJClassLoaderImpl.java:89) at java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more (mxj~) unable to construct instance of csound On Mon, Jun 29, 2015 at 11:40 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-30 09:34 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Thanks Alfonso, Looks like csnd6 isn't installed properly on windows either. Could you locate csnd6 on your computer and copy it to JAVA_HOME\lib\ext? Best, Peiman On 30 June 2015 at 09:27, alfonso santimone <alfonso.santimone@gmail.com> wrote:
|
Date | 2015-06-30 11:41 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | Screen Shot 2015-06-30 at 12.09.39 AM.png None None |
Thanks, this is strange. This csound installer isn't installing things properly at all. I hope it'll get sorted soon. I'm upgrading to Yosemite today... On 30 June 2015 at 05:11, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
|
Date | 2015-06-30 13:17 |
From | alfonso santimone |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Thanks Peiman, i just relized i unistalled all Csound stuff except Cabbage.On Tue, Jun 30, 2015 at 10:34 AM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-30 13:27 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
If you've reinstalled Csound I'd try it again to check if it works out of the box. If not, then you need to install csnd6.jar into your python class path. BTW here's a new version: https://www.dropbox.com/s/9ftmce0xomry2w1/csoundjava_alpha5.zip?dl=0 Dr Boulanger is also having trouble on Yosemite as his system isn't finding the python classes. It looks like both windows and OS X installers/builds need to be fixed to install the classes correctly. Cheers, P On 30 June 2015 at 13:17, alfonso santimone <alfonso.santimone@gmail.com> wrote:
|
Date | 2015-06-30 14:07 |
From | alfonso santimone |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Hi Peiman, what do you mean with "python class path"?On Tue, Jun 30, 2015 at 2:27 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-30 14:13 |
From | alfonso santimone |
Subject | Re: csound api java maxmsp |
Attachments | None None |
I mean .. csnd6.jar is now exactly in my PYTHONPATH dir "C:\Program Files (x86)\Csound6\bin" but i still have tgis error in Max7 64 bitMXJ System CLASSPATH: C:\Program Files\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\jitter.jar C:\Program Files\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\jode-1.1.2-pre-embedded.jar C:\Program Files\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\max.jar C:\Program Files\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\jitter.jar C:\Program Files\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\jode-1.1.2-pre-embedded.jar C:\Program Files\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\lib\max.jar MXJClassloader CLASSPATH: C:\Program Files\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\classes\ C:\Program Files\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\classes\ C:\Program Files\Cycling '74\Max 7\resources\packages\max-mxj\java-classes\ C:\Users\Live Machine\Documents\Max 7\Packages\max_package_downloader-master\java-classes\ C:\Users\Live Machine\Documents\Max 7\Packages\ejies_3.2\java-classes\ Jitter Java support installed java.lang.NoClassDefFoundError: csnd6/Csound at csound.<init>(csound.java:25) Caused by: java.lang.ClassNotFoundException: csnd6.Csound at com.cycling74.max.MXJClassLoaderImpl.lookupClassData(MXJClassLoaderImpl.java:219) at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:111) at com.cycling74.max.MXJClassLoaderImpl.loadClass(MXJClassLoaderImpl.java:89) at java.lang.ClassLoader.loadClass(Unknown Source) ... 1 more (mxj~) unable to construct instance of csound On Tue, Jun 30, 2015 at 3:07 PM, alfonso santimone <alfonso.santimone@gmail.com> wrote:
|
Date | 2015-06-30 17:31 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Hello, From your error I can see that max is finding csound.java and csound.class so that's not a problem. Your error messages point to csnd6.Csound so the problem is that Java isn't finding the csound api package. With is probably because it is not being installed in the right place. The path that you mentioned ( "C:\Program Files (x86)\Csound6\bin") is, I'm guessing, where csound is installing itself on Windows, python doesn't know this folder. So I think you need to copy csnd6.jar to where your jre/lib/ext folder. You can find out where that is by looking into your JAVA_HOME environment variable. But I don't really know much about windows so I don't know where that usually is. You could search for 'lib/ext' and see where that takes you. Thanks P On 30 June 2015 at 14:13, alfonso santimone <alfonso.santimone@gmail.com> wrote:
|
Date | 2015-06-30 17:35 |
From | Steven Yi |
Subject | Re: csound api java maxmsp |
Just to note, this has nothing to do with Python and is related to Java. On Tue, Jun 30, 2015 at 12:31 PM, peiman khosravi |
Date | 2015-06-30 17:37 |
From | Rory Walsh |
Subject | Re: csound api java maxmsp |
Attachments | None None |
You keep mentioning Python, do you not mean the Java path? On 30 Jun 2015 17:33, "peiman khosravi" <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-30 17:38 |
From | Rory Walsh |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Snap. On 30 Jun 2015 17:37, "Steven Yi" <stevenyi@gmail.com> wrote:
Just to note, this has nothing to do with Python and is related to Java. |
Date | 2015-06-30 17:39 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Ah yes I missed th epython bit! On 30 June 2015 at 17:35, Steven Yi <stevenyi@gmail.com> wrote: Just to note, this has nothing to do with Python and is related to Java. |
Date | 2015-06-30 17:40 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Yes I do! my brain has gone into over drive! On 30 June 2015 at 17:37, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2015-06-30 17:46 |
From | alfonso santimone |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Hi Peiman, i copied the csnd.jar to the JAVA_HOME dir but i have the very same error.On Tue, Jun 30, 2015 at 6:31 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-30 17:48 |
From | Steven Yi |
Subject | Re: csound api java maxmsp |
I'm still wondering why everything works with with the Java Csound API and Blue on these platforms and not Max. Maybe Max rewrites some environment variables when it loads or something. On Tue, Jun 30, 2015 at 12:40 PM, peiman khosravi |
Date | 2015-06-30 17:54 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
But if it's a question of not finding csnd6.jar, doesn't blue come packaged with this file?? On 30 June 2015 at 17:48, Steven Yi <stevenyi@gmail.com> wrote: I'm still wondering why everything works with with the Java Csound API |
Date | 2015-06-30 17:56 |
From | alfonso santimone |
Subject | Re: csound api java maxmsp |
Attachments | None None |
well i checked all my Java dir and copied a csound.jar in every folder. Now as soon as i try to load the csound java max patch MAX just crashes and suddenly quits...On Tue, Jun 30, 2015 at 6:48 PM, Steven Yi <stevenyi@gmail.com> wrote: I'm still wondering why everything works with with the Java Csound API |
Date | 2015-06-30 17:57 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
In my case, I can't run these in the terminal or in a NetBeans Projects either. But if it helps, max has a max.java.config.txt file to set some initial parameters for the JVM. Everything is commented out by default: ; Copyright (c) 2012 Cycling '74 ; ; ; ; Permission is hereby granted, free of charge, to any person obtaining a copy of this software ; ; and associated documentation files (the "Software"), to deal in the Software without restriction, ; ; including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, ; ; and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, ; ; subject to the following conditions: ; ; ; ; The above copyright notice and this permission notice shall be included in all copies ; ; or substantial portions of the Software. ; ; ; ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, ; ; INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. ; ; IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, ; ; WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE ; ; OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ; ; This is the config used by Max when instantiating the JVM ; ; Comments are enclosed within 2 semicolons ; ; The file format is relatively fragile so pay attention ; ; when editing this file !! ; ; some example options one may use ; ; add all jars in /Users/topher/java/lib to the system classpath i.e. immutable classpath ; ; max.system.jar.dir /Users/topher/java/lib; ; add /Users/topher/foo to the system classpath i.e. immutable classpath ; ; max.system.class.dir /Users/topher/foo ; ; these next 2 are typically what you would want to use if you want additional directories ; ; added to your classpath for max ; ; add /Users/topher/myclasses to the dynamic classpath of MXJClassLoader ; ; max.dynamic.class.dir /Users/topher/myclasses ; ; add all jars in /Users/topher/myjars to the dynamic classpath of MXJClassLoader ; ;max.dynamic.jar.dir /Users/topher/myjars ; ; specify some jvm options ; max.jvm.option -Xincgc max.jvm.option -Xms64m max.jvm.option -Xmx256m ; uncomment these options(i.e. remove surrounding semi colons ; ; to cause the JVM to be created ; ; in debug mode and listening for remote debugger connections ; ; on port 8074. This would enable you to interactively debug ; ; your mxj code using JDB or some other debugger which supports ; ; the JDI wire protocol ; ; max.jvm.option -Xdebug ; ; max.jvm.option -Xnoagent ; ; max.jvm.option -Xrunjdwp:transport=dt_socket\,address=8074\,server=y\,suspend=n ; ; max.jvm.option -XX:-UseSharedSpaces ; ; 1 = compatible mode (default in 64bit) ; ; 2 = hi performance mode (default in 32bit) ; ; hi performance mode for 64 bit is only supported with a JavaVM > 6u33 (where -XX:+UseCompressedOops is default) ; ; mxj.msp.mode 2 ; On 30 June 2015 at 17:54, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-30 17:59 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Yes this is 'normal'!! It's because you're opening max in 64-bit mode. That happens to me too. Can you start max in 32-bit mode for now? On 30 June 2015 at 17:56, alfonso santimone <alfonso.santimone@gmail.com> wrote:
|
Date | 2015-06-30 18:07 |
From | alfonso santimone |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Max7 32 bit now correctly loads csound but suddenly quits as soon as i start the DSP. On Tue, Jun 30, 2015 at 6:59 PM, peiman khosravi <peimankhosravi@gmail.com> wrote:
|
Date | 2015-06-30 18:08 |
From | Steven Yi |
Subject | Re: csound api java maxmsp |
Ah, that's correct, I do include the .jar with Blue, but not the native parts, which are loaded from whichever Csound installation is available. Perhaps that might be a solution for you to merge the csnd6.jar classes into your release. On Tue, Jun 30, 2015 at 12:54 PM, peiman khosravi |
Date | 2015-06-30 18:29 |
From | peiman khosravi |
Subject | Re: csound api java maxmsp |
Attachments | None None |
Ah yes that makes sense. How could I include it? The thing is that I tried putting the csnd6.jar file from the blue application package in my java extensions folder but I get the same error in the terminal. On 30 June 2015 at 18:08, Steven Yi <stevenyi@gmail.com> wrote: Ah, that's correct, I do include the .jar with Blue, but not the |