<div dir="ltr">Dear list,<br><br>I&#39;m helping a friend with a project and would like to use ChucK to analyse some signals. In particular I&#39;d like to calculate the average of a audio signal over the last n samples (where n is something between say 500 and 1000).<br>
<br>The best strategy I can come up with right now is to use Filter and give it a series of n coefficients that make it add the current input sample, the last...... the one n-1 samples ago, all at a amplitude of 1/n, and not use any feedback. This would make Filter do all the work which is good because typically Perry and Gary write C that&#39;s much, much faster then the ChucK I write.<br>
<br>The bad news is that the docs make it clear that Filter takes a input of type string but it doesn&#39;t tell us how this string is formatted. I&#39;m fine generating the string I need procedurally but I would need some more instructions then that it&#39;s a string and a rough idea of what&#39;s in it.<br>
<br>I&#39;d also like to suggest the doc&#39;s would be updated with this because as they are Filter isn&#39;t that practical to use.<br><br>Yours,<br>Kas.<br></div>