HISE Logo Forum
    • Categories
    • Register
    • Login

    Is the Samplemap Broadcast Receiver Supposed to Fire Twice When It's Defined?

    Scheduled Pinned Locked Moved Solved Scripting
    3 Posts 2 Posters 157 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.
    • C
      clevername27
      last edited by clevername27

      For me, it actually executes twice. Anyone else? Thanks.

      EDIT: I typed the wrong question. But I'm halfway there thanks to @d-healey.

      EDIT of EDIT: The answer is, "Sort of." I was calling "clearSampleMap();" which also triggered the broadcaster.

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

        If you're using addListener, then yes - https://docs.hise.dev/scripting/scripting-api/broadcaster/index.html#addlistener

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

        C 1 Reply Last reply Reply Quote 1
        • C
          clevername27 @d.healey
          last edited by

          @d-healey Thank you. That explains one of them. 👍 I'll check if I'm adding the receiver twice.

          1 Reply Last reply Reply Quote 0
          • C clevername27 has marked this topic as solved on
          • First post
            Last post

          18

          Online

          1.8k

          Users

          12.2k

          Topics

          106.0k

          Posts