Personal tools
You are here: Home community PdWikiWiki PdTutorialTutorialOne
Views

Edit history

Edit: -1 of 1
Time: 2006-12-20 12:40:27
Note: /pd/pd/portal_catalog/manage_catalogRebuild

changed:
-
!!Tutorial ­1­
Programming with pd consists of sending messages to objects
and obtaining results. Well, maybe this is not entirely
true but if one assumes that an output from an object could
be considered a message, then I'm not far from the truth.
However, one could use the message box in order to send an
explicit message.
%%%
%%%
Bang is a special message. It activates any (non­audio)
object and forces it to output some value (or, turn it on,
depending on the function of the object).
%%%
%%%
Here's a variation on the traditional "Hello, World"
program. The "[print":[print object simply prints out (to the
terminal window) the value(s) it recieves through its
inlet. In the case of the below program it prints the
messages. You have to click on the message box to send a
message to the "[print":[print object.
%%%
%%%
If you add an argument to "[print":[print, your argument will
precede the printed message. This way, if you have several
print objects in your patch you can differentiate between
them.
%%%
%%%
"http://iem.kug.ac.at/pdwiki/images/pdtutorial03.png":http://iem.kug.ac.at/pdwiki/images/pdtutorial03.png
%%%
%%%
Look at the patch "tut1.pd":http://iem.kug.ac.at/pdwiki/patches/pdtutorial/tut1.pd
----
'''Previous: '''PdTutorialOverview '''Next: '''PdTutorialTutorialTwo
----


Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser