osc

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 6 Imported by: 0

README

A collection of command line OSC utilities written in Go. Mainly an exercise in learning Go.

sendosc

makeosc

receiveosc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSCArg

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

type OSCBundle

type OSCBundle struct {
	Contents []OSCPacket `json:"contents"`
	TimeTag  OSCTimeTag  `json:"timeTag"`
}

func BundleFromBytes

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

func (*OSCBundle) ToBytes

func (b *OSCBundle) ToBytes() []byte

type OSCColor

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

type OSCMessage

type OSCMessage struct {
	Address string   `json:"address"`
	Args    []OSCArg `json:"args"`
}

func MessageFromBytes

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

func (*OSCMessage) ToBytes

func (m *OSCMessage) ToBytes() []byte

type OSCPacket

type OSCPacket interface {
	ToBytes() []byte
}

func PacketFromBytes added in v0.2.0

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

type OSCTimeTag

type OSCTimeTag 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