Proposal for streamlining GUI-Pd communication
-
Looks good. A few points:
-
If threading can be completely avoided, it should. For example-- if we can get away with just offloading more of the work to the GUI to avoid the wasted audio process cycles, that will be way easier to reason about than implementing a caching system in a separate thread of the audio process.
-
There may be some hidden edge cases to consider when moving logic out of the audio process. For example, the "hold" attribute of
[bng]
will trigger its animation at a moment that is sync'd perfectly with any other clock callbacks in Pd. If we move the hold animation to the GUI it may be slightly off by a few ms because it no longer gets timed by Pd but by the Javascript engine.
-
Please register or sign in to comment