[chuck-users] Reading sample's value

Matt Bard mattthestrat at hotmail.com
Sat Mar 31 08:45:56 EDT 2012


Tom,
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.
-Matt

> From: tom at alltom.com
> Date: Fri, 30 Mar 2012 18:31:15 -0400
> To: chuck-users at lists.cs.princeton.edu
> Subject: Re: [chuck-users] Reading sample's value
> 
> On Fri, Mar 30, 2012 at 6:27 PM, Matt Bard <mattthestrat at hotmail.com> wrote:
> > Is there a way that I can read individual sample's values?  Does ChucK have
> > some method of giving me those as floats/ints?  I'd like to monitor each
> > sample's current value to create a Schmitt Trigger, for example.
> 
> You can use last() to get the last sample any UGen produced.
> 
>   SinOsc s => dac;
>   repeat(50) {
>     samp => now;
>     <<< s.last() >>>;
>   }
> 
> -- 
> Tom Lieber
> http://AllTom.com/
> http://infinite-sketchpad.com/
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20120331/1ea6e78b/attachment.html>


More information about the chuck-users mailing list