Forum
    • Categories
    • Register
    • Login

    Table Broadcaster

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 58 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.
    • DanHD
      DanH
      last edited by

      Does anyone have a snippet with a table firing a broadcaster?

      tableChangeBroadcaster.attachToComplexData(
          "Table.Content",
          ["LFO1SHAPE", "LFO2SHAPE", "LFO3SHAPE", "LFO4SHAPE"],
          0,
          "Watch all LFO table edits"
      );
      

      Can't get it to work this end...

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      Oli UllmannO 1 Reply Last reply Reply Quote 0
      • Oli UllmannO
        Oli Ullmann @DanH
        last edited by

        @DanH
        There is a table callback.

        table.setContentCallback
        
        DanHD 2 Replies Last reply Reply Quote 0
        • DanHD
          DanH @Oli Ullmann
          last edited by

          @Oli-Ullmann said in Table Broadcaster:

          table.setContentCallback

          ah that's much better! Thanks!

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          1 Reply Last reply Reply Quote 1
          • DanHD
            DanH @Oli Ullmann
            last edited by DanH

            @Oli-Ullmann oh, apparently it doesn't exist after all, despite being in the docs 😆

            @Christoph-Hart was it ever in / did it get removed?

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            Christoph HartC Oli UllmannO 2 Replies Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @DanH
              last edited by

              @DanH raw output from the broadcaster wizard works:

              // Broadcaster definition
              const var asd = Engine.createBroadcaster({
                "id": "asd",
                "args": ["processor", "index", "value"],
                "tags": []
              });
              
              // attach to event Type
              asd.attachToComplexData("Table.Content", ["LFO Modulator1"], "0", "");
              
              // attach first listener
              asd.addListener(0, "set content", function(processor, index, value){
              	Console.print(value);
              });
              
              DanHD 1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @Christoph Hart
                last edited by DanH

                @Christoph-Hart thanks! Hopefully this will be better than what I hacked together using

                const var Table_LFO1 = Content.getComponent("Table_LFO1");
                const var LFO1SHAPE = Synth.getTableProcessor("LFO 1");
                
                inline function onTable_LFO1Content(value) { overlayPanels[0].repaint(); }
                
                const var LFO1_TABLE_DATA = LFO1SHAPE.getTable(0);
                
                LFO1_TABLE_DATA.setContentCallback(onTable_LFO1Content);
                
                

                Both seems to wok equally well, however neither fire continuously, so the paint routine, for example, only repaints on mouse up. Is there any way to repaint continuously - tried setDisplayCallback but the table ruler triggered buggy behaviour

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                1 Reply Last reply Reply Quote 0
                • Oli UllmannO
                  Oli Ullmann @DanH
                  last edited by

                  @DanH
                  That is strange because I used it.
                  I will have a look when I'm at my computer.

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

                  31

                  Online

                  2.2k

                  Users

                  13.4k

                  Topics

                  117.0k

                  Posts