[PD] dynamically settable many-to-many cordless audio routing

Jamie Bullock jamie at postlude.co.uk
Mon Oct 12 21:44:21 CEST 2009


On 9 Oct 2009, at 16:03, IOhannes m zmölnig wrote:

> Jamie Bullock wrote:
>>
>> Hi all,
>>
>> Has anyone implemented this with externals, or a Pd dynamic  
>> patching hack?
>>
>> s~/r~ are one-to-many settable on the receive side.
>> throw~/catch~ are many-to-one settable on the send side.
>>
>> What about a sendbus~/receivebus~ many-to-many settable on both  
>> sides?
>>
>
>
> for buses i usually use a [catchsend~] abstraction, that looks like:
>
> [catch~ $1]
> |
> [send $1]
>
> this has to be created once for every bus you use. you could use a
> singleton approach to automatically create it in your
> [sendbus~]/[receivebus~] abstractions.
>
>

I just had a little play around with this, and it works fine for a  
bus, but I guess I'm looking for something that behaves *exactly* like  
patching with patch chords, which isn't quite as simple as a bus  
architecture.

For example, the above solution works for 1-n, n-1 and n-n, but  
doesn't provide exclusive 1-1. I.e. if I have an existing bus with 1- 
n, I can't connect output 1 of n to input 2 of n without the signal  
going to all of the other outputs on the bus as well.

To solve my problem I could just forget s~/r~/throw~/catch~ and make  
connections, through scripting with 'connect' messages, but then I  
can't easily script 'disconnect'.

Alternatively I could use dyn~, which does everything I need, but  
relies on a bunch of non-public headers and APis which could change at  
any time.

Any other thoughts?

Jamie











More information about the Pd-list mailing list