MCPcopy Index your code
hub / github.com/72nd/osc-utility

github.com/72nd/osc-utility @v1.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.1 ↗ · + Follow
13 symbols 27 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

osc-utility

osc-utility is a simple CLI tool for testing the Open Sound Control (OSC) connections. The utility can send OSC command as well as spawn a OSC server to listen to messages from other OSC-enabled devices.

Installation

Just head to the release section on the right and download the executable for your system. You can then execute it right away.

Usage

You can get more-detailed help by calling osc-utility --help, osc-utility message --help and osc-utility server --help.

Send a message

To send a message to /channel/1/255 using the default host (localhost) and the port 9000:

```shell script osc-utility message --address /channel/1/255 --port 9000


OSC allows to sending a payload which can be either a string (text), int, float or bool. Remember to put strings containing spaces into quotes: 

```shell script
# String
osc-utility messsage --address /channel/1 --port 9000 --string "Hello World"

# Int
osc-utility messsage --address /channel/1 --port 9000 --int 23

# Float
osc-utility messsage --address /channel/1 --port 9000 --float 23.5

# Bool
osc-utility messsage --address /channel/1 --port 9000 --bool true

OSC Messages can contain multiple values of the same type. Osc-utility allows this by separate this values by comma (do not insert any whitespace between the elements):

```shell script

Send the values "Hello World", "Foo", and "Bar"

osc-utility messsage --address /channel/1 --port 9000 --string "Hello World,Foo,Bar"


Naturally it's possible to send values of multiple types at the same time:

```shell script
osc-utility messsage --address /channel/1 --port 9000 --string "Foo,Bar" -int 23,5

Receive messages (Server Mode)

To run a OSC server on the default host (localhost) on port 9000 run:

shell script osc-utility server --port 9000

You will now see all incoming messages.

Core symbols most depended-on inside this repo

Serve
called by 1
src/server.go
promptForExit
called by 1
src/server.go
SetStrings
called by 1
src/message.go
SetIntegers
called by 1
src/message.go
SetFloats
called by 1
src/message.go
SetBooleans
called by 1
src/message.go
Send
called by 1
src/message.go
main
called by 0
main.go

Shape

Method 6
Function 5
Struct 2

Languages

Go100%

Modules by API surface

src/message.go6 symbols
src/server.go4 symbols
main.go3 symbols

For agents

$ claude mcp add osc-utility \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page