<div>two ways to do it that I know of:</div><div><br></div><div>put it on its own line with this:</div><div><br></div><div>
                    <<< T >>>
                </div><div><br></div><div>or just divide by one sample, because that's the base unit of duration:</div><div><br></div><div><br></div><div>T / 1::samp</div><div><br></div><div><br></div><div>will 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.</div><div><br></div><div>-jordan</div><div><br></div><div><br></div>
                 
                <p style="color: #A0A0A8;">On Wednesday, December 12, 2012 at 9:44 PM, AurĂ©lien Bondis wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>Hi,</div><div><br></div><div>I don't know for sure if this applies to your version but in the doc it</div><div>says chout and stdout have been disabled</div><div><br></div><div><a href="http://chuck.cs.princeton.edu/doc/language/overview.html">http://chuck.cs.princeton.edu/doc/language/overview.html</a></div><div>"For the time being, stdout and chout have been temporarily disabled for</div><div>the present release. In their place we have provided a debug print"</div><div><br></div><div>AurĂ©lien</div><div><br></div><div>On Thu, 13 Dec 2012, <a href="mailto:stephane.poirier@oifii.org">stephane.poirier@oifii.org</a> wrote:</div><div><br></div><blockquote type="cite"><div><div>Hi All,</div><div><br></div><div>Here below are 3 lines of code in chuck. How could I modify it to output the value of T in the chout?</div><div><br></div><div>// this synchronizes to period</div><div>0.75::second => dur T;</div><div>T - (now % T) => now;</div><div>// output to console on stdout</div><div>chout <= 1 <= " foo " <= 5.5 <= IO.newline();</div><div><br></div><div>Regards,</div><div><br></div><div>Stephane</div></div></blockquote><div><br></div><blockquote type="cite"><div><div>_______________________________________________</div><div>chuck-users mailing list</div><div><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a></div><div><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a></div></div></blockquote><div><br></div><div>_______________________________________________</div><div>chuck-users mailing list</div><div><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a></div><div><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>