Csound Csound-dev Csound-tekno Search About

[Csnd] Jack ports with spaces

Date2009-03-15 22:26
FromChuckk Hubbard
Subject[Csnd] Jack ports with spaces
Hi.
Ardour presents "Trackname/in " as a destination port for jackd.
Sorry if this has already been addressed, but does anyone have a way
to connect from Csound?  Double quotes are kept and passed as part of
the destination port, as are backslashes.
Thanks.
-Chuckk

-- 
http://www.badmuthahubbard.com

Date2009-03-16 01:25
FromHector Centeno
Subject[Csnd] Re: Jack ports with spaces
Hi Chuckk,

I've always had some problems with Csound connecting using jack,
specially because I have a firewire device and FFADO uses names for
the ports that also make it impossible to connect. I've solved this
very successfully using the Patchbay function in QJackctl. This part
of QJackctl has been a mistery for me (and it seems that for others
too) but lately it has been fixed and documented:
http://www.rncbc.org/drupal/node/76 You can save presets and it will
autoconnect any predefined connections automatically, then you don't
even have to ask Csound to connect.

Cheers,

Hector


On Sun, Mar 15, 2009 at 6:26 PM, Chuckk Hubbard
 wrote:
> Hi.
> Ardour presents "Trackname/in " as a destination port for jackd.
> Sorry if this has already been addressed, but does anyone have a way
> to connect from Csound?  Double quotes are kept and passed as part of
> the destination port, as are backslashes.
> Thanks.
> -Chuckk
>
> --
> http://www.badmuthahubbard.com
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Date2009-03-16 11:55
FromChuckk Hubbard
Subject[Csnd] Re: Re: Jack ports with spaces
Hi Hector.

Interesting stuff, thanks a lot for pointing me to it.
If I understand correctly, I can then leave qjackctl sitting waiting,
and when Csound starts it will be connected, without being told?  In
that case, what does one tell Csound?  Just "-+rtaudio=jack -odac"?

-Chuckk

On Mon, Mar 16, 2009 at 3:25 AM, Hector Centeno  wrote:
> Hi Chuckk,
>
> I've always had some problems with Csound connecting using jack,
> specially because I have a firewire device and FFADO uses names for
> the ports that also make it impossible to connect. I've solved this
> very successfully using the Patchbay function in QJackctl. This part
> of QJackctl has been a mistery for me (and it seems that for others
> too) but lately it has been fixed and documented:
> http://www.rncbc.org/drupal/node/76 You can save presets and it will
> autoconnect any predefined connections automatically, then you don't
> even have to ask Csound to connect.
>
> Cheers,
>
> Hector
>
>
> On Sun, Mar 15, 2009 at 6:26 PM, Chuckk Hubbard
>  wrote:
>> Hi.
>> Ardour presents "Trackname/in " as a destination port for jackd.
>> Sorry if this has already been addressed, but does anyone have a way
>> to connect from Csound?  Double quotes are kept and passed as part of
>> the destination port, as are backslashes.
>> Thanks.
>> -Chuckk
>>
>> --
>> http://www.badmuthahubbard.com
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



-- 
http://www.badmuthahubbard.com


Date2009-03-16 15:20
FromHector Centeno
Subject[Csnd] Re: Re: Re: Jack ports with spaces
Hi Chukk,

You are right. It will automatically reconnect each time and yes, you
only have to use those flags in Csound. As long as a preset patchbay
is active it will automatically reconnect the ports when they show up
in jack, in this way you can stop and resart Csound (or any other jack
application that you included in the patchbay) and it will reconnect.
It works with midi too.

Cheers,

Hector

On 3/16/09, Chuckk Hubbard  wrote:
> Hi Hector.
>
> Interesting stuff, thanks a lot for pointing me to it.
> If I understand correctly, I can then leave qjackctl sitting waiting,
> and when Csound starts it will be connected, without being told?  In
> that case, what does one tell Csound?  Just "-+rtaudio=jack -odac"?
>
> -Chuckk
>
> On Mon, Mar 16, 2009 at 3:25 AM, Hector Centeno  wrote:
>> Hi Chuckk,
>>
>> I've always had some problems with Csound connecting using jack,
>> specially because I have a firewire device and FFADO uses names for
>> the ports that also make it impossible to connect. I've solved this
>> very successfully using the Patchbay function in QJackctl. This part
>> of QJackctl has been a mistery for me (and it seems that for others
>> too) but lately it has been fixed and documented:
>> http://www.rncbc.org/drupal/node/76 You can save presets and it will
>> autoconnect any predefined connections automatically, then you don't
>> even have to ask Csound to connect.
>>
>> Cheers,
>>
>> Hector
>>
>>
>> On Sun, Mar 15, 2009 at 6:26 PM, Chuckk Hubbard
>>  wrote:
>>> Hi.
>>> Ardour presents "Trackname/in " as a destination port for jackd.
>>> Sorry if this has already been addressed, but does anyone have a way
>>> to connect from Csound?  Double quotes are kept and passed as part of
>>> the destination port, as are backslashes.
>>> Thanks.
>>> -Chuckk
>>>
>>> --
>>> http://www.badmuthahubbard.com
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>
>
> --
> http://www.badmuthahubbard.com
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"

Date2009-03-16 15:38
FromDave Phillips
Subject[Csnd] Re: Re: Re: Jack ports with spaces
Chuckk Hubbard wrote:
> If I understand correctly, I can then leave qjackctl sitting waiting,
> and when Csound starts it will be connected, without being told?  In
> that case, what does one tell Csound?  Just "-+rtaudio=jack -odac"?
>   
>   

Or you can skip creating a patchbay configuration and autoconnect so :

    +rtaudio=jack -odac:alsa_pcm:playback_ -iadc:alsa_pcm:capture_

Newer versions of JACK may require -odac:system:playback_ and 
-iadc:system:capture_ instead the alsa_pcm nomenclature.

For the record, I have nothing against QJackCtl patchbay configurations. :)

Best,

dp


Date2009-03-17 00:28
FromChuckk Hubbard
Subject[Csnd] Re: Re: Re: Re: Jack ports with spaces
Hi Dave.
My problem is that Ardour offers up input ports like "ardour:Audio/in
" with a space.  No combination of quotes or backslashes gets Csound
to properly send a port name with a space to jackd.  System playback
works, but Ardour no.
-Chuckk

On Mon, Mar 16, 2009 at 5:38 PM, Dave Phillips  wrote:
> Chuckk Hubbard wrote:
>>
>> If I understand correctly, I can then leave qjackctl sitting waiting,
>> and when Csound starts it will be connected, without being told?  In
>> that case, what does one tell Csound?  Just "-+rtaudio=jack -odac"?
>>
>
> Or you can skip creating a patchbay configuration and autoconnect so :
>
>   +rtaudio=jack -odac:alsa_pcm:playback_ -iadc:alsa_pcm:capture_
>
> Newer versions of JACK may require -odac:system:playback_ and
> -iadc:system:capture_ instead the alsa_pcm nomenclature.
>
> For the record, I have nothing against QJackCtl patchbay configurations. :)
>
> Best,
>
> dp
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 
http://www.badmuthahubbard.com


Date2009-03-17 09:53
FromDave Phillips
Subject[Csnd] Re: Re: Re: Re: Re: Jack ports with spaces
Chuckk Hubbard wrote:
> My problem is that Ardour offers up input ports like "ardour:Audio/in
> " with a space.  No combination of quotes or backslashes gets Csound
> to properly send a port name with a space to jackd.  System playback
> works, but Ardour no.
>   

Hi Chuckk,

Ah, sorry for the noise. Have you contacted Paul Davis and the Ardour 
devels about it ? Perhaps they can accommodate your needs.

Best,

dp


Date2009-03-17 12:27
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Re: Re: Jack ports with spaces
Paul will say we should fix csound... =) The problem seems parsing of
the jack options to handle quotes and spaces... I would think jack
accepts spaces in the port names, so csound should do it also.

Cheers,
Andrés

On Tue, Mar 17, 2009 at 4:53 AM, Dave Phillips  wrote:
> Chuckk Hubbard wrote:
>>
>> My problem is that Ardour offers up input ports like "ardour:Audio/in
>> " with a space.  No combination of quotes or backslashes gets Csound
>> to properly send a port name with a space to jackd.  System playback
>> works, but Ardour no.
>>
>
> Hi Chuckk,
>
> Ah, sorry for the noise. Have you contacted Paul Davis and the Ardour devels
> about it ? Perhaps they can accommodate your needs.
>
> Best,
>
> dp
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 


Andrés


Date2009-03-17 23:40
FromChuckk Hubbard
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Jack ports with spaces
Seems that handling double quotes would have to come first, in order
for the command line to recognize that there's a space there at all.
-Chuckk


On Tue, Mar 17, 2009 at 2:27 PM, Andres Cabrera  wrote:
> Paul will say we should fix csound... =) The problem seems parsing of
> the jack options to handle quotes and spaces... I would think jack
> accepts spaces in the port names, so csound should do it also.
>
> Cheers,
> Andrés
>
> On Tue, Mar 17, 2009 at 4:53 AM, Dave Phillips  wrote:
>> Chuckk Hubbard wrote:
>>>
>>> My problem is that Ardour offers up input ports like "ardour:Audio/in
>>> " with a space.  No combination of quotes or backslashes gets Csound
>>> to properly send a port name with a space to jackd.  System playback
>>> works, but Ardour no.
>>>
>>
>> Hi Chuckk,
>>
>> Ah, sorry for the noise. Have you contacted Paul Davis and the Ardour devels
>> about it ? Perhaps they can accommodate your needs.
>>
>> Best,
>>
>> dp
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> --
>
>
> Andrés
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



-- 
http://www.badmuthahubbard.com