[chuck-users] Is the sample rate available in ChucK code?

Forrest Cahoon forrest.cahoon at gmail.com
Wed Dec 5 00:36:16 EST 2018


I've found that I can compute the sample rate as a float inside of chuck
code by using 1::second/1::samp but I'm wondering if it might be available
in some other way, like a global variable.

I was thinking, if something doesn't already exist, maybe it could be a
variable belonging to the Machine class library. It is a property of the
Virtual Machine, right?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20181204/2d3199b9/attachment.html>


More information about the chuck-users mailing list