Hello list, Is there a way to cast a dur (samples) to an int in chuck? This doesn't work: 1::second => dur pduration; pduration $ int => int srate; Thanks for your help! JPC
divide by the duration of one sample: pduration / 1::samp On Thursday, December 12, 2013 at 3:38 PM, Juan-Pablo Caceres wrote:
Hello list,
Is there a way to cast a dur (samples) to an int in chuck? This doesn't work:
1::second => dur pduration; pduration $ int => int srate;
Thanks for your help! JPC
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu (mailto:chuck-users@lists.cs.princeton.edu) https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
That worked perfectly, thanks Jordan. On 12/12/13 12:42 PM, Jordan Orelli wrote:
divide by the duration of one sample:
pduration / 1::samp
On Thursday, December 12, 2013 at 3:38 PM, Juan-Pablo Caceres wrote:
Hello list,
Is there a way to cast a dur (samples) to an int in chuck? This doesn't work:
1::second => dur pduration; pduration $ int => int srate;
Thanks for your help! JPC
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu mailto:chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (2)
-
Jordan Orelli
-
Juan-Pablo Caceres