Skip to content
Hans Lindetorp edited this page Oct 25, 2023 · 1 revision

OSC

Experimental (not available in public release)

WAXML can be configured to receive OSC messages from a specified address. Those messages can trig and stop envelopes, audioBuffers etc. (please see Trig and stop or set a variable (see var).

// To trig the envelope below, the OSC application emits the following string
"/waxml/trig/env_trig"

// To stop the envelope below, the OSC application emits the following string
"/waxml/stop/env_trig"

// To set the variable 'var1' below to 100, the OSC application emits the following string
"/waxml/set/var1/100"
<Audio 
    xmlns="https://www.w3schools.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="https://www.w3schools.com https://momdev.se/lindetorp/waxml/scheme_1.16.xsd"

    version="1.0" 
    timeUnit="ms" 
    gain="0dB"
    controls="true"
    osc="localhost:3000>

    <var name="var1" />
    <Envelope ADSR="0,10,50,30" trig="env_trig" stop="env_stop" max="1" />
</Audio>
Clone this wiki locally