<br><br><div><span class="gmail_quote">On 1/15/07, <b class="gmail_sendername"><a href="mailto:karl.petermichl@orf.at">karl.petermichl@orf.at</a></b> &lt;<a href="mailto:karl.petermichl@orf.at">karl.petermichl@orf.at</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Dear ChuKees,</blockquote><div><br>Hi, Karl!<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am particularely interested in the wonderful feature which allows me<br>to calculate EVERY SINGLE AUDIO SAMPLE prior to outputting it to the dac<br>via the impulse ugen. Is there a rough estimation just how much<br>calucaltion can go on between each sample at 44100hz?
</blockquote><div><br>Generally somewhere inbetween &quot;a fair amount&quot; and &quot;too much for comfort&quot;. It&#39;s realy quite expensive to ChucK that way but still very possible.<br><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 Does this depend<br>on the cpu type and speed, or is there an inherent ChuK limit?</blockquote><div><br>It&#39;s all in the CPU but it also heavily depends on the sample rate set. As far as I know there is no real limit nor should there be.
<br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I want to create some amazing sounds by making extremly complicated<br>computations for each sample, as in theory one could just create about
<br>any sound in the world this way (including semi-talented clarinet<br>players just having been woken up from a deep alpha-cycle..---))</blockquote><div><br>I&#39;d like to point out there is a Clarinet model ready made in Chuck already. This particular model, because of it&#39;s name, is very well suited for more jokes in dubious taste should one be so inclined.
<br>&nbsp;</div><br><br><br>Somewhere about a year ago or so there was a fair amount of talk on the list about using arrays of floats to record to, then chuck the values in them to Impulse or Step once per sample. That might be a interesting place to start, you could do some variations on Karplus-Strong using that. You could also implement anything found in texts on DSP or your own concoctions doing it this way but be prepared to spend a lot of time optimising. Do use Gain in it&#39;s various modes for all multiplications at sample-rate; this realy saves a lot of cpu time at the expense of some readablity.
<br><br><br>In my experience you can create very interesting little instruments that way that will still run in realtime but ti would be pushing it a bit too far to try to do a whole piece that way. That&#39;s refering to my own Pentium4 2GHz under a tuned version of XP. Your processor and taste in experiments will likely give different results but I&#39;d save this menthod for things you can&#39;t get in any other way or for moments when this method sounds like real fun.
<br><br><br>Kas.</div>