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

Tas Pas tprotopgr at yahoo.gr
Wed Jul 19 11:30:55 CEST 2006


Thanks for your immediate answer.
The problem which occurs with [select] is that, when a match value reaches [select's] inlet, [select] sends a [bang] to the corresponding outlet and not the value it received and triggered the [bang].

What I want to do is to route the messages.
If I send values in a specific range, I want them to go somewhere.
If I send values beyond tha range, I want them to go somewhere else.
In procedural programming languages it can be done with "if-then-else" and a variable.
In pd the variable is not passed by the [select] and istead a [bang] message is sent. 
Is there a way to use [select] and have the value in a outlet or something?

Thank you, and forgive me if I am writing in a confusing way.

Regards,

Terumi

Kevin McCoy <km.takewithyou at gmail.com> έγραψε: There are several ways to do it, and it will be a little different
than the programming you might be used to.

First you can use the [select] object as a conditional - check the
help file that comes with pd on that.

Another more complicated way is to use [expr] and its related objects,
which I believe comes standard with Pd?  I may be wrong on that
because I have it pre-bundled.  Anyway, probably better to use
[select] first.

The control examples, if you go through them and work with each, will
help you understand how to do that and a lot more - they helped me a
lot (I just started Pd a couple months ago).

Kevin



 		
---------------------------------
 Χρησιμοποιείτε Yahoo!
 Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων 
 http://login.yahoo.com/config/mail?.intl=gr 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060719/d2b711f4/attachment.htm>


More information about the Pd-list mailing list