docs(osc): document dual /data/pose listeners
This commit is contained in:
@@ -100,6 +100,8 @@ def _build(state: State) -> dispatcher.Dispatcher:
|
||||
with state.lock(): state.social_rate = float(args[0])
|
||||
d.map("/data/bluesky/rate", _social)
|
||||
|
||||
# NOTE: sound_algo/control/data_feeds.scd also listens to /data/pose/{count,skel}
|
||||
# for sonification. Both consumers are intentional. Do NOT consolidate.
|
||||
def _pose_count(addr, *args):
|
||||
if args:
|
||||
with state.lock():
|
||||
|
||||
@@ -185,6 +185,10 @@
|
||||
\sho_l, \sho_r, \elb_l, \elb_r, \wri_l, \wri_r,
|
||||
\hip_l, \hip_r, \kne_l, \kne_r, \ank_l, \ank_r];
|
||||
|
||||
// NOTE: /data/pose/count and /data/pose/skel are ALSO consumed by
|
||||
// data_only_viz/osc_listener.py for Metal rendering. This is intentional —
|
||||
// both subsystems update their own state. Do NOT consolidate; they live
|
||||
// in different processes.
|
||||
~feedDefPriv.(\d_pose_count, '/data/pose/count', { |msg|
|
||||
~feedSet.(\pose_count, msg[1]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user