[PD] random routing of 8 audio-streams to 8 outputs

hans w. koch hansw.koch at gmail.com
Tue Oct 5 00:37:57 CEST 2021


(to keep me from what i am supposed to do :-)

here is a solution for 3 channels, easily expandable - vanilla only.
it uses c_urn from PdParty_composerpack/lib/rj
which i attach as convenience

hth
hans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: randomize_loudspeakers.pd
Type: application/octet-stream
Size: 1167 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20211005/c8761476/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c_urn-help.pd
Type: application/octet-stream
Size: 5509 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20211005/c8761476/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c_urn.pd
Type: application/octet-stream
Size: 3230 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20211005/c8761476/attachment-0002.obj>
-------------- next part --------------



> Am 05.10.2021 um 00:08 schrieb Simon Iten <itensimon at gmail.com>:
> 
> 
> 
> 
> is there a somewhat elegant way to route 8 audio outputs (from readsf~) to 8 dac~ outputs randomly (on a bang for example)?
> 
> i.e. out1 to dac4, out2 to dac7 etc.
> 
> each output is allowed to one dac~ channel only.
> 
> mathematically speaking that would be 8! 8x7x6x5x4x3x2x1 (40320) possibilites, but i don?t see an easy way to program this in puredata.
> 
> some way of dynamic patching maybe? or a throw~ and catch~ approach? i get stuck on the random logic, since every ?step? that chooses a destinations changes the subsequent outputs that are still allowed to be chosen.
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list