Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Requires Rust + SuperCollider. Just a quick little example to demonstrate how to pipe commands from SuperCollider to Rust using OSC.

Uses tokio, serde, serde-osc, and some dependent crates.

How to

In Terminal:

git clone https://github.com/andrewcsmith/osc_server_example.git
cd osc_server_example
cargo run

...once that's running, do this in SuperCollider:

~addr = NetAddr.new("127.0.0.1", 6667);
~addr.sendMsg("/freq", 440);
~addr.sendMsg("/freq", 441.1);

You should see "new_freq: 440" and "new_freq: 441.1".

Request for help: OSC Bundles

This particular SC code doesn't seem to work:

~addr = NetAddr.new("127.0.0.1", 6667);
~addr.sendBundle(0.0, ["/freq", 440.0]);

It throws an error saying that a String was expected instead of a sequence, but I can't tell exactly how that is happening.

About

Rust + SuperCollider via OSC + UDP

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.