[PD] [select 12 12] triggers only one bang

Claude Heiland-Allen claude at mathr.co.uk
Thu Jan 17 18:28:19 CET 2019


Hi Peter,

On 17/01/2019 17:04, Peter P. wrote:
> Hi,
>
> this is not terribly important, but it seems that
> 	[select 12 12]
> triggers only its leftmost outlet when it receives a 12 at its inlet. Is
> this intentional?
Changing this behaviour in the C is not totally trivial, as you would 
need to keep track of matches, to not send to the last "reject" outlet 
at the end.  As it is now, it just "return"s after sending to a matching 
outlet.

https://github.com/pure-data/pure-data/blob/7c27aa0ad505bb4802eee3fc40886836c814353f/src/x_connective.c#L398

I suggest

  |
[t a a]
  |   |
  |  [select 12 12]
  |              |
[t a a]         rejected
  |   |
  |  [select 12]
  |   |
  |   12 b
  |
[select 12]
  |
12 a

assuming your 12 is just a placeholder for your real problem (maybe $arg 
stuff?)


Claude
-- 
https://mathr.co.uk






More information about the Pd-list mailing list