HISE Logo Forum
    • Categories
    • Register
    • Login

    Convolution via knob

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 465 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JayJ
      Jay
      last edited by

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

      any ideas, examples, snippets

      Joansi Villalona

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Jay
        last edited by

        @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.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        JayJ 2 Replies Last reply Reply Quote 2
        • JayJ
          Jay @d.healey
          last edited by

          @d-healey Cool I'll try that

          Joansi Villalona

          1 Reply Last reply Reply Quote 0
          • JayJ
            Jay @d.healey
            last edited by

            @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);

            Joansi Villalona

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @Jay
              last edited by

              @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");
              

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              1 Reply Last reply Reply Quote 3
              • First post
                Last post

              47

              Online

              1.7k

              Users

              11.7k

              Topics

              101.9k

              Posts