Forum
    • Categories
    • Register
    • Login

    Table Broadcaster

    Scheduled Pinned Locked Moved General Questions
    10 Posts 3 Posters 101 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 3 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
                  • Oli UllmannO
                    Oli Ullmann @DanH
                    last edited by

                    @DanH
                    I just checked. The function is still there...:

                    Table.setContentCallback(var contentFunction)
                    

                    But be careful: this function is only available for a Table, not for a ScriptTable. Maybe that's why you can't see it? To use it, you have to get the actual table, for example from an LFO.

                    However, the function only fires when adding, deleting, or changing a point. Can't you use a timer for something like a PaintRoutine?

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

                      @Oli-Ullmann Thanks, yeah potentially, will see what I can do :)

                      Cheers!

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

                      Christoph HartC 1 Reply Last reply Reply Quote 1
                      • Christoph HartC
                        Christoph Hart @DanH
                        last edited by

                        this function is only available for a Table, not for a ScriptTable.

                        yes HISE, good HISE.

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

                        17

                        Online

                        2.2k

                        Users

                        13.4k

                        Topics

                        117.0k

                        Posts