| It is completely appropriate to use csnd.jar for this kind of thing,
that is what it is for. I and others have used csnd.jar in just this
way. This may indeed be the best way to go.
Nevertheless, when writing an extension for an existing system, there
is the alternative of more directly calling the C or C++ Csound API
using a foreign function interface (FFI). In this approach, you simply
write Processing code, and whenever you need to call the Csound C or
C++ API, you just use the Java FFI (JFFI) library to make these calls
directly from Java.
I have not used JFFI, and I do not know how finished or reliable it
is, but my experience with foreign function interfaces in other
languages such as Python, C#, and Lisp is that they can in some cases
provide a better solution. In particular, you wouldn't need csnd.jar
at all.
Csnd.jar uses wrapper classes generated by SWIG using the Java Native
Interface (JNI) The difference between JNI and JFFI is that JNI calls
must be compiled before running the program, but foreign function
interface calls are constructed dynamically as the program runs.
If you have questions, ask away.
Regards,
Mike
On Tue, Aug 3, 2010 at 2:08 PM, Rory Walsh wrote:
> One of my students is working on a Csound lib for processing. It's
> part of a bigger project but it might prove useful. I assume it'll
> simply provide an easier way to interact with Csound from processing.
> OSC is a bit of a pain, no doubt about that.
>
> Rory.
>
>
>
> On 3 August 2010 18:14, Michael Gogins wrote:
>> The Windows installer can install csnd.jar.
>>
>> Regards,
>> Mike
>>
>> On Tue, Aug 3, 2010 at 12:58 PM, Jacob Joaquin wrote:
>>> On Tue, Aug 3, 2010 at 4:04 AM, Rory Walsh wrote:
>>>> I believe there is currently issues with linking to cnsd.jar on linux.
>>>> There was a bug report sent to cs-dev about it. I've just finished a
>>>> few pieces using Processing and Csound although I chose to use OSC
>>>> instead. I'm interested to see how your pieces turned out. Keep us
>>>> posted.
>>>
>>> Hopefully this linux issue only temporary. :)
>>>
>>> I would love to see Processing become a viable platform for creating
>>> musical apps and interactive pieces with Csound. The big issue so far
>>> is getting people to install Csound and copying csnd.jar to the right
>>> place. It's a fairly straight forward process on OS X, though I'm
>>> unsure about windows and linux. I think the API is a must since using
>>> OSC I think would turn off people because of the extra steps. The API,
>>> once set up, is fairly seamless.
>>>
>>> Beyond this, I'll probably develop a class or a set of Java classes to
>>> allow simplified interfacing between Processing and Csound so others
>>> can jump right in.
>>>
>>> I did put up video of one piece a couple of days ago at The Csound Blog:
>>> http://csoundblog.com/2010/08/csound-processing-experiment-i/
>>>
>>> Best,
>>> Jake
>>> --
>>> The Csound Blog - http://csound.noisepages.com/
>>> Slipmat - http://slipmat.noisepages.com/
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>>
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|