Packages

A simple OSC transport layer for communicating with SuperCollider from Elixir. Provides low-level OSC messaging and node/group management for live coding and audio synthesis. Requires SuperCollider to be installed on your system.

Current section

Files

Jump to
waveform lib waveform osc udp.ex
Raw

lib/waveform/osc/udp.ex

defmodule Waveform.OSC.UDP do
@moduledoc """
Production OSC transport implementation using UDP.
This module sends actual OSC messages to SuperCollider via UDP.
"""
@behaviour Waveform.OSC.Transport
@impl true
def send_osc_message(state, address, args) do
# Encode and send the OSC message via UDP
:ok = :gen_udp.send(state.socket, state.host, state.host_port, :osc.encode([address | args]))
end
end