Csound Csound-dev Csound-tekno Search About

[Csnd] dynamically changing filter

Date2010-09-09 13:17
Fromvictor
Subject[Csnd] dynamically changing filter
Hello to all

I'd like to make a dynamic filter on wav file. I mean that i want to apply
either a high pass or a low pass filter , depending on the amplitude (this
can seem weird but it is for psycho-acoustical research). I get the
amplitude with rms; i can apply the condition at the beginning of playing,
and it stays for the whole play; 

i want the filter to shift for low to high, or from high to low, during the
playing of the .wav file. Please could you help to choose the best opcode
that is suited to this aplication?

Thanks

Victor

Date2010-09-09 13:26
FromVictor Lazzarini
Subject[Csnd] Re: dynamically changing filter
Typical filters:
Lowpass filter: tone or butterlp ; highpass: atone or butterhp

you can then select the output with a conditional, e.g.

krms rms  asig

if krms > ithreshold then
aout butterhp  asig, icutoff
else
aout butterlp asig, icutoff
endif


Regards

Victor Lazzarini

On 9 Sep 2010, at 13:17, victor wrote:

>
> Hello to all
>
> I'd like to make a dynamic filter on wav file. I mean that i want to  
> apply
> either a high pass or a low pass filter , depending on the amplitude  
> (this
> can seem weird but it is for psycho-acoustical research). I get the
> amplitude with rms; i can apply the condition at the beginning of  
> playing,
> and it stays for the whole play;
>
> i want the filter to shift for low to high, or from high to low,  
> during the
> playing of the .wav file. Please could you help to choose the best  
> opcode
> that is suited to this aplication?
>
> Thanks
>
> Victor
> -- 
> View this message in context: http://csound.1045644.n5.nabble.com/dynamically-changing-filter-tp2827374p2827374.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-09-09 13:48
Fromvictor
Subject[Csnd] Re: dynamically changing filter
thank you so much!

it works perfectly

victor