Convolution via knob



  • is it possible to change from a list of convolution reverb with a knob, instead of the ComboBox or Viewport?

    any ideas, examples, snippets



  • @Jay You know how in your previous thread "Fixed Values" I made a knob lock to different frequencies by putting the frequencies in an array and having the knob select the array index. Well you can do the same thing for convo IRs just put the IR names in the array instead.



  • @d-healey Cool I'll try that



  • @d-healey I'll try it and it didn't work, I definitely doing some wrong...

    const var convol = [MediumLight, MediumDark, MediumSlap, MediumVox];

    inline function onKnob1Control(component, value)
    {
    ConvolutionReverb1.setFile("{PROJECT_FOLDER}"+ control.getItemText() + ".wav")(convol[value]);
    };

    Content.getComponent("Knob1").setControlCallback(onKnob1Control);



  • @Jay

    Your IR file names must be strings. That mean they must be in quotes ""

    const var convol = ["MediumLight", "MediumDark", "MediumSlap", "MediumVox"];
    

    getItemText is only for combo boxes (check the API documentation) so this code will never work.

    ConvolutionReverb1.setFile("{PROJECT_FOLDER}"+ control.getItemText() + ".wav")(convol[value]);
    

    What you want is something more like...

    ConvolutionReverb1.setFile("{PROJECT_FOLDER}" + convol[value] + ".wav");
    

 

3
Online

410
Users

1.4k
Topics

9.9k
Posts