Repository navigation
Conversation
|
Visual regression: 1 changed of 43 cases
If these changes are intentional, add the baseline |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
first attempt for #179, adds OSC over UDP for Rust and Python
API
osc_listen(port): starts listening for OSC messages onportand returns the port. fails with an error if the port is already in use.osc_send(host, port, address, args...): sends one message, e.g.osc_send("127.0.0.1", 12000, "/mouse", 0.5, 0.25).osc_read(): returns every message received since the last call, oldest first. it can be called every frame likemidi_read().osc_stop(): stops listening and closes the port.osc_read()gives an error untilosc_listen()is called again.OscMessageobjects withaddress,args,typetag(e.g."ff"for two floats),hostandport.str(msg)gives a readable form like/mouse 0.52 0.25.Changes
crates/processing_osc/crates/processing_core/src/error.rssrc/lib.rs,src/prelude.rs: addOscPluginand export theosc_*functionscrates/processing_pyo3/src/osc.rs: converts Python values to OSC types, defines theOscMessageclass &&crates/processing_pyo3/src/lib.rs: registers the Python functions andOscMessageexamples/osc.rsandcrates/processing_pyo3/examples/osc.pyroscinstead ofnannou_osc, sincenannou_oscdoesn't have a Bevy plugin. we could probably switch later without changing the API!some limitations
tested on macOS with TouchDesigner
LLM use: wrote the crate and bindings, reviewed the API, and wrote first version of example code with Claude Code