HISE Logo Forum
    • Categories
    • Register
    • Login

    Why isn't this set parameter for a DSPNetwork node working?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 1 Posters 211 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.
    • O
      Orvillain
      last edited by

      Here's the snippet:

      HiseSnippet 1703.3oc4XstaaaCEVxIps1qEncn.a8eDFCsN.YI1cscEHWZtX6Ui03XDkFz+EvJQGSDZRAQJG6Mzmr828.rGk8Frcnnt4X2rDis1MLEfXQdtvOd34FEYrhv8I9mJ4zf.hxxxdodgBOhTJBsrKe7j.hk8ccbmvUC1e.lxs5zzx9dNmQTRhJ.GhGZs2j.rTR7srsW5GzrXWdYq3me+U6gYXtGIeJKqSDTOxanCop7Y6syORYr1XexwzgE39Y6zwSv2WvDQ.bVxotU.16b7YjtXMakbrruUKepRD5pvJhD3YOg+D2AhK3F9OgJoumQzCZX4BJxLs09CnL+rspD13NE13KY13Oz4.pOMa9bCv8iIfxknnMvtzUAoF2.HYW.RKafzCbb8BoApbJZ77ENc3JRXeLXpKBECuVkdSIm8E.Gb0ZCwmSZGBCxjn1KpWeUD7uU1nREJmQ4DT+HtmhJ3HyA8oCm.tHjwmFehS.AqsRketRYlvCyPbh5BQ34nsPs3mARuFHTSYPWyzGQ5SBIfSPspF3vE9DTrGEQRkjvFUWsZN6UATffGipiWzXA1JcYzZu1SxH7jo3GL3JCHAAx3QKRuLj+jblREFLNRAirVPHkqpkSWK3IXVDo1JIblqSoFFET0pn5q87aj99PkJeby6FYGABdWghbH2XxAoPWlT+9ykl9HOTvXomVWhrNTK7pDrFOZ36IgqhFogbFifu3zN32554f6Y7.Kvnf2gSUGFPRF2Vv70Nt52mMbvJwEFd6scZhUXcDRxb.eAjPEUCG6ljQPJFS7RYmlD44JQ.jjYlfIHLV3Gwvpois0IwRH.1ioBnzAMbIUMoXRtaP.e8qLf+5BwG3zip7F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Jkxq1rqit2Fkfz3YqcIpOF4CuccVOrD0WmbZlEVal2e5UoslwZx.Ley9LAVsJvPwUZdKyAcZ1AQFAGiSYggDI9LxqgCiVZZ0xd6wHxLv9swGYTY9kBUBDXPiBhWBxXHypdunQRh9ApsRlVaSpAtRREp3T.vWEo2jTtOY7Lqoa5AaVp64Zg5kXgjE+dY9hHHl.MpfR+vFUrrlww+Qy0we7PVlqu8u3r4qfIPiLcjrUUnHSUDzGgvGb11p5aOt829xpuZ6JU1LuJy1UPn7gnz5daUstV3zxdI5JslVB07RZF5wedtrmNM2pZdAxpnB5c8sqr45Ewfk0eBPccflA
      

      Here's the code:

      Content.makeFrontInterface(600, 600);
      
      inline function getset_my_snex_parameter()
      {
          local network = Engine.getDspNetworkReference("Scriptnode Synthesiser1","DspNetwork");
          local snex_node = network.get('snex_node');
          local test_param = snex_node.getParameter('test_param');
          Console.print(test_param.getValue());
          snex_node.set('test_param', 0.5);
          Console.print(test_param.getValue());
      }
      
      getset_my_snex_parameter();
      

      According to the docs:
      DspNetwork.get(var id) returns a reference to a node with the same id.
      Node.set(var id, var value) sets the property of the node.

      I believe this is what I'm doing. But the test_param never gets set to 0.5, and indeed the console prints 0.0 twice.

      Is there an undocumented call I should be using?

      O 1 Reply Last reply Reply Quote 0
      • O
        Orvillain @Orvillain
        last edited by

        @Christoph-Hart
        Hey dude, is this a bug or am I just doing it wrong?

        O 1 Reply Last reply Reply Quote 0
        • O
          Orvillain @Orvillain
          last edited by

          Any thoughts folks? I'm either incredibly dumb and need it pointing out to me in the most brutal way (I can take it!) orrrrr there really does seem to be a bug here.

          I do notice in my data view, the network gets retrieved and produces a value. But the node and test_param doesn't:

          baf66129-c639-40fb-9425-be427ee1e8d1-image.png

          This is what I get when I take everything out of the function and set it to const rather than local.

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

          18

          Online

          1.7k

          Users

          11.8k

          Topics

          102.8k

          Posts