HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Ender
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 11
    • Groups 0

    Ender

    @Ender

    1
    Reputation
    2
    Profile views
    11
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Ender Unfollow Follow

    Best posts made by Ender

    • RE: Parsing Error

      @d-healey said in Parsing Error:
      I found what was wrong!
      put it back to local filterIndex = value - 1; , but the same message came again. i suddenly thought abput the name i gave to the filter module. I changed it and everything worked well! i maybe got the issue because i left a space in "MAIN FILTER".

      I'm so glad to see this filter behaving like i want it to do so. Thank you so much for your help, i would probably be mad if you didn't answer to my post :)

      posted in General Questions
      E
      Ender

    Latest posts made by Ender

    • RE: Inverting a knob

      @ustk said in Inverting a knob:

      @Ender you already have value as callback's argument

      So:

      inline function onKnobControl(value)
      {
      	local invVal = 1-value;
      	
      	Console.print(invVal);
      }
      

      Hello @ustk ,

      I just had to do some little adjustment to the function you wrote and everything works like i want :)

      Thank you very much for your help!

      posted in General Questions
      E
      Ender
    • Inverting a knob

      Hello everyone,
      i'd like to invert a knob, so the minimum value would be 1 and the maximum 0. Using the properties of the knob doesn't work and found this post (https://forum.hise.audio/post/14243)

      While i understand the idea of this simple line, i don't know how to implement it in a function linked to my knob. Here's what i wrote (I have some experience with C# and a tiny bit of Unity3D oriented Javascipt, so i'm a newbie with Hise scripting ):

      const var knobAmount = COntent.getComponent("LFOAmount");
      
      inline function onKnobControl(value){
      	1-amountKnob.getValue(0, 1);
      }
      

      I'm sure i miss something simple, but i can't figure out what...

      Thanks in advance!

      posted in General Questions
      E
      Ender
    • RE: Parsing Error

      @d-healey said in Parsing Error:
      I found what was wrong!
      put it back to local filterIndex = value - 1; , but the same message came again. i suddenly thought abput the name i gave to the filter module. I changed it and everything worked well! i maybe got the issue because i left a space in "MAIN FILTER".

      I'm so glad to see this filter behaving like i want it to do so. Thank you so much for your help, i would probably be mad if you didn't answer to my post :)

      posted in General Questions
      E
      Ender
    • RE: Parsing Error

      @d-healey did a right-click on the filter in module tree => create generic script reference.

      Then i used the line written in the console to replace the filter const var. i still get the same API call error, and the filter type doesn't change at all. here's a screenshot of what i didHise Issue.png

      posted in General Questions
      E
      Ender
    • RE: Parsing Error

      @d-healey i tried to reference the filter with this:

      const var filter = Synth.addEffect("PolyphonicFilter", "MAIN FILTER", -1);
      

      but i get API call with undefined parameter 1

      What should i use for the last parameter in the Synth.addEffect line?
      here's my code again,

      const var filter = Synth.addEffect("PolyphonicFilter", "MAIN FILTER", -1)
      const var comboBox = Content.getComponent("FilterType");
      const var modes = Engine.getFilterModeList();
      
      const var myFilters = [modes.LowPass, modes.HighPass, modes.BandPass];
      
      comboBox.addItem("LowPass");
      comboBox.addItem("HighPass");
      comboBox.addItem("BandPass");
      
      inline function onComboBoxControl(component, value)
      {
         local filterIndex = value - 1;
         filter.setAttribute(filter.Mode, myFilters[filterIndex]);
      
      }
      
      comboBox.setControlCallback(onComboBoxControl);
      
      posted in General Questions
      E
      Ender
    • RE: Parsing Error

      @d-healey said in Parsing Error:

      You don't have a reference to your filter effect, you have a component reference called filter.
      How can i add this reference? I thought

      const var filter = Content.getComponent("MAIN FILTER");
      

      was the way to reference the filter. I'm used to C#, and it worked well there.

      posted in General Questions
      E
      Ender
    • RE: Parsing Error

      @d-healey
      I now get another error while running the synth: Interface:! Line 16, column 23: Unknown function 'setAttribute'
      I also noticed that every filter type is written twice.

      posted in General Questions
      E
      Ender
    • RE: Parsing Error

      @d-healey
      it doesn't seem to work. here's a screenshot. Is the processor ID the underlined parameter? Hise Issue.png

      posted in General Questions
      E
      Ender
    • RE: Parsing Error

      @d-healey
      I added a reference to the comboBox, but i don't know how to assigne the control callback you talk about. Here's what i got:

       const var filter = Content.getComponent("MAIN FILTER");
       const var comboBox = Content.getComponent("FilterType");
       const var modes = Engine.getFilterModeList();
       
       const var myFilters = [modes.LowPass, modes.HighPass, modes.BandPass];
       
       comboBox.addItem("LowPass");
       comboBox.addItem("HighPass");
       comboBox.addItem("BandPass");
       
       inline function onComboBoxControl(component, value)
       {
          local filterIndex = value - 1;
          filter.setAttribute(filter.Mode, myFilters[filterIndex]);
       }
      

      Did i forget anything?

      I go to the open recent xml tabe and select my project, which is in the case "3xOSC".

      posted in General Questions
      E
      Ender
    • RE: Parsing Error

      @d-healey
      oh yes, i didn't noticed that. I added that line, but it still shows the error:

      const var filter = Content.getComponent("MAIN FILTER");
      

      I called the filter "MAIN FILTER".

      Yes, i save the project. At least, i do a CTRL+Shift+S to save the xml. I don't know if there's something else to do.

      posted in General Questions
      E
      Ender