ASA Demos — User Guide

Synthetic pedagogical demonstrations of sequential auditory grouping, rate-dependent stream segregation, pattern organization, cumulative streaming, melody tracking, compound melody, and interlocking pitch streams.

Author: Shai Cohen Affiliation: Department of Music, Bar-Ilan University, Israel Version: 2.1 (2026) License: MIT License Category: Acoustic / Psychoacoustic Demonstrations Repo: Praat AudioTools
Contents:

What this does

ASA Demos generates ten self-contained synthetic listening demonstrations organized around eight auditory-scene-analysis topics. The script is intended for teaching and exploratory listening. It does not measure a listener's percept, estimate a psychophysical threshold, or reproduce the original published recordings.

What is auditory scene analysis? Auditory scene analysis describes how listeners organize overlapping acoustic events into perceptual streams or auditory objects. These demonstrations focus on sequential grouping cues such as frequency separation, rate, repetition, continuity, and pitch range. The perceptual overlays in the visualization are explicitly hypotheses about possible grouping, not measurements of the listener.
Scope: Demos 6–8 are synthetic models of the relevant perceptual principles. Demo 6 is not the original Telemann recording, and Demos 7–8 are not reproductions of source amadinda recordings. The script should therefore be described as a pedagogical stimulus generator, not as a validated clinical, audiological, neuroimaging, or historical-reconstruction protocol.

Outputs

Each run creates one mono Sound at 44.1 kHz, scales its peak to 0.99, optionally draws the AudioTools visualization, and optionally plays the result. No input Sound or external audio file is required.

Quick start

  1. Run ASA Demos.praat in Praat. No Sound object needs to be selected.
  2. Choose one of the ten entries under Experiment Type.
  3. Leave Show visualization enabled to draw the 2×2 process/stimulus display.
  4. Leave Show spectrogram enabled for a measured spectrogram in Panel D; disable it to show a measured waveform instead.
  5. Use Play result to control automatic playback.
  6. Click OK. The generated Sound remains in the Objects list.
Listening: The demonstrations are easiest to compare with a stable playback level and repeated listening. Headphones are useful but are not required by the signal design because all current outputs are mono and contain no spatialization cues.

Demonstrations

1. Stream Segregation (Rate)

Slow versus fast repetition of the same six-tone cycle

Cycle: H1–L1–H2–L2–H3–L3, with high tones at 2500, 2000, and 1600 Hz and low tones at 350, 430, and 550 Hz.

Level relation: low tones are generated 6 dB stronger than high tones before final peak scaling.

Structure: four cycles with 400 ms tones, 1 s silence, then sixteen cycles with 100 ms tones. Total output duration: 20.200 s.

Listening idea: compare integrated sequential hearing at the slower rate with the stronger possibility of high/low stream segregation at the faster rate.

Output: Demo_1_StreamSegregation

2a. Pattern Recognition (Within-Stream)

Three-tone standard inside a six-tone family

Standard: three high tones separated by equal 100 ms silences. The six-tone comparison alternates high and low members of the same frequency family.

Timing: 100 ms per tone or silent slot. The standard is repeated 15 times, followed by 1 s silence, then the full cycle repeated 15 times.

Level relation: low tones are 1.5 dB stronger than high tones before final peak scaling.

Purpose: illustrates how a pattern can remain associated with members of one putative stream when interleaved with another frequency range.

Output: Demo_2_Within; total duration 19.000 s.

2b. Pattern Recognition (Across-Stream)

Pattern membership crosses the high/low grouping

The standard and full six-tone cycle use the same 100 ms event grid and the same high/low level relation as Demo 2a, but the target pattern assigns one of its members to the low-frequency range. The comparison is designed to contrast within-stream and across-stream pattern organization.

Output: Demo_2_Across; total duration 19.000 s.

3a. Loss of Rhythm (Large Separation)

Accelerating HLH-gap cycle

Frequencies: H = 1400 Hz, L = 500 Hz. The separation is about 17.8 semitones.

Cycle: H–L–H–silence, with all four units having the same duration inside each cycle.

Tempo law: 20 cycles. Unit duration follows an exponential progression from 287 ms on cycle 1 to 88 ms on cycle 20, so the requested endpoint is actually reached.

Listening idea: at faster rates, frequency-based grouping can compete with the four-unit galloping pattern.

Output: Demo_3_LargeSeparation; duration approximately 13.548 s.

3b. Loss of Rhythm (Small Separation)

Same acceleration with close frequencies

Frequencies: H = 1400 Hz, L = 1320 Hz, about one semitone apart. The cycle and 287→88 ms exponential timing law are identical to Demo 3a.

Listening idea: compare the persistence of the HLH-gap rhythm when the two pitch ranges are much closer.

Output: Demo_3_SmallSeparation; duration approximately 13.548 s.

4. Cumulative Effects of Repetition

Build-up across longer uninterrupted HLH blocks

Frequencies: high = 2000 Hz; low = 700 Hz. Low tones are generated 6 dB stronger.

Cycle: H (113 ms), 12 ms gap, L (113 ms), 12 ms gap, H (113 ms), then 125 ms silence.

Blocks: 2, 4, 8, 16, and 32 uninterrupted cycles, separated by 4 s silence.

Listening idea: provides progressively longer exposure to the same repeating pattern so that possible build-up of streaming can be compared across blocks.

Output: Demo_4_Cumulative; duration 46.256 s.

5. Melody from Interference

Five transposed melody passes against unchanged distractors

Melody: a fixed 16-note semitone pattern relative to C4 = 256 Hz.

Presentations: the melody is shifted by +0, +2, +4, +6, and +8 semitones over five passes.

Distractors: a fixed random-like 16-value offset pattern is generated once relative to the untransposed melody and reused unchanged in every pass. There is no runtime randomness.

Timing: each melody or distractor event contains 120 ms tone + 23 ms silence, giving an event interval of 143 ms (about 7 events/s). Melody and distractor events alternate. Passes are separated by 500 ms silence.

Listening idea: as the melody moves away from the stationary distractor region, pitch proximity and continuation cues change.

Output: Demo_5_Melody; duration 24.880 s.

6. Telemann-style Compound Melody Model

Synthetic fixed-upper / changing-lower alternation

The 16-note synthetic measure alternates a repeated G5 with changing lower notes: G5–E5–G5–C5–G5–D5–G5–B4–G5–C5–G5–A4–G5–B4–G5–G4.

Structure: two slow measures at 250 ms/note, 1 s silence, then four fast measures at 100 ms/note.

Listening idea: at the faster rate, the repeated upper note can support a separate-stream interpretation from the moving lower line.

Output: Demo_6_TelemannModel; duration 15.400 s.

7. Amadinda-style Interlocking Model

Synthetic two-player equipentatonic interlock

The model uses a five-step equal division of the octave with 240-cent spacing from a 350 Hz base. The current pattern uses f1, f3, f4, and f5 from that grid.

Player A: f1 – silence – f3 – silence. Player B: silence – f4 – silence – f5. Each part is heard alone for eight cycles, followed by the other part, then a 16-cycle combined interlock f1–f4–f3–f5.

Timbre: decaying sinusoidal xylophone model sin(2πft) × exp(-40t) with a 2 ms attack ramp. Each slot lasts 120 ms.

Event rates: each player contributes about 4.17 events/s; the combined sequence is about 8.33 events/s.

Output: Demo_7_AmadindaModel; duration 17.360 s.

8. Amadinda-style Pitch-Range Separation

Same interlock with Part B shifted upward

The timing, player ownership, and synthesis are identical to Demo 7, but f4 and f5 used by Part B are multiplied by 2. This introduces an octave displacement of Part B while preserving its pattern.

Listening idea: compare player-based grouping when the two parts occupy overlapping versus more separated pitch ranges.

Output: Demo_8_PitchSepModel; duration 17.360 s.

Visualization

With Show visualization enabled, each demonstration draws a 2×2 AudioTools display. The panels are not identical across demos; each is chosen to show the relevant stimulus structure and control variable.

What the four panels represent

A — Physical stimulus/model: an exact or explicitly excerpted representation of the generated event pattern.

B — Grouping hypothesis or comparison: a short visual account of the organization the demonstration is designed to make available. This is not listener data.

C — Control law: the manipulated variable, such as rate, repetition count, transposition, or event rate.

D — Measured output: a spectrogram of a relevant excerpt when Show spectrogram is on, otherwise a measured waveform of that excerpt.

Excerpt labels: Demo 5 Panels A/B intentionally show the first eight melody–distractor pairs of Passes 1 and 5, while Panel D measures the complete fifth pass excerpt. Demo 6 Panels A/B intentionally show the first eight notes of the slow and fast models. These panels are labeled as excerpts rather than as complete presentations.

Implementation

Tone generation

Pure-tone events

Most demonstrations use a mono sine wave at the requested frequency and duration. Linear rise/fall ramps are applied to reduce event-boundary clicks, followed by a per-event amplitude multiplier.

tone(t) = gain × sin(2π f t) × linear_ramp(t)

Xylophone-style events

Demos 7–8

x(t) = sin(2π f t) × exp(-40 t)

A 2 ms linear fade-in is applied. This is a simple synthetic decay model, not a physical model of a specific instrument or recording.

Amplitude and final scaling

gainHigh = 1.0. For Demos 1 and 4, gainLow = 10^(6/20), so low tones are +6 dB relative to high tones before final scaling. For Demo 2, low tones are +1.5 dB. At the end of every run the complete output is peak-scaled to 0.99; this preserves the internal level ratios but does not preserve the pre-scaling absolute peak.

Randomness and reproducibility

The current script contains no random draw that affects the generated sound. Demo 5's distractor sequence is a fixed “random-like” table embedded in the code and reused for all five passes. Re-running the same menu choice therefore produces the same stimulus.

Channels and external resources

All current outputs are mono. The script does not load source recordings or other external files.

Controls & fixed settings

User controls

ControlDefaultBehavior
Experiment TypeDemo 1Selects one of ten menu entries covering eight demo families.
Show visualizationOnDraws the four-panel AudioTools display.
Show spectrogramOnUses a measured spectrogram in Panel D; when off, Panel D shows a measured waveform.
Play resultOnAutomatically plays the generated Sound after processing.

Fixed global settings

SettingValueMeaning
Sample rate44,100 HzUsed for all generated Sounds.
High-tone gain1.0Reference event amplitude before final scaling.
Low-tone compensation, Demos 1 & 4+6 dB10^(6/20) relative to high tones.
Low-tone compensation, Demo 2+1.5 dB10^(1.5/20) relative to high tones.
Short tone ramp10 msDefault linear rise/fall used by several tone procedures; some demos specify their own attack/release values.
Final peak0.99Applied to the complete generated output.

Educational use

Listening questions

  • Does a repeated sequence sound like one integrated pattern or more than one stream?
  • How does increasing rate change the organization you hear?
  • Does a rhythmic pattern become harder to follow when its tones occupy widely separated frequency regions?
  • Does prolonged repetition change your percept over time?
  • Can a melody be followed more easily as it separates in pitch from fixed distractors?
  • Can alternating notes imply more than one melodic line at the faster rate?
  • How does register separation change the organization of an interlocking two-part pattern?
Interpretation: The script generates controlled examples and visualization hypotheses. Any claim about an individual listener, population, threshold, diagnosis, or neural mechanism requires an experimental protocol and data beyond what this script provides.