Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound5 Java Bindings report

Date2005-03-03 17:31
FromJean-Pierre Lemoine
Subject[Cs-dev] Csound5 Java Bindings report
I have started to experiment with the Csound5 java bindings (thanks for 
it!), and here are my findings and request

1) It appears that the Java classes are all in default package. This is 
ok for test and experimentation but not for large project. All my 
classes are in package, thus it is not possible to have access to the 
Csound Java Classes from my own classes. Is it possible to put all the 
classes inside a package?

1) The bindings are delivered as a set of java class files. I would have 
prefer to have java sources and a jar file. Please, could you provide 
this? Yes I have msys, python but don't want to struggle with scons :)

My first experiment with the Csound API was rather successful. Here is 
the very simple code:
        CppSound c = new CppSound();
        c.load( "c:/csound/bin/Csound5/examples/trapped.csd");
        //c.load( 
"C:/hplank/HPKComposerAV/compositions/horribilis/tube10rt.csd" );
        boolean b = c.exportForPerformance();
        java.lang.System.out.println( b );
        int rc = c.perform();
        java.lang.System.out.println( "perform:" + rc );
 
I expect to use this bindings for real time audio output, calling 
perform() from inside a Java OpenGL Viewer (completely based on GLSL 
shaders). So far, the settings that are advised seems to work: -b441 
-B441 -m4 -d -o devaudio, with sr = 44100.0, kr = 100 and ksmps = 441. 
Any other settings have crashed Windows XP (yes blue screen and reboot). 
I have also to experiment with longer pieces as I have a crash after 
several minutes of real time audio output of trapped.csd.

I need also some clarification about the documentation. What is the 
meaning of  "If RTAUDIO is enabled, the name devaudio
will send to the host audio output device" (page 23 of the PDF)? Is 
there a specific flag for RTAUDIO?

Thanks for your help and your works on Csound5,
jean-pierre






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net