[PD] object that routes bangs to different outputs like a counter?

IOhannes m zmölnig zmoelnig at iem.at
Mon Oct 16 13:58:06 CEST 2017

On 10/16/2017 01:49 PM, enrike wrote:
> I could have created a simple abstraction encapsulating the structure
> but since the number of outputs must be dynamically created on load I am
> not sure about how to do it. I also thought it might be already
> something out there, I did not want to reinvent the wheel

the dynamic part can be solved easily, by splitting the functionality
into two parts: a counter (for which you can provide an pre-made
abstraction to your students), and a dispatcher (which is a simple
[route 0 1 2 3 ...])

so your students would need to create two objects instead of one (with a
single connection between the two).

[counter 5]
[route 0 1 2 3 4]
|   |   |   |   |

this should be doable (from a pedagogical pov).

this also has the added bonus that you can easily exchange the simple
counting with higher maths, like [random 5].


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20171016/480624f7/attachment.sig>

More information about the Pd-list mailing list