HISE Logo Forum
    • Categories
    • Register
    • Login

    script error combo box + convolution ir list

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 59 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.
    • X
      xxx
      last edited by

      hi, i am trying to make a simple combobox for a convolution reverb. I am following along with the video but I keep running into an error. Not sure how to fix this

      Content.makeFrontInterface(600, 200);
      
      const var ConvolutionReverb1 = Synth.getAudioSampleProcessor("Convolution Reverb1");
      
      const irs = Engine.loadAudioFilesIntoPool();
      
      //cmbIr
      const cmbIr = Content.getcompontent("cmbIr");
      
      inline function oncmbIrControl(component, value)
      {
      	//Add your custom logic here...
      };
      
      Content.getComponent("cmbIr").setControlCallback(oncmbIrControl);
      
      cmbIr.set("items","")
      
      for (x in irs)
      	cmbIr.addItem(x.replace("{PROJECT_FOLDER}").replace(".wav"));
      

      This is the error its showing for this line for (x in irs)

      Interface:! Line 19, column 1: Found 'for' when expecting ';' {{SW50ZXJmYWNlfG9uSW5pdCgpfDQwNHwxOXwx}}
      Master Chain:! Line 19, column 1: Found 'for' when expecting ';' {{SW50ZXJmYWNlfG9uSW5pdCgpfDQwNHwxOXwx}}
      
      d.healeyD X 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @xxx
        last edited by

        @xxx That error message is telling you that you missed a semicolon ; at the end of the previous line.

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

        X 2 Replies Last reply Reply Quote 0
        • X
          xxx @xxx
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • X
            xxx @d.healey
            last edited by

            @d-healey Gotcha thanks

            1 Reply Last reply Reply Quote 0
            • X
              xxx @d.healey
              last edited by

              @d-healey hi, so i got the combo box working for my convolution reverb. i tried swapping it for a knob using the same logic—just changed the component. it compiles, but moving the knob throws errors and does nothing. not sure what i’m missing. couldn't find anything about this on the forum

              Screenshot 2025-05-19 at 6.31.05 PM.png

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

                @xxx Combo boxes start at 1, what does your knob start at? I'm guessing 0 because you are subtracting 1 from the value on line 14 and that's giving you an undefined error - my guess is that it's trying to access the array with index -1 which is invalid.

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

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

                21

                Online

                1.7k

                Users

                11.8k

                Topics

                102.6k

                Posts