[PD] route a bang

carmen ix at replic.net
Mon Jan 17 15:27:42 CET 2005


On Mon, Jan 17, 2005 at 03:19:43PM +0100, Thoralf Schulze wrote:
> Hi there, 
> 
> this is probably really noob.
> 
> I banged my head several times yesterday while trying
> to route a bang in pd - in other words: I wanted an
> object that takes bang at its left inlet and a simple
> 0/1 at its right. The bang should then be routed to
> either the left or the right outlet, according to the
> right inlet.
> The solution I finally came up with is to convert the
> bang to a number, use moses to do the actual routing
> and convert the numbers moses spits out to bangs
> again. Not quite an elegant solution, I guess - I
> appreciate any hints.

you defintiely want Zexy for stuff that should proably be core list/data manip operations (at least i think thats where demux is from)

#N canvas 0 0 454 304 12;
#X obj 222 55 demux;
#X obj 259 30 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 88 7 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1
;
#X obj 240 76 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 150 81 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X connect 0 0 4 0;
#X connect 0 1 3 0;
#X connect 1 0 0 1;
#X connect 2 0 0 0;



> 
> With kind regards,
> Thoralf.
> 
> 
> 	
> 
> 	
> 		
> ___________________________________________________________ 
> Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
> 
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list




More information about the Pd-list mailing list