routing in pd (was: [PD] pd if-then-else)

Frank Barknecht fbar at footils.org
Wed Jul 19 14:58:33 CEST 2006


Hallo,
Tas Pas hat gesagt: // Tas Pas wrote:

> But what if I want to make a toggle switch whitch routes things?
> If the swith is open, things will go left,
> If the switch is closed, things will go right ...

That's easy using [list prepend] and [route]

  "anything"
  |               "0 or 1" (or 2, 3, 4...)
  [list prepend 0]
  |
  [route 0 1 (2 3 4 ...)]
  |  | ... 

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__




More information about the Pd-list mailing list