Expand description
Tools for working with OSC. sender() creates an OSC sender, receiver(port) creates an OSC receiver.
Re-exports§
Modules§
- address
- Address checking and matching methods
- decoder
- Provides a decoding method for OSC packets.
- encoder
- Encodes an
OscPacketto a byte vector. - recv
- Items related to the
osc::Receiverimplementation. - send
- Items related to the
osc::Senderimplementation.
Structs§
- Array
- An OscArray color.
- Bundle
- An OSC bundle contains zero or more OSC packets and a time tag. The contained packets should be applied at the given time tag.
- Color
- An RGBA color.
- Connected
- Indicates that a
Senderis currently connected to a specific target address. - Message
- An OSC message consists of an address and zero or more arguments. The address should specify an element of your Instrument (or whatever you want to control with OSC) and the arguments are used to set properties of the element to the respective values.
- Midi
Message - Represents the parts of a Midi message. Mainly used for tunneling midi over a network using the OSC protocol.
- Time
- A time tag in OSC message consists of two 32-bit integers where the first one denotes the number of seconds since 1900-01-01 and the second the fractions of a second. For details on its semantics see http://opensoundcontrol.org/node/3/#timetags
- Time
Error - An error returned by conversions involving
OscTime. - Unconnected
- Indicates that a
Senderis not currently connected to a target address, and that the target address will have to be supplied manually when sending packets.
Enums§
- Communication
Error - Errors that might occur whilst attempting to send or receive an OSC packet.
- Error
- Represents errors returned by
decodeorencode. - Packet
- An OSC packet can contain an OSC message or a bundle of nested packets which is called an OSC bundle.
- Type
- see OSC Type Tag String: OSC Spec. 1.0 padding: zero bytes (n*4)
Functions§
- decode
- Decodes the given slice of
bytesinto aPacket. - default_
ipv4_ addr - The default local IP address.
- encode
- Encodes the given
Packetinto aVecof bytes. - msg
- A simplified constructor for an OSC
Message. - receiver
- A simple wrapper around the most commonly used
Receiverconstructor. - sender
- A simple wrapper around the most commonly used
Senderconstructor.