Really helpful thank you! I'm going to look at it tomorrow morning<br><br><div class="gmail_quote">On Sun, Sep 30, 2012 at 11:14 PM, Joel Matthys <span dir="ltr"><<a href="mailto:jwmatthys@yahoo.com" target="_blank">jwmatthys@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div><tt>I'd like to point out that "count"
        is a variable name, not a built-in ChucK thing. In this example,
        "count" is just the name someone has chosen to keep track of a
        number that keeps increasing by 1.</tt><tt><br>
      </tt><tt><br>
      </tt><tt>You might want to look at the ChucK tutorials I made for
        our Intro to Electronic Music course here at the University of
        Cincinnati. There are 7 tutorials that start from a simple
        SinOsc and introduce variables, functions, STK instruments, and
        sporking. They were intended as notes to accompany the class but
        they might be useful.</tt><tt><br>
      </tt><tt><br>
      </tt><tt>I uploaded them here:</tt><tt><br>
      </tt><tt><br>
      </tt><tt><a href="https://github.com/jwmatthys/chuck-tutorials" target="_blank">https://github.com/jwmatthys/chuck-tutorials</a></tt><span class="HOEnZb"><font color="#888888"><tt><br>
      </tt><tt><br>
      </tt><tt>Joel</tt></font></span><div><div class="h5"><tt><br>
      </tt><tt><br>
      </tt><tt><br>
      </tt><tt>On 09/30/2012 04:08 PM, Alberto Alassio wrote:</tt><tt><br>
      </tt></div></div></div><div><div class="h5">
    <blockquote type="cite"><tt>Ok, to me it wasn't so easy to understand count
        < steps. so it counts till the steps end, right? And in this
        patch count refers to steps but it is also the one who makes the
        freq increases by inc, I mean, for each count we have, then the
        freq increases.</tt>
      <div><tt>
          Is it correct?</tt></div>
      <div><tt>Thank you Kas, it always helps!</tt><tt><br>
        </tt><tt><br>
        </tt>
        <div class="gmail_quote"><tt>On Sun, Sep 30, 2012 at 9:59 PM,
            Kassen </tt><tt><span dir="ltr"><<a href="mailto:signal.automatique@gmail.com" target="_blank">signal.automatique@gmail.com</a>></span></tt><tt>
            wrote:</tt><tt><br>
          </tt>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div><tt>On Sun, Sep 30, 2012 at 09:41:13PM
                +0200, Alberto Alassio wrote:</tt><tt><br>
              </tt><tt>
                > Me again.</tt><tt><br>
              </tt><tt>
                > Looking at the examples, now I'm messing with
                Chirp.</tt><tt><br>
              </tt><tt>
                > I cannot understand what Tinc and Inc are. I think
                that tinc is something</tt><tt><br>
              </tt><tt>
                > like the time of every step from a freq to another
                one, is it right?</tt><tt><br>
              </tt><tt>
                > And Inc is how much freq increases according to
                tinc's time, is it correct?</tt><tt><br>
              </tt><tt>
                ></tt><tt><br>
              </tt>
            </div>
            <tt>That seems to be exactly right, yes.</tt><tt><br>
            </tt>
            <div><tt><br>
              </tt><tt>
                > But what is -count-? A counter of what? And  what "
                while ( count < steps )</tt><tt><br>
              </tt><tt>
                > " and " 1+ => count " mean?</tt><tt><br>
              </tt>
              <tt><br>
              </tt>
            </div>
            <tt>"count" refers to the current step. It starts out as
              zero and</tt><tt><br>
            </tt><tt>
              increases until the desired number of steps has been
              reached.</tt><tt><br>
            </tt><tt>
              "1 +=> count" adds one to the "count" and also stores
              the result back</tt><tt><br>
            </tt><tt>
              in "count".</tt><tt><br>
            </tt>
            <tt><br>
            </tt><tt>
              It is not so clear to me why a float is used here for
              "count",</tt><tt><br>
            </tt><tt>
              instead of a integer, which would make more sense and
              enable us to</tt><tt><br>
            </tt><tt>
              simply increment by using;</tt><tt><br>
            </tt>
            <tt><br>
            </tt><tt>
              count++;</tt><tt><br>
            </tt>
            <tt><br>
            </tt><tt>
              Better yet would be a "for" loop. Maybe this example is
              deliberately</tt><tt><br>
            </tt><tt>
              doing unusual stuff to encourage people like you to spend
              some time</tt><tt><br>
            </tt><tt>
              picking it apart and figuring it out? It might also be
              very old and</tt><tt><br>
            </tt><tt>
              pre-dating something like comparing floats to integers. To
              me it looks</tt><tt><br>
            </tt><tt>
              like Ge's style which would make sense in both cases.</tt><tt><br>
            </tt>
            <tt><br>
            </tt><tt>
              Hope that helps,</tt><tt><br>
            </tt>
            <div>
              <div><tt>Kas.</tt><tt><br>
                </tt><tt>
                  _______________________________________________</tt><tt><br>
                </tt><tt>
                  chuck-users mailing list</tt><tt><br>
                </tt>
                <tt><a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a></tt><tt><br>
                </tt>
                <tt><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a></tt><tt><br>
                </tt>
              </div>
            </div>
          </blockquote>
        </div>
        <tt><br>
        </tt></div>
      <tt><br>
      </tt>
      <fieldset></fieldset>
      <tt><br>
      </tt>
      <pre>_______________________________________________
chuck-users mailing list
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.princeton.edu</a>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
</pre>
    </blockquote>
    <tt><br>
    </tt>
  </div></div></div>

<br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br>