[chuck-users] Begin the beguine

Kassen signal.automatique at gmail.com
Sun Sep 30 15:59:20 EDT 2012


On Sun, Sep 30, 2012 at 09:41:13PM +0200, Alberto Alassio wrote:
> Me again.
> Looking at the examples, now I'm messing with Chirp.
> I cannot understand what Tinc and Inc are. I think that tinc is something
> like the time of every step from a freq to another one, is it right?
> And Inc is how much freq increases according to tinc's time, is it correct?
> 
That seems to be exactly right, yes. 

> But what is -count-? A counter of what? And  what " while ( count < steps )
> " and " 1+ => count " mean?

"count" refers to the current step. It starts out as zero and
increases until the desired number of steps has been reached.
"1 +=> count" adds one to the "count" and also stores the result back
in "count".

It is not so clear to me why a float is used here for "count",
instead of a integer, which would make more sense and enable us to
simply increment by using;

count++;

Better yet would be a "for" loop. Maybe this example is deliberately
doing unusual stuff to encourage people like you to spend some time
picking it apart and figuring it out? It might also be very old and
pre-dating something like comparing floats to integers. To me it looks
like Ge's style which would make sense in both cases.

Hope that helps,
Kas.


More information about the chuck-users mailing list