Update
OSCReceiveListUpdater
Bases: ReceiveListUpdater
ReceiveListUpdater with an OSC handler
Source code in src/tolvera/osc/update.py
OSCReceiveUpdater
Bases: ReceiveUpdater
ReceiveUpdater with an OSC handler
Source code in src/tolvera/osc/update.py
receive(address, *args)
v: first argument to the handler is the IP:port of the sender v: or you can use dispatcher.map directly and not set needs_reply_address=True j: can I get ip:port from osc itself? v: if you know the sender ahead of time yeah, but that lets you respond to different senders dynamically
Source code in src/tolvera/osc/update.py
OSCReceiveUpdaters
o = OSCReceiveUpdaters(osc, {"/tolvera/particles/pos": s.osc_set_pos, "/tolvera/particles/vel": s.osc_set_vel})
Source code in src/tolvera/osc/update.py
OSCSend
Non rate-limited OSC send
Source code in src/tolvera/osc/update.py
OSCSendUpdater
Rate-limited OSC send
Source code in src/tolvera/osc/update.py
OSCSendUpdaters
o = OSCSendUpdaters(osc, client="particles", count=10, sends={ "/tolvera/particles/get/pos/all": s.osc_get_pos_all })
Source code in src/tolvera/osc/update.py
OSCUpdaters
o = OSCUpdaters(osc, client="boids", count=10, receives={ "/tolvera/boids/pos": b.osc_set_pos, "/tolvera/boids/vel": b.osc_set_vel }, sends={ "/tolvera/boids/pos/all": b.osc_get_all_pos } )
Source code in src/tolvera/osc/update.py
ReceiveListUpdater
Decouples event handling from updating Updating is rate-limited by a counter Assumes a list[float] instead of *args
Source code in src/tolvera/osc/update.py
__call__()
Update the target function with internal state
Source code in src/tolvera/osc/update.py
ReceiveUpdater
Decouples event handling from updating Updating is rate-limited by a counter TODO: Rename to ReceiveArgsUpdater?
Source code in src/tolvera/osc/update.py
__call__()
Update the target function with internal state
Source code in src/tolvera/osc/update.py
Updater
Rate-limited function call