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.<div>
Is it correct?</div><div>Thank you Kas, it always helps!<br><br><div class="gmail_quote">On Sun, Sep 30, 2012 at 9:59 PM, Kassen <span dir="ltr"><<a href="mailto:signal.automatique@gmail.com" target="_blank">signal.automatique@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sun, Sep 30, 2012 at 09:41:13PM +0200, Alberto Alassio wrote:<br>
> Me again.<br>
> Looking at the examples, now I'm messing with Chirp.<br>
> I cannot understand what Tinc and Inc are. I think that tinc is something<br>
> like the time of every step from a freq to another one, is it right?<br>
> And Inc is how much freq increases according to tinc's time, is it correct?<br>
><br>
</div>That seems to be exactly right, yes.<br>
<div class="im"><br>
> But what is -count-? A counter of what? And  what " while ( count < steps )<br>
> " and " 1+ => count " mean?<br>
<br>
</div>"count" refers to the current step. It starts out as zero and<br>
increases until the desired number of steps has been reached.<br>
"1 +=> count" adds one to the "count" and also stores the result back<br>
in "count".<br>
<br>
It is not so clear to me why a float is used here for "count",<br>
instead of a integer, which would make more sense and enable us to<br>
simply increment by using;<br>
<br>
count++;<br>
<br>
Better yet would be a "for" loop. Maybe this example is deliberately<br>
doing unusual stuff to encourage people like you to spend some time<br>
picking it apart and figuring it out? It might also be very old and<br>
pre-dating something like comparing floats to integers. To me it looks<br>
like Ge's style which would make sense in both cases.<br>
<br>
Hope that helps,<br>
<div class="HOEnZb"><div class="h5">Kas.<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>
</div></div></blockquote></div><br></div>