HISE Logo Forum
    • Categories
    • Register
    • Login

    Broadcaster attachment design pattern

    Scheduled Pinned Locked Moved General Questions
    25 Posts 3 Posters 324 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.
    • OrvillainO
      Orvillain @d.healey
      last edited by

      @d-healey Indeed, indeed.

      		for (engine in SharedData.engines)
              {
                  local capturedEngine = engine;
                  SharedData.broadcasters[capturedEngine + "ModeControl"].addListener("string", "metadata", function[capturedEngine](index)
      		{
      			BroadcasterCallbacks.setActiveModeForSlot(capturedEngine, index);
      		});
              }
      

      This did seem to work however.

      Musician - Instrument Designer - Sonic Architect - Creative Product Owner
      Crafting sound at every level. From strings to signal paths, samples to systems.

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

        @Orvillain Yep that will do it, it's not the most elegant solution but that's what it's designed for.

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

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

          @d-healey More elegant than what I have right now I am thinking!

          Musician - Instrument Designer - Sonic Architect - Creative Product Owner
          Crafting sound at every level. From strings to signal paths, samples to systems.

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

            @Orvillain Yep it will certainly help reduce that repetition

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

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

              @d-healey Yeah, I think I can essentially boil down 11 functions down to 3 functions with this. Pretty cool, cheers!

              Musician - Instrument Designer - Sonic Architect - Creative Product Owner
              Crafting sound at every level. From strings to signal paths, samples to systems.

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

              16

              Online

              1.8k

              Users

              12.1k

              Topics

              105.7k

              Posts