OR, because it's chuck and therefore more fun than your average language: if (maybe) 1.0 => sampleRate; else 1.5 => sampleRate;
Message: 2 Date: Fri, 3 Sep 2010 11:21:34 -0400 From: Timothy Leonido
To: chuck-users@lists.cs.princeton.edu Subject: [chuck-users] "Or" Message-ID: Content-Type: text/plain; charset="iso-8859-1" Hallo,
Once again, sorry for the rudimentary questions, but I can't seem to find the correct language for a very simple function: Instead of using Std.rand2f( ) for fluctuating volume or buf.rate, I'd like to simply have an either/or option. Play sample at a rate of 1.0 *or *1.5, randomly. The moses function (in pure data) was useful for this. Direction to the appropriate helpful would also be appreciated.
Thanks so much,
Tim