Csound Csound-dev Csound-tekno Search About

Sending values between csound instances

Date2017-06-23 20:18
FromAnders Genell
SubjectSending values between csound instances
Dear list,

Does anybody know if there is a way to send control rate values, and perhaps even audio rate values, between instances of Csound running on the same computer?

There is OSC, of course, and I might go with that, but I was curious whether there are other ways such as the chn opcodes. I suppose it should be possible if I use the API and start instances from a host program, but I'm not much of a programmer... Maybe I could manage it using python. I really should try cdcsound...

Regards,
Anders
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-23 20:44
FromVictor Lazzarini
SubjectRe: Sending values between csound instances
Through the API there are ways to do it. Outside the API, you can also use the UDP opcodes.  

You need to decide if the instances will share memory or if they will run as 
separate processes. If they share memory,
you can use GetControlChannel() on one instance and SetControlChannel() on the
other.


Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 23 Jun 2017, at 20:19, Anders Genell  wrote:
> 
> Dear list,
> 
> Does anybody know if there is a way to send control rate values, and perhaps even audio rate values, between instances of Csound running on the same computer?
> 
> There is OSC, of course, and I might go with that, but I was curious whether there are other ways such as the chn opcodes. I suppose it should be possible if I use the API and start instances from a host program, but I'm not much of a programmer... Maybe I could manage it using python. I really should try cdcsound...
> 
> Regards,
> Anders
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-23 21:35
FromAnders Genell
SubjectRe: Sending values between csound instances
Thanks, I'll se if I can get the shared memory version going. That should be possible also using the python api wrapper and not just c/c++, right?

The case I'm trying to solve is that I want multiple hardware MIDI controllers, and it seems each instance of Csound is limited to one controller. I suppose this is not all that strange because there would otherwise be a lot of midi message overlaps etc. One would wish there could be a way to include some controller ID in midi messages...

Regards,
Anders

> 23 juni 2017 kl. 21:44 skrev Victor Lazzarini :
> 
> Through the API there are ways to do it. Outside the API, you can also use the UDP opcodes.  
> 
> You need to decide if the instances will share memory or if they will run as 
> separate processes. If they share memory,
> you can use GetControlChannel() on one instance and SetControlChannel() on the
> other.
> 
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
>> On 23 Jun 2017, at 20:19, Anders Genell  wrote:
>> 
>> Dear list,
>> 
>> Does anybody know if there is a way to send control rate values, and perhaps even audio rate values, between instances of Csound running on the same computer?
>> 
>> There is OSC, of course, and I might go with that, but I was curious whether there are other ways such as the chn opcodes. I suppose it should be possible if I use the API and start instances from a host program, but I'm not much of a programmer... Maybe I could manage it using python. I really should try cdcsound...
>> 
>> Regards,
>> Anders
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-23 21:44
FromVictor Lazzarini
SubjectRe: Sending values between csound instances
Python should do just fine. Use François’ ctcsound which is much better.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 23 Jun 2017, at 21:35, Anders Genell  wrote:
> 
> Thanks, I'll se if I can get the shared memory version going. That should be possible also using the python api wrapper and not just c/c++, right?
> 
> The case I'm trying to solve is that I want multiple hardware MIDI controllers, and it seems each instance of Csound is limited to one controller. I suppose this is not all that strange because there would otherwise be a lot of midi message overlaps etc. One would wish there could be a way to include some controller ID in midi messages...
> 
> Regards,
> Anders
> 
>> 23 juni 2017 kl. 21:44 skrev Victor Lazzarini :
>> 
>> Through the API there are ways to do it. Outside the API, you can also use the UDP opcodes.  
>> 
>> You need to decide if the instances will share memory or if they will run as 
>> separate processes. If they share memory,
>> you can use GetControlChannel() on one instance and SetControlChannel() on the
>> other.
>> 
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 23 Jun 2017, at 20:19, Anders Genell  wrote:
>>> 
>>> Dear list,
>>> 
>>> Does anybody know if there is a way to send control rate values, and perhaps even audio rate values, between instances of Csound running on the same computer?
>>> 
>>> There is OSC, of course, and I might go with that, but I was curious whether there are other ways such as the chn opcodes. I suppose it should be possible if I use the API and start instances from a host program, but I'm not much of a programmer... Maybe I could manage it using python. I really should try cdcsound...
>>> 
>>> Regards,
>>> Anders
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here