HISE Logo Forum
    • Categories
    • Register
    • Login

    A conceptual question

    Scheduled Pinned Locked Moved General Questions
    3 Posts 3 Posters 149 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.
    • MikeBM
      MikeB
      last edited by

      In HISE there are two possibilities to connect components with modules or to control them.

      Once via script via "setAttribute" and once via the link and the ProcessorId/Parameters.

      My question now:

      1. which is the most performant, most stable?
      2. does one of them have disadvantages or advantages?
      3. are there runtime problems with one of them?
      4. can you recommend one?

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @MikeB
        last edited by A Former User

        @MikeB said in A conceptual question:

        which is the most performant, most stable?

        Not sure about performance, but too many setAttribute calls at once can apparently cause some issues.

        does one of them have disadvantages or advantages?

        Scripting lets you add additional functionality, or do multiple things at once, for example:

        1. Set slider value.
        2. Repaint a panel based on the slider's new value.
        3. Update some text based on the slider's new value.
        4. Connect and update another slider, combobox etc.

        are there runtime problems with one of them?

        Not sure what you mean, is this different to stability question asked above?

        can you recommend one?

        For super fast workflow on simple tasks, use the built-in connection parameter menu. For advanced control, use script. I use scripts for almost everything because it gives me more control.

        1 Reply Last reply Reply Quote 1
        • Christoph HartC
          Christoph Hart
          last edited by

          If you use the processorId property it doesnt have to call into a script function so there is a tiny performance overhead, but that should be neglible. Stick to the properties for simple connection out of convenience and use the script callback if you need a custom logic.

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

          26

          Online

          1.8k

          Users

          12.0k

          Topics

          104.3k

          Posts