Im not sure why it says chout is disabled, as far as I know it works fine (maybe that page is outdated?).
chout <= "now: " <= now/day <= " days" <= IO.newline();
two ways to do it that I know of:put it on its own line with this:<<< T >>>or just divide by one sample, because that's the base unit of duration:T / 1::sampwill yield the number of samples in the duration. That's how it's normally printed with <<< T >>> anyway. Getting the human time like having it say 1.5s would mean you'd have to factor in the current sampling rate, not sure if that's accessible from ChucK code itself.-jordanOn Wednesday, December 12, 2012 at 9:44 PM, Aurélien Bondis wrote:
Hi,I don't know for sure if this applies to your version but in the doc itsays chout and stdout have been disabled"For the time being, stdout and chout have been temporarily disabled forthe present release. In their place we have provided a debug print"AurélienOn Thu, 13 Dec 2012, stephane.poirier@oifii.org wrote:Hi All,Here below are 3 lines of code in chuck. How could I modify it to output the value of T in the chout?// this synchronizes to period0.75::second => dur T;T - (now % T) => now;// output to console on stdoutchout <= 1 <= " foo " <= 5.5 <= IO.newline();Regards,Stephane_______________________________________________chuck-users mailing list_______________________________________________chuck-users mailing list
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users