I’m writing a C++ DAT that handles the logic/internal state of my application. The C++ code generates a table, which is then used as the input for the artwork.
I’m now at a point where the C++ DAT also needs to generate some OSC (based on internal state that is not reflected in the table it generates). I’d like to send these OSC messages through an OSC Out DAT, as other parts of my patch also use this DAT to send OSC. Everywhere else in my TD patch I simply call the python function op('oscout1').sendOSC('/path/to/send/to', [value]) to send something. Is it possible to call this from C++?
The alternatives would be to either put the OSC messages+values in the C++ DAT table, or implement OSC in the C++ DAT and reroute everything through the C++ DAT. Both possible, but requiring more work.