Skip to main content
Effects in ambisonicPy define how a speaker moves or changes over time. They are applied using the Speaker.add_effect() method.

Structure

An effect is defined as a Python dictionary. It must always include a type key, which tells the renderer which handler to use.
{
    "type": "move",
    "start": (0, 1.57, 1.0),
    "end": (3.14, 1.57, 2.0)
}

Available Effects

Move

The move effect linearly interpolates the speaker’s position from a starting point to an ending point over the specified time range.
type
string
required
Must be set to "move".
start
tuple
required
The starting position: (azimuth, elevation, distance).
end
tuple
required
The ending position: (azimuth, elevation, distance).
Coordinate System:
  • Azimuth: Horizontal angle in radians (00 to 2π2\pi).
  • Elevation: Vertical angle in radians (π/2\pi/2 is directly in front/horizontal).
  • Distance: Scalar value (1.0 is standard distance).