On Sun, Mar 24, 2013 at 10:22:43PM +0100, Lorenzo Sutton wrote:
On 22/03/13 22:35, Jonathan Wilkes wrote:
From: Patrick Pagano bigswift@ufl.edu To: pd-list@iem.at Sent: Friday, March 22, 2013 3:57 PM Subject: [PD] vanilla replacement for polygate~ ?
Hello
I was wondering if anyone had an idea for a Vanilla replacement for
polygate~, which is listed as a switch between multiple signal inputs. I would like to make a patch for IPAD/MOBmuPLat that has this in the patch but i am wondering what a good vanilla substitute might be for it?
You can't. Or-- you can, but it will be a cheap imitation that either a) always has some maximum number of inlets, or b) uses nonlocal receive names to make up for the fact that you cannot dynamically instantiate inlets inside an abstraction because the [loadbang]
It would be relatively easy instead if one could dynamically set the name for [send~] (like for [receive~]) in vanilla.
You can set the name for [throw~], though. But for a [polygate~] variant one would use the settable [r~] anyway, I suppose. The idea would be:
[soundgen~ 1] | [s~ s-1]
[soundgen~ 2] | [s~ s-2]
[set s-1( | [set s-2( | / |/ [r~ s-1] | [dac~]
But it's still no polygate~: You get nocrossfades and of course no [inlet~]s.
I'd just just patch a [dekagate~] abstraction with 10 fixed inputs and proper fading for Pd vanilla. It's useful to have anyway and you only do it once.
Frank Barknecht _ ______footils.org__