osc

package module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 5 Imported by: 0

README

codecov

A mostly complete OSC implementation and collection of command line OSC utilities written in Go. Mainly an exercise in learning Go.

Utilities

sendosc

NAME:
   sendosc - send OSC messages via UDP or TCP

USAGE:
   sendosc [global options]

GLOBAL OPTIONS:
   --host string                    host to send OSC message to
   --port int                       port to send OSC message to
   --protocol string                protocol to use to send (tcp or udp) (default: "udp")
   --address string                 OSC address
   --arg string [ --arg string ]    OSC args
   --type string [ --type string ]  OSC types
   --slip                           whether to slip encode the OSC Message bytes
   --help, -h                       show help

makeosc

NAME:
   makeosc - make osc bytes

USAGE:
   makeosc [global options]

GLOBAL OPTIONS:
   --address string                 OSC address
   --arg string [ --arg string ]    OSC args
   --type string [ --type string ]  OSC types
   --slip                           whether to slip encode the OSC Message bytes
   --help, -h                       show help

receiveosc

NAME:
   receiveosc - receive OSC messages via UDP or TCP

USAGE:
   receiveosc [global options]

GLOBAL OPTIONS:
   --ip string        ip to receive OSC messages on (default: "0.0.0.0")
   --port int         port to receive OSC messages on (default: 8888)
   --protocol string  protocol to use to receive (tcp or udp) (default: "udp")
   --format string    format for messages to be output in ('json') (default: "json")
   --slip             whether to slip encode the OSC Message bytes
   --help, -h         show help

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg added in v0.4.0

type Arg struct {
	Value any    `json:"value"`
	Type  string `json:"type"`
}

type Bundle added in v0.4.0

type Bundle struct {
	Contents []Packet `json:"contents"`
	TimeTag  TimeTag  `json:"timeTag"`
}

func BundleFromBytes

func BundleFromBytes(bytes []byte) (*Bundle, []byte, error)

func (*Bundle) ToBytes added in v0.4.0

func (b *Bundle) ToBytes() ([]byte, error)

type Color added in v0.4.0

type Color struct {
	// contains filtered or unexported fields
}

type Message added in v0.4.0

type Message struct {
	Address string `json:"address"`
	Args    []Arg  `json:"args"`
}

func MessageFromBytes

func MessageFromBytes(bytes []byte) (*Message, error)

func (*Message) ToBytes added in v0.4.0

func (m *Message) ToBytes() ([]byte, error)

type Packet added in v0.4.0

type Packet interface {
	ToBytes() ([]byte, error)
}

func PacketFromBytes added in v0.2.0

func PacketFromBytes(bytes []byte) (Packet, []byte, error)

type TimeTag added in v0.4.0

type TimeTag struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
cmd
makeosc command
receiveosc command
sendosc command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL