Is this the problem that Purr-data and CICM tried to solve?
Purr Data uses a generic interface for speaking to the GUI.
The spec for Purr Data's communication from Pd to the GUI is here:
https://git.purrdata.net/jwilkes/purr-data/tree/master#gui-messaging-specifi...
-Jonathan