Spatial Dramaturgy Composer - Compositional Spatial Form

Compose large-scale spatial behaviour from musical form. A dramaturgical curve drives spread, distance, movement, instability, elevation, peripheralisation, and fragmentation, while the script derives the trajectories and renders the result offline.

Author: Shai Cohen Affiliation: Department of Music, Bar-Ilan University, Israel Version: 1.2 (2026) Category: Spatial & Surround License: MIT License Repo: Praat AudioTools
Contents:

What this does

Spatial Dramaturgy Composer treats space as part of musical form rather than as a sequence of manually drawn pan positions. A normalized dramaturgical curve D(t) from 0 to 1 controls seven spatial dimensions, from focus and distance to motion, elevation, and fragmentation.

dramaturgical form → spatial state → trajectories → multichannel sound

You shape the large-scale spatial behaviour; the script derives the detailed trajectories. This makes it possible to compose forms such as intimacy → expansion → fragmentation → collapse without drawing every path by hand.

Quick start

  1. Select exactly one Sound in Praat. You may also select one RealTier if you want to use it as a drawn dramaturgical curve.
  2. Run Spatial_Dramaturgy_Composer.praat.
  3. Choose Draw, Analyze source, or Archetype.
  4. Choose a Spatial strategy, Character, and output format.
  5. Enable Show details only when you want to edit analysis weights, fragmentation, custom mappings, or output settings.

Main controls

ControlDefaultWhat it changes
DramaturgyArchetypeChoose a drawn curve, automatic source analysis, or a predefined macro-form.
ArchetypeArchSelect one of 14 large-scale dramaturgical shapes.
Spatial strategyAutoDetermines how dramaturgy is translated into spatial behaviour.
CharacterDramaticControls the overall strength of the spatial transformation: Subtle, Moderate, Dramatic, or Radical.
Output8-channel ringStereo, Quad, 8-channel ring, custom speaker ring, or first-order Ambisonics.
Max agents4Sets the maximum number of independently moving spatial layers.
Random seed30217Lets stochastic motion be reproduced exactly.
Draw visualisationOnDraws the dramaturgy and spatial evolution in the Praat Picture window.
Play resultOnPlays the rendered Sound after processing.

Dramaturgy sources

Draw

Use a RealTier as the dramaturgical curve, or let the script create a starter curve that you can edit before rendering.

Analyze source

Derives the dramaturgical curve from changes in the sound itself, using weighted acoustic features and smoothing.

Archetype

Uses a predefined large-scale shape. Archetype strength controls how strongly the shape is expressed.

Auto strategy

Chooses a spatial strategy suited to the selected archetype. Drawn and analyzed curves use a general expressive mapping by default.

Available archetypes

Expansion · Implosion · Arch · Inverted Arch · Ascent · Descent · Encirclement · Fragmentation · Convergence · Dissolution · Accumulation · Shock · Waves · Chaotic Escalation.

Analyze Source

Analyze Source creates a dramaturgical curve from several acoustic cues. You can adjust their weights in Show details.

DescriptorDefault weightMusical role
Intensity1.0Energetic level.
Spectral brightness0.7Dark-to-bright spectral movement.
Spectral change0.8Amount of timbral change over time.
Activity density0.6Density of local activity and attacks.
Noisiness0.4Noise-like versus harmonic character.
Pitch instability0.0Optional local F0 variation; useful mainly for pitched material.
Interpretation: the analysis is source-relative. It follows where a sound becomes more or less active, bright, changing, noisy, or unstable within that file; it is not an absolute measure of perceived musical tension.

The seven spatial dimensions

DimensionLow valueHigh value
SpreadFocused / point-likeWide spatial dispersion
DistanceNearFar
Movement rateStaticFast motion
IrregularitySmooth / stableUnstable / stochastic
ElevationHorizontal / lowElevated
PeripheralisationFront / centreSides / rear
FragmentationOne coherent sourceSeveral spatial agents

Custom mapping

In Custom mapping, each spatial dimension can have its own range, direction, response curve, and influence. This is useful when you want a very specific relationship between dramaturgy and space.

min max direction curve influence

Example:

0.05 0.95 + sig 1

Direction can be +, -, or =. Available response curves are lin, exp, log, sig, thr, step, and rnd.

A climax does not have to become wider or more active. You can invert any mapping so that increasing dramaturgy produces contraction, stillness, or convergence instead.

Spatial strategies

Intimate to Overwhelming · Compression · Explosion · Breathing Space · Orbiting Tension · Fragmented Climax · Frozen Climax · Vertical Drama · Peripheral Anxiety · Dissolution · Swarm · Radical · Custom mapping.

These strategies are starting points rather than fixed aesthetics. Character and detailed mappings let you make the same dramaturgical curve subtle, extreme, expanding, contracting, mobile, or nearly static.

Fragmentation

When fragmentation rises, the sound can separate into several spatial agents rather than remaining one coherent moving source. Three methods are available:

Frequency bands

Different spectral regions become independent spatial agents. This is the default method.

Temporal slices

Different time slices are distributed among moving agents, producing a more articulated spatial breakup.

Delayed copies

Short delayed versions of the source create a denser, more diffuse spatial image. Tonal material may acquire additional phase coloration.

Output formats

Speaker outputs

Stereo, Quad, 8-channel ring, and custom 3-32 speaker rings use amplitude spatialisation. Stereo is a left/right projection, so front and rear positions cannot remain distinct.

First-order Ambisonics

FOA output is encoded as AmbiX, ACN W Y Z X, SN3D. It requires an Ambisonic decoder for loudspeaker or binaural playback.

Distance and elevation

Distance changes apparent level and diffuseness; it does not simulate physical propagation, air absorption, or Doppler effects. Elevation is represented directly in FOA. Horizontal speaker rings cannot reproduce true height.

Level management

The default output normalization targets a peak of -1 dBFS while preserving the balance between channels. You can also leave the level unchanged with clipping protection.

Visualisation: the spatial score

The Picture-window display shows how the dramaturgical curve becomes spatial behaviour.

Output

The script creates the final rendered multichannel Sound and leaves the original source unchanged.

If you supply your own RealTier as the dramaturgical curve, it is preserved. Multichannel input is averaged to mono before the new spatial image is created.

Performance

Long rendering times are normal. Processing becomes slower with longer source files, more output channels, and more spatial agents.

If you want a faster first test, use a short excerpt, fewer agents, or a smaller output layout. The optional measured-energy visualisation also adds extra processing.

Limitations

Musical use

Examples of large-scale spatial forms include:

The central idea is simple: space can carry musical form rather than merely display it.