HISE Logo Forum
    • Categories
    • Register
    • Login

    Button default value should be used in broadcaster

    Scheduled Pinned Locked Moved Scripting
    buttonbroadcasterdefault
    3 Posts 2 Posters 53 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.
    • d.healeyD
      d.healey
      last edited by

      As we know, broadcasters automatically fire at init. With a value listener linked to a momentary button, the value passed into the broadcaster at this initial trigger will always be 0.

      This is super annoying if you only want the action to happen when the user clicks the button (not at init) and when they've release the mouse (value = 0).

      A simple solution would be to have this initial firing use the button's defaultValue property - which doesn't seem to be used for anything.

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

      Christoph HartC 1 Reply Last reply Reply Quote 1
      • Christoph HartC
        Christoph Hart @d.healey
        last edited by

        which doesn't seem to be used for anything.

        It's used for AAX plugins - the initial state ignores the default user preset and loads those default values if buttons are assigned to a plugin parameter.

        d.healeyD 1 Reply Last reply Reply Quote 2
        • d.healeyD
          d.healey @Christoph Hart
          last edited by

          @Christoph-Hart said in Button default value should be used in broadcaster:

          It's used for AAX plugins

          Aha that's good to know

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

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

          45

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts