Hey Tom, thanks for answering.<div>Yeah, i think it would be easier to use a LPF filter.</div><div>Anyway, i'll be trying stuff. Later i might release the code to the list.</div><div><br><br><div class="gmail_quote">On Thu, Feb 17, 2011 at 3:33 AM, Tomtom <span dir="ltr"><<a href="mailto:girodt@gmail.com">girodt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi<br>
<br>
I did something a bit similar recently. My approach was to simply to apply a<br>
decreasing exponential function on an input value to control the gain of a<br>
sample and simulate distance.<br>
<br>
Math.exp(-param * coef) will give you 1 for param=0, and progressively decrease<br>
at a speed controled by coef.<br>
<br>
Based on this, I guess all you have to do is to find the proper coefficients to<br>
transform your decreasing parameter into a decreasing frequency for your<br>
filter.<br>
<br>
by the way, if you want to progressively cut the high frequencies, wouldn't it<br>
be simpler to use a LPF filter ?<br>
<br>
Tom<br>
<br>
Excerpts from Wolfgang Gil's message of jeu. févr. 17 08:02:54 +0100 2011:<br>
<div><div></div><div class="h5">> Hey guys<br>
><br>
> i'm working on a sampler that uses a simple equation system to determine<br>
> parameters of reverb, volume and pitch filtering. The goal is to emulate<br>
> 'depth' using the idea that if a sound's source moves away from our ears, we<br>
> will perceive it as quieter and more diffused, with its high-pitch content<br>
> less present.<br>
><br>
> Motivated by this, I started to read about the biquad ugen, but i haven't<br>
> figured out how to deal with its coefficients so I can make something<br>
> interesting out of it.<br>
> My question is, how can i make a high cut filter that gradually reduces the<br>
> high-pitched content of the sound signal's spectrum, based on an input of<br>
> 0-100?<br>
> (0 = no filtering, 100 = no high-pitch content)<br>
><br>
> thanks!<br>
</div></div>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Wolfgang Gil<br><a href="http://www.wolfganggil.com">http://www.wolfganggil.com</a><br>
</div>