<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Tom,<div><br></div><div>That was just what I was looking for, thank you! Somehow I missed that even though it's documented in the UGens. And I found your page quite interesting... you have some cool projects.</div><div><br></div><div>-Matt<br><br><div><div id="SkyDrivePlaceholder"></div>> From: tom@alltom.com<br>> Date: Fri, 30 Mar 2012 18:31:15 -0400<br>> To: chuck-users@lists.cs.princeton.edu<br>> Subject: Re: [chuck-users] Reading sample's value<br>> <br>> On Fri, Mar 30, 2012 at 6:27 PM, Matt Bard <mattthestrat@hotmail.com> wrote:<br>> > Is there a way that I can read individual sample's values? Does ChucK have<br>> > some method of giving me those as floats/ints? I'd like to monitor each<br>> > sample's current value to create a Schmitt Trigger, for example.<br>> <br>> You can use last() to get the last sample any UGen produced.<br>> <br>> SinOsc s => dac;<br>> repeat(50) {<br>> samp => now;<br>> <<< s.last() >>>;<br>> }<br>> <br>> -- <br>> Tom Lieber<br>> http://AllTom.com/<br>> http://infinite-sketchpad.com/<br>> _______________________________________________<br>> chuck-users mailing list<br>> chuck-users@lists.cs.princeton.edu<br>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<br></div></div> </div></body>
</html>