ICST AmbiEncoder – OSC Syntax

OSC Syntax for the ICST AmbiEncoder Plugin

Level: Advanced | Audience: Technician, Developer, Max/OSC user.

The ICST AmbiEncoder supports OSC and JavaScript, enabling seamless communication with OSC tools such as TouchOSC, IanniX, MaxMSP, and other OSC-enabled software. This page is the syntax reference. For a practical quickstart and debugging sequence, use:

OSC Syntax & Address Specification

1. Accessing OSC Specifications

Click the question mark in the ICST AmbiEncoder. osc-in-help

Figure: OSC specifications in the Help section.

Available sections:

  • Help (?)
  • OSC Syntax
  • Sections

2. Incoming OSC Messages

/icst/ambi/sourceindex/aed145100.8namespacesource = name (symbol)sourceindex = index (int)formataed or xyzindexintegerazimuthdegreeselevationdegreesdistance0 to 1Example: /icst/ambi/sourceindex/aed 1 45 10 0.8AED (azimuth, elevation, distance)XYZ (cartesian)by name(symbol)/icst/ambi/source/aed'S1' 45 10 0.8/icst/ambi/source/xyz'S2' 0.2 0.2 0.0by index(integer, 1-based)/icst/ambi/sourceindex/aed1 45 10 0.8/icst/ambi/sourceindex/xyz2 0.2 0.2 0.0
Anatomy of an OSC message: namespace, target, format, then the arguments. With xyz the arguments are x, y, z instead of azimuth, elevation, distance.

Messages can be:

  • Index-based (source index), e.g., 1
  • Name-based (source name), e.g., flute

Set Source Position (AED Format)

	/icst/ambi/source/aed [ChannelName] [Azimuth] [Elevation] [Distance]
	/icst/ambi/source/aed 'S1' 45 10 0.8

Set Source Position (XYZ Format)

	/icst/ambi/source/xyz [ChannelName] [X] [Y] [Z]
	/icst/ambi/source/xyz 'S2' 0.2 0.2 0.0

Note: The channel name (e.g S1, S2) will be sent as symbol.

Set Source (Index) Position (AED Format)

/icst/ambi/sourceindex/aed [ChannelIndex] [Azimuth] [Elevation] [Distance]
/icst/ambi/sourceindex/aed 1 45 10 0.8

Set Source (Index) Position (XYZ Format)

/icst/ambi/sourceindex/xyz [ChannelIndex] [X] [Y] [Z]
/icst/ambi/sourceindex/xyz 2 0.2 0.2 0.0

Note: Channel indices are sent as integers.


Sending Positions for External Usage

  1. Open the ‘OSC Out’ tab.

OSC IN-OUT

Note: The ICST AmbiPlugins standard format sends source names as symbols. Max users should define a Custom OSC Message:

/icst/ambi/sourceindex/xyz {i} {x} {y} {z}
/icst/ambi/sourceindex/aed {i} {a} {e} {d}

OSC-Out

Figure: Custom ‘OSC Out’ Editor

Internal OSC Communication

To send all AmbiEncoder movements to the ICST AmbiDecoder:

  1. Deactivate Speaker Edit Mode in the AmbiDecoder.
  2. Activate the OSC port.

Edit_off

Intern_osc_port

OSC_internal

Now, the AmbiDecoder receives all OSC messages from all connected AmbiEncoders.



Complete OSC reference (from the GitHub source code)

Derived from the plugin source code (OSCHandlerEncoder.h/.cpp). Adds all further supported addresses to the standard messages documented above.

Sources – by name

OSC addressArgumentsTypeDescription
/icst/ambi/source/aed[Name] [A] [E] [D]string, float, float, floatSet position (azimuth/elevation/distance) by source name
/icst/ambi/source/xyz[Name] [X] [Y] [Z]string, float, float, floatSet position (Cartesian) by source name
/icst/ambi/source/gain[Name] [Gain_dB]string, floatSet gain by source name

Sources – by index

OSC addressArgumentsTypeDescription
/icst/ambi/sourceindex/aed[Index] [A] [E] [D]int, float, float, floatSet position (AED) by source index (1-based)
/icst/ambi/sourceindex/xyz[Index] [X] [Y] [Z]int, float, float, floatSet position (XYZ) by source index (1-based)
/icst/ambi/sourceindex/gain[Index] [Gain_dB]int, floatSet gain by source index
/icst/ambi/sourceindex/name[Index] [Name]int, stringSet source name by index

Groups

OSC addressArgumentsTypeDescription
/icst/ambi/group/aed[Name] [A] [E] [D] [MovePoints]string, float, float, float, intSet group position (AED); MovePoints: 0 = group only, 1 = with sources
/icst/ambi/group/xyz[Name] [X] [Y] [Z] [MovePoints]string, float, float, float, intSet group position (XYZ); MovePoints: 0/1
/icst/ambi/group/rotate[Name] [Rx] [Ry] [Rz]string, float, float, floatRotate group relatively (Euler, degrees)
/icst/ambi/group/setrotation/euler[Name] [Rx] [Ry] [Rz]string, float, float, floatSet absolute group rotation (Euler, degrees)
/icst/ambi/group/setrotation/quaternion[Name] [q1] [q2] [q3] [q4]string, float×4Set absolute group rotation (quaternion)
/icst/ambi/group/rotateorigin[Name] [Rx] [Ry] [Rz] [MovePoints]string, float, float, float, intRotate group around the origin
/icst/ambi/group/stretch[Name] [Factor]string, floatStretch/compress group relatively
/icst/ambi/group/setstretch[Name] [Factor]string, floatSet absolute group stretch

Distance encoding – single parameters

OSC addressArgumentsTypeDescription
/icst/ambi/distanceencoding/mode[Mode]intMode: 0=Standard, 1=Advanced, 2=Exponential, 3=InverseProportional
/icst/ambi/distanceencoding/unitcircle[Radius]floatUnit circle radius
/icst/ambi/distanceencoding/dbunit[dB]floatdB unit for distance encoding
/icst/ambi/distanceencoding/distanceattenuation[Value]floatDistance attenuation (Inverse Proportional only)
/icst/ambi/distanceencoding/centercurve[Value]floatCenter curve parameter
/icst/ambi/distanceencoding/advancedfactor[Value]floatAdvanced factor
/icst/ambi/distanceencoding/advancedexponent[Value]floatAdvanced exponent

Distance encoding – combined presets

OSC addressArgumentsTypeDescription
/icst/ambi/distanceencoding/standard[UnitCircleRadius]floatSet Standard mode + unit circle
/icst/ambi/distanceencoding/advanced[UnitCircle] [Factor] [Exponent]float, float, floatAdvanced mode with 3 parameters
/icst/ambi/distanceencoding/exponential[UnitCircle] [dBUnit] [CenterCurve]float, float, floatExponential mode with 3 parameters
/icst/ambi/distanceencoding/inverseproportional[UnitCircle] [dBUnit] [CenterCurve] [DistAttn]float, float, float, floatInverse Proportional mode with 4 parameters

OSC Out – custom message formats

FormatDescription
/icst/ambi/sourceindex/xyz {i} {x} {y} {z}Position output by index (XYZ)
/icst/ambi/sourceindex/aed {i} {a} {e} {d}Position output by index (AED)

MuseScore SSMN compatibility

OSC addressArgumentsDescription
/aed[CH] [A] [E] [D] [CH_check]MuseScore SSMN format (int, float, float, float, int)

Diagrams and explainer videos created with the help of Claude (Anthropic). →