Forum
    • Categories
    • Register
    • Login

    Macro control for enable module. (not the inside parameter of the module but the enable button).

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 10 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.
    • Y
      Yannrog
      last edited by

      Hi,

      I think this is possible via scripting. However, someone can help me with a really simple example?

      The Idea is that 1 button when enabled, put 3 effects on. And when disable, put these 3 effects off.

      Thank you

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @Yannrog
        last edited by

        @Yannrog Put your effect references in an array. Then in the button callback loop over the effects and set the bypass state, something like this

        for (x in effects)
            x.setBypassed(!value);
        

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - HISE tutorials
        My Patreon - More HISE tutorials

        Y 1 Reply Last reply Reply Quote 0
        • Y
          Yannrog @David Healey
          last edited by

          @David-Healey I have the Array,
          I understand a bit the logic, but I don't have enough knowledge at the moment,

          is it possible to help a bit? or show an example please?

          Thank you so much

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @Yannrog
            last edited by David Healey

            @Yannrog said in Macro control for enable module. (not the inside parameter of the module but the enable button).:

            is it possible to help a bit? or show an example please?

            You pretty much have everything you need in my last post. Put that in a button callback and replace "effects" with the name of your array.

            You might also find this video helpful: https://www.youtube.com/watch?v=Y8sraa5ig-M

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - HISE tutorials
            My Patreon - More HISE tutorials

            Y 1 Reply Last reply Reply Quote 0
            • Y
              Yannrog @David Healey
              last edited by

              @David-Healey oh ok,

              Thank you

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

              22

              Online

              3.1k

              Users

              14.0k

              Topics

              122.0k

              Posts