Tempo-sync module: time available in GUI
-
Hi folks,
i just want to make the time in ms from a scriptnode tempo-sync module displayed in the main interface. How can i make it available there? I thought it might work with the global-send module, but i can't figure out, how. Any hints? :-) -
@toxonic there are scripting calls to convert tempo values to milliseconds so I would rather use them than sending the time value out of scriptnode.
-
@Christoph-Hart Yes, that might be a better option.
Nevertheless, could someone give a quick example, how to use global-send? Or what about global-cable? -
@toxonic I would be interested in that too, although I added a global cable and it shows up in the module tree.
-
-
@Christoph-Hart Thank you for the link, but i still don't get it. Most stuff in the documentation is related to OSC stuff, but im just trying to get the value sent via the cable "TestCable".
I thought this would work like in the following code, but i get an "undefined parameter" error, something seems to b wrong with the cable ID:Content.makeFrontInterface(600, 600); const var rm = Engine.getGlobalRoutingManager(); const var cable = rm.getCable(TestCable);
What am i missing?
-
@toxonic put TestCable in quotes, it‘s a string not a variable name.
-
@Christoph-Hart Ohh, awesome, that works fine. You can also specify the slot that way.
Content.makeFrontInterface(600, 600); const var rm = Engine.getGlobalRoutingManager(); const var cable = rm.getCable("Slot_01"); const var value = cable.getValue(); Console.print(value);
Thanks a lot! :-)