<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><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 class="moz-txt-link-freetext" href="https://github.com/jwmatthys/chuck-tutorials">https://github.com/jwmatthys/chuck-tutorials</a></tt><tt><br>
</tt><tt><br>
</tt><tt>Joel</tt><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>
<blockquote
cite="mid:CAHLGKco==-kPtum5VLZnjrO6qLKDyDj-ghs6UKnr5xGSPLb6Mg@mail.gmail.com"
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
moz-do-not-send="true"
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 class="im"><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 class="im"><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 class="HOEnZb">
<div class="h5"><tt>Kas.</tt><tt><br>
</tt><tt>
_______________________________________________</tt><tt><br>
</tt><tt>
chuck-users mailing list</tt><tt><br>
</tt>
<tt><a moz-do-not-send="true"
href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a></tt><tt><br>
</tt>
<tt><a moz-do-not-send="true"
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 class="mimeAttachmentHeader"></fieldset>
<tt><br>
</tt>
<pre wrap="">_______________________________________________
chuck-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>
<a class="moz-txt-link-freetext" href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a>
</pre>
</blockquote>
<tt><br>
</tt>
</body>
</html>