This is an implementation of the Open Sound Control protocol for the Odin programming language, wirtten in pure Odin.
Open Sound Control Spec v1.0 https://opensoundcontrol.stanford.edu/spec-1_0.html
Download or clone this repository and put the folder inside ODIN_ROOT/shared
ODIN_ROOT?
ODIN_ROOT is the path to the folder containing the Odin compiler executable (source). So, this path contains the folders for the core standard library, the vendor library and the shared folder for user defined libraries.
Create a project anywhere and import the library like this:
package main
import osc "shared:Open_Sound_Control"
main :: proc() {
buffer := [64]u8{}
some_value :: 15.5
_ = osc.message_create("/address", buffer[:], some_value)
}The library is still in development