HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. MaedDeam
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Groups 0

    MaedDeam

    @MaedDeam

    0
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    MaedDeam Unfollow Follow

    Latest posts made by MaedDeam

    • RE: Synth.setMacroControl(8, value) -macroIndex must be between 1 and 8

      Thank you very much, actually I'm glad that my logic was quite ok and I am not isane:) Your example was claryfing some stuff too. Thanks!

      posted in Scripting
      M
      MaedDeam
    • RE: Synth.setMacroControl(8, value) -macroIndex must be between 1 and 8

      @d-healey

      HiseSnippet 999.3ocsVssaaaCFlxIZXVcdXAnO.B9JkgfBIetnHXNwwY0n1Id0YA6NOZJpXhHQJHQ0Eih.zGs8Hs2fURcvVJ1YNPXU5Jx+Cee+7z2+z.FBGFxB.JZ2rxGCT9A0Yqn7kCVBITvnK.JUUG9.zy2ECNekOLLDaCTTN3WklUpdHH96e9kygtPJBuYJ.3VFAgGS7H7MyNs+GHttWBsw2P7x4cq9iPL5.lKKRPkCTMA9Pz8v6vWAktUQE7dX3RfxOq1ngCpmoYulMaaBgMsgvVV3luE6zwA017sl1KZaJ96.T9tg1DNKXFGxwg.kCOmYuZ1R1eQS.3VRHYgnpDCr.yDHmL8kLWaYIJmELXIw0dZ1ZTHPjkoaVwNHYE60pSH1j0yuYk6mhMnuIh7KfJUJRuCJPOq7zyLG81AkTxQoCSnzQpyPADe9FKR97J0QTNNvAhJtWl3KnxippCXBOn723AuGeYfXv5HLrZzy7D8tMLO9c0zpoI1tB45eBFnOa77ImM3iW2S+T8r3uCyGv77YTw.i5q8ntL1sib93yNe338Gepe0SXPMMB0kPw5NQTDmvn5L5ZjjIJf4ZfxxxIBDcivGWS6y0zhOh+lPLeBDEvx7sWlOhz+DHk9ZTmiefW+D8IPQvArHpsQh+x.dTRn0vK8OMsCfttKDGlM1lcI0QN5WfNDpM9gBzl3nmLq9ompalVJo4zRB4sReMdlhv5EUDX2PrdAfrJBTi8BTiRBTih.0bu.0rj.0rHPs1KPsJIPsJBT68BT6RBT6h.0Yu.0oj.0oHPc2KPcKIPcKBTu8BzK6N5i4tscEiiulZbr1m0pp8nl9SM43rSao2OcwA6zrTXK3+JPCZj2BbP1M6LGEOdWTQP84UDxKXgRdxLmiL5HJgesOl9bxXfz2YkpGorR3JOV63GS0Nl4RrwA.hsT3X81.HlzoB2e40WMnO32GcAjCyRkHqBj7wAbhrHTt.+IQa.IxRUUu.GdOm4KTzW+7tnPeQ.+v5tE9xu0e0lVGtouGbis+ddev1otVZpGCWfciy7QpO4zyyk+9+Ye4QJQpTR5fYKwVgLOyNxExKp8K6PJ0fX6uffqTTkFR3qx2A0+aMD7Ro3QpSIbzxcywJ6fihs3uEbLsMpZpCcbvH9FBdn5k+w2ldl.ejEwIz6DuRDPDa7pWE4MSz5IBKPmREuFI2uqHunjL1La+eFlZGO3eEeoFsjiURMZkYD3IEymiRtdIaT66imQvIZbSsUUik60sJbmJ9ySz23bDpXp1JvFkMvlkMvVkMv1kMvNkMvtkMvd6OPYa8mEwYdIWa.fISGF+FnhxPJTbBL9zJ3qfs7JrV
      

      I stripped down to one fresh knob and fresh label - i have tried looped it with indexes, and works fine besides 8 macro, which gave me same error.

      At the end of a day I tried to make knob tied to macro and with some text to display value.

      Thanks!

      posted in Scripting
      M
      MaedDeam
    • RE: Synth.setMacroControl(8, value) -macroIndex must be between 1 and 8

      Of course thanks in advance for any help in resolving this case:)

      BTW this community is lit.

      posted in Scripting
      M
      MaedDeam
    • Synth.setMacroControl(8, value) -macroIndex must be between 1 and 8

      Hi there, I am new to programing, I spend almost two weeks of evenings solving, what should be easy in my expectations.

      1. When I map slider to macro, functions that copies value to blank label (design choice) does not work

      2. When I map slider dynamicaly by code, using Synth.setMacroControl everything is fine until I get to macro 8. When I have
        Synth.setMacroControl(8, value);
        in function it gets me
        macroIndex must be between 1 and 8!

      I paste whole construction below

      Content.makeFrontInterface(1280, 720);

      const var SL_MACRO1 = Content.getComponent("SL_MACRO1");
      const var SL_MACRO_LABEL1 = Content.getComponent("SL_MACRO_LABEL1");
      const var SL_MACRO2 = Content.getComponent("SL_MACRO2");
      const var SL_MACRO_LABEL2 = Content.getComponent("SL_MACRO_LABEL2");
      const var SL_MACRO8 = Content.getComponent("SL_MACRO8");
      const var SL_MACRO_LABEL8 = Content.getComponent("SL_MACRO_LABEL8");
      const var SL_MACRO4 = Content.getComponent("SL_MACRO4");
      const var SL_MACRO_LABEL4 = Content.getComponent("SL_MACRO_LABEL4");
      const var SL_MACRO3 = Content.getComponent("SL_MACRO3");
      const var SL_MACRO_LABEL3 = Content.getComponent("SL_MACRO_LABEL3");
      const var SL_MACRO7 = Content.getComponent("SL_MACRO7");
      const var SL_MACRO_LABEL7 = Content.getComponent("SL_MACRO_LABEL7");
      const var SL_MACRO6 = Content.getComponent("SL_MACRO6");
      const var SL_MACRO_LABEL6 = Content.getComponent("SL_MACRO_LABEL6");
      const var SL_MACRO5 = Content.getComponent("SL_MACRO5");
      const var SL_MACRO_LABEL5 = Content.getComponent("SL_MACRO_LABEL5");

      inline function onSL_MACRO1Control(component, value)
      {
      Synth.setMacroControl(1, value);
      SL_MACRO_LABEL1.set("text", Math.round(value));
      }

      SL_MACRO1.setControlCallback(onSL_MACRO1Control);

      inline function onSL_MACRO2Control(component, value)
      {
      Synth.setMacroControl(2, value);
      SL_MACRO_LABEL2.set("text", Math.round(value));
      }

      SL_MACRO2.setControlCallback(onSL_MACRO2Control);

      inline function onSL_MACRO3Control(component, value)
      {
      Synth.setMacroControl(3, value);
      SL_MACRO_LABEL3.set("text", Math.round(value));
      }

      SL_MACRO3.setControlCallback(onSL_MACRO3Control);

      inline function onSL_MACRO4Control(component, value)
      {
      Synth.setMacroControl(4, value);
      SL_MACRO_LABEL4.set("text", Math.round(value));
      }

      SL_MACRO4.setControlCallback(onSL_MACRO4Control);

      inline function onSL_MACRO5Control(component, value)
      {
      Synth.setMacroControl(5, value);
      SL_MACRO_LABEL5.set("text", Math.round(value));
      }

      SL_MACRO5.setControlCallback(onSL_MACRO5Control);

      inline function onSL_MACRO6Control(component, value)
      {
      Synth.setMacroControl(6, value);
      SL_MACRO_LABEL6.set("text", Math.round(value));
      }

      SL_MACRO6.setControlCallback(onSL_MACRO6Control);

      inline function onSL_MACRO7Control(component, value)
      {
      Synth.setMacroControl(7, value);
      SL_MACRO_LABEL7.set("text", Math.round(value));
      }

      SL_MACRO7.setControlCallback(onSL_MACRO7Control);

      inline function onSL_MACRO8Control(component, value)
      {
      Synth.setMacroControl(8, value);
      SL_MACRO_LABEL8.set("text", Math.round(value));
      }

      SL_MACRO8.setControlCallback(onSL_MACRO8Control);

      function onMacroControl(index, value)
      {
      if (index == 0)
      {
      SL_MACRO1.setValue(value);
      SL_MACRO_LABEL1.set("text", Math.round(value));
      }
      else if (index == 1)
      {
      SL_MACRO2.setValue(value);
      SL_MACRO_LABEL2.set("text", Math.round(value));
      }
      else if (index == 2)
      {
      SL_MACRO3.setValue(value);
      SL_MACRO_LABEL3.set("text", Math.round(value));
      }
      else if (index == 3)
      {
      SL_MACRO4.setValue(value);
      SL_MACRO_LABEL4.set("text", Math.round(value));
      }
      else if (index == 4)
      {
      SL_MACRO5.setValue(value);
      SL_MACRO_LABEL5.set("text", Math.round(value));
      }
      else if (index == 5)
      {
      SL_MACRO6.setValue(value);
      SL_MACRO_LABEL6.set("text", Math.round(value));
      }
      else if (index == 6)
      {
      SL_MACRO7.setValue(value);
      SL_MACRO_LABEL7.set("text", Math.round(value));
      }
      else if (index == 7)
      {
      SL_MACRO8.setValue(value);
      SL_MACRO_LABEL8.set("text", Math.round(value));
      }
      }

      Thanks in advance

      posted in Scripting
      M
      MaedDeam