Table Broadcaster
-
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...
-
@DanH
There is a table callback.table.setContentCallback -
-
@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?
-
@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); }); -
@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
-
@DanH
That is strange because I used it.
I will have a look when I'm at my computer. -
@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 aScriptTable. 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?
-
@Oli-Ullmann Thanks, yeah potentially, will see what I can do :)
Cheers!
-
this function is only available for a Table, not for a ScriptTable.
yes HISE, good HISE.