Cabbage Logo
Back to Cabbage Site

IR bounded to knob position

hi everyone!

I try to bind different IRs (Impulse response) and the convolution to their corresponding position of a knob.
Means, when I switch that Knob it will change to a different IR that’s inside a folder and will only
convolute this IR with the incoming audio.

How could I archive that easily ? Anyone have experience with that?

Thank you very much!!!

best
Mirosh

It depends on how you are reading the IRs, but you could just use if statements with a slider set up to increment by 1.

if chnget:k("irNumberSlider")==1 then
    ar1 convolve ain, "impule1.wav"
elseif chnget:k("irNumberSlider")==2 then
    ar1 convolve ain, "impule2.wav"
elseif chnget:k("irNumberSlider")==3 then
    ar1 convolve ain, "impule3.wav" 
endif