HISE Logo Forum
    • Categories
    • Register
    • Login

    What is a way around button callbacks not working when they're assigned to a processorId?

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 470 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

      So I don't think this is a bug, I think this is just me not understanding something. Basically I have a button that is assigned to a processorId - because when the button is on I set a DSPnetwork parameter to 1.0, and when it is off, I set it to 0.0.

      But when you assign a processorId in this way, button callbacks stop firing off. I'm sure I've read on the forum that this is intentional.

      But my question is, how do I work around this??

      As of yet, I've not actually managed to set a DSPnetwork parameter to a value from my code. Don't know if I'm just failing hard there; if anyone has a snippet, that would be much appreciated!

      Is this where I have to get into broadcasters, so I can broadcast my button state to multiple places at once???

      Any other thoughts?

      O d.healeyD A 3 Replies Last reply Reply Quote 0
      • O
        Orvillain @Orvillain
        last edited by

        @Orvillain

        Think I answered my own question.

        Link Preview Image
        HISE | Docs

        favicon

        (docs.hise.dev)

        *Value changes
        On the first look this doesn't sound particularly interesting because the value callback was already accessible through setControlCallback() , however if you're using processorId / parameterId properties it will not fire so this gives you the chance to add additional, "non-exclusive" callbacks for UI things

        See: attachToComponentValue()*

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @Orvillain
          last edited by

          @Orvillain said in What is a way around button callbacks not working when they're assigned to a processorId?:

          I've not actually managed to set a DSPnetwork parameter to a value from my code

          This is the usual way, but broadcaster is also a good choice.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

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

            @d-healey said in What is a way around button callbacks not working when they're assigned to a processorId?:

            @Orvillain said in What is a way around button callbacks not working when they're assigned to a processorId?:

            I've not actually managed to set a DSPnetwork parameter to a value from my code

            This is the usual way, but broadcaster is also a good choice.

            Yeah I've tried it before, and things weren't flushing through properly. That was earlier in the week though, and a lot of coffee and sleep deprivation has passed through my brain, so I can't really remember the details! :zany_face:

            I think I'll investigate the broadcaster approach, because it seems really useful.

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

              @Orvillain said in What is a way around button callbacks not working when they're assigned to a processorId?:

              As of yet, I've not actually managed to set a DSPnetwork parameter to a value from my code.

              fxReference.setAttribute(fxReference.parameterName, value) is not working for you?

              You would call this from the knob callback.

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

              35

              Online

              1.7k

              Users

              11.8k

              Topics

              102.4k

              Posts