# Hi,<br># The framework of PD is somewhat different than Java and Phyton. Java is a language in which the code is first compiled then run. While running, the objects are created in memory according to code.<br># In PD, you are creating the objects in realtime. If you create (put) an object its place in memory is allocated automatically (and deallocated when you deleted it) It is something like a debug mode.
<br># To have something similar to double or float in Java there is an [float] object, [f] is its abbreviation.<br># [f] is similar to &quot;float x;&quot; and [f 10] is equivalent to &quot;float x = 10;&quot;<br># In Java the code is run sequentially, one line after another. But in PD there is no such sequantial listing. You have to connect events in an cause&amp;effect manner.
<br># |bang( is a message which activates the primary purposes of the objects. For example [f] holds a number. If you send a |bang( to its inlet it outputs what it keeps, and this output can be used to trigger another objects. You can feed the inlet other things than bang. (You can look at their help to learn which inlet is what for)
<br># so, the idiom &quot;x=x+1&quot; can be done in PD way: Create an [f 0] object. This allocate a slot for a number in memory and initializes it with 0. Create a |bang( message and connect to [f]&#39;s left inlet. Create an [+ 1] object and connect the outlet of the [f] to the left inlet of [+]. When you click on bang, it sends a bang message to [f], [f] outputs the value in it and this value goes to [+ 1], plus is triggered by the incoming number and outputs the incremented number. So, this way we finished the &quot;x+1&quot; part. let assign this value to x. This is done by connecting the output of [+ 1] to the right inlet of [f]. Right inlet of a float assigns the incoming number to the slot in the memory like the left inlet. But unlike it, f does not output if right inlet is used (which is called &quot;cold inlet&quot;) if you use left inlet (don&#39;t use it!) as you can see, the patch will fall in a loop.
<br># This is some kind of explanation in the perspective of traditional programming.<br># Good luck!<br>-uğur-<br><br><br><br><div class="gmail_quote">On Nov 8, 2007 11:12 PM, Timothy Sikes &lt;<a href="mailto:trs164@hotmail.com">
trs164@hotmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>Hi<br><br>First of all, this is my first email to this email group, so, I want to make sure that asking &#39;newb&#39; questions is okay, and that this would be the place to&nbsp;email those &#39;newb&#39; questions.<br>
<br>I&#39;ll tell a little bit about some things that might be helpful in answering my questions.&nbsp; I started Python when I was in 7th or 8th grade, and loved it.&nbsp; I started working through one of the O&#39;Reilly&#39;s Python books.&nbsp; Now, I am taking&nbsp;a Java class, and loving it too ( have a 103%).&nbsp;&nbsp; So when I got PD, I thought I would just have to learn how to apply these things I&#39;ve learned in Python and Java to PD.&nbsp; I went through the documentation, and just got confused.&nbsp; Next, I tried to find some basic tutorials on the web with no avail.&nbsp; Finally, I looked at the examples that came with the installation. These were by far the best introduction to PD, and I understood them... Until I got to the flow of control ones.&nbsp; It&#39;s the one where the counter counts up to ten, then stops, with another that is a counter that goes up by one, and you clear it by pressing the -1 button. 
<br><br>Remember, I program,&nbsp; so if it could be explained as if I were programming, that would probably help me.&nbsp; I don&#39;t understand what the term &#39;bang&#39; refers to in these examples, along with why certain &#39;inlets&#39; connect to certain &#39;outlets&#39;,&nbsp; or the flow of control in the programs, or where the &#39;count&#39; variable is and how to manipulate it.&nbsp; I feel that once I understand these things, I&#39;ll be able to have loads of fun with PD.&nbsp; So, Please help, and:
<br><br>Thank you.<br><hr>Climb to the top of the charts!&nbsp; Play Star Shuffle:&nbsp; the word scramble challenge with star power. <a href="http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct" target="_blank">
Play Now!</a></div>
<br>_______________________________________________<br><a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">
http://lists.puredata.info/listinfo/pd-list</a><br><br></blockquote></div><br>