[chuck-users] cast dur to time?

Graham Coleman ravelite at gmail.com
Thu Jan 10 14:29:30 EST 2008


Glad to help, Rich.

Indeed, the _p - (now % p)_ pattern comes up so much, it could even
have its own operator...

now %- dur => now; //sync to period

and for ints:

beatnum %- 4 => int notesel; //reverse sawtooth pattern, 4, 3, 2, 1, 4, 3, 2, 1

thought it might be nice if it subtracted from the highest value, ie:

3 - (beatnum % 4) => now; //zero-based reverse sawtooth, 3, 2, 1, 0, 3, 2, 1, 0

Graham

On Jan 10, 2008 6:16 PM, Rich Caloggero <rjc at mit.edu> wrote:
> Thanx Graham; this makes sense, and is chuckin cool!  Gees, even I can
> understand it! Woohoo!
> -- Rich


More information about the chuck-users mailing list