[PD] abstraction with variable number of inlets/outlets, bang-demuxx

Frank Barknecht fbar at footils.org
Mon Oct 8 18:07:35 CEST 2007


Hallo,
Mirko Maier hat gesagt: // Mirko Maier wrote:

> thank you, luke,
> that's the solution.
> 
> attached an abstraction that demuxes bangs.
> 
> nbang [number of bangs]
> 
> inlet: bangs

Is initbang in Pd main yet? 

If you don't want to rely on a non-standard version of Pd, I'd suggest
you rather use something like attached: Make a custom bng-GOP
abstraction like [nbng] that instead of sending a bang, sends a float
or whatever is its first argument. Then use [select ...] to distribute
these. [select] already has a variable number of outlets, and these
outlets survive a reload of the patch, which is handy. ;) 

Making a dynamic abstraction out of this is left as an exercise. 

Ciao
-- 
 Frank Barknecht                                     _ ______footils.org__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nbng-help.pd
Type: application/puredata
Size: 932 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20071008/8e964d4e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nbng.pd
Type: application/puredata
Size: 233 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20071008/8e964d4e/attachment-0001.bin>


More information about the Pd-list mailing list