Hi,

I think one solution to that could be the following (see attachments).
It is implemented in Pd Vanilla and is basically 2 abstractions you can change the name of.

Screen Shot 2020-03-25 at 20.37.26.png


Cheers,
Mario