Stockhausen Studie II Generator — User Guide

A dual-mode generator inspired by Karlheinz Stockhausen's Studie II (1954). Serial mode is a historically informed model built from an 81-degree exponential scale, five-sine tone mixtures, five-part grouping, and tape-time references; Random mode reuses related materials for stochastic composition.

Author: Shai Cohen Affiliation: Department of Music, Bar-Ilan University, Israel Source version: 0.8 (2026) License: MIT License Repo: Praat AudioTools
Contents:

What this does

The script synthesizes mono compositions from five-sine Tongemische (tone mixtures). Each mixture contains five frequencies selected from a fixed 81-degree scale. The scale itself is exponential rather than octave-tempered.

Serial mode: historically informed model, not a transcription of Studie II.
Random mode: creative stochastic generator using related scale, mixture-width, envelope, and grouping ideas.

No input Sound is required. Both modes generate the event plan first, then globally rescale event times to fit the requested output duration before rendering the audio.

The current source header is v0.8. The compact form and Details dialog still display “v0.7”; this is a metadata-label mismatch only and does not change the v0.8 processing code.

Quick start

  1. Run Stockhausen_Studie_II_Generator.praat.
  2. Choose Random or Serial.
  3. Set the requested Duration.
  4. Enable Edit details to change sample rate, base frequency, amplitude range, Random-mode group count, Serial rotation offset, reverb model, partial-level model, Output peak, or Random seed.
  5. Run the script. The score can be drawn and the final mono Sound can be played automatically.

The 81-degree frequency scale

The generator builds 81 frequencies from:

ratio = 5^(1/25) f[n] = BaseFrequency × ratio^(n - 1) n = 1 ... 81

With the historical-style default Base frequency of 100 Hz, the scale runs from 100 Hz to approximately 17.25 kHz.

This is not “25 steps per octave.” Twenty-five scale steps span the frequency ratio 5:1, which is two octaves plus a just major third. Each adjacent degree is separated by the fixed ratio 5^(1/25).

The script requires the highest of all 81 scale frequencies to remain below 95% of Nyquist. If the complete scale is unsafe at the selected Sample rate, generation stops rather than truncating or rescaling the upper degrees.

Five-sine tone mixtures

Every event contains five sinusoidal components chosen from the 81-degree scale.

In Serial mode, a mixture is centered on one selected scale degree and uses one of five width classes:

component indices = center - 2w, center - w, center, center + w, center + 2w w = 1 ... 5 scale degrees

The spacing is therefore equal in scale-degree distance and geometric in Hz.

Partial levels

Equal partial levels is enabled by default. All five sine components then receive the same event amplitude.

If this option is disabled, the script applies the older AudioTools center-weighted model:

center = 1.00 × event amplitude adjacent = 0.88 × event amplitude outer = 0.76 × event amplitude

The equal-level setting is the historically motivated choice; the center-weighted option is retained as a creative alternative.

Serial mode — historically informed model

Serial mode is deterministic in its musical event generation. It begins with the five-number seed:

3, 5, 1, 4, 2

The script rotates this row to form a 5×5 square and cycles through the resulting token stream. Tokens are reused for mixture width, number of mixtures, pitch register, duration class, amplitude class, envelope direction, gaps, and vertical staggering.

Formal hierarchy

The intended structural hierarchy is:

5 sections × 5 subsections × 5 groups × 1–5 mixtures per group

Mixture width is held constant inside a group and changes from group to group.

SectionCurrent model behavior
IHorizontal, linked mixtures.
IIVertical, overlapping mixtures.
IIIHorizontal mixtures separated by serially derived gaps.
IVVertical, overlapping mixtures.
VAlternates linked-horizontal and vertical groups.

Explicit model choices

The script itself marks several places where the Serial mode deliberately simplifies the historical composition:

Serial mode should therefore be used to explore a model of procedures associated with Studie II, not to claim a reconstruction or authentic realization of Stockhausen's finished work.

Random mode

Random mode keeps the same 81-degree frequency pool and five-component mixture concept but replaces the serial scheduler with stochastic groups.

For each group:

Random-mode groups are generated until either the requested group count is exhausted or the time cursor reaches the requested Duration. The complete event plan is then globally time-scaled to fill approximately 98% of the Duration.

Event envelopes

Random mode

Random mode chooses among five envelope classes:

TypeActual implementation
1Flat body with short fade-in and fade-out.
2Linear rise to full level over 72% of the event, then short 10 ms fade-out.
3Exponential decay with short onset and closing fades.
4Triangular envelope peaking at the event midpoint.
5Nearly gated shape with very short attack and release.

Serial mode

Serial mode uses two idealized reverberant-envelope directions:

falling: exp(-3t/D) × (1 - t/D) rising: exp[-3(D-t)/D] × (t/D)

For the rising version, the sine phase is shifted by the event duration so the synthesized component follows the time-reversed envelope model without otherwise changing its frequency.

Post-mix reverb models

Default: light dry + taps

With Wet-only reverb model = off, the output is a creative post-mix effect:

dry gain = 0.85 taps: 40 ms 57 ms 74 ms tap gains: 0.12 × 0.65^tap

This is a short feed-forward delay treatment, not a reconstruction of the historical reverberation chamber.

Wet-only model

When enabled, the dry signal is removed and replaced by twelve attenuated delayed copies, spanning approximately 23–144 ms, followed by a short 20 ms output fade-in.

This setting is conceptually closer to the historical removal of the direct signal, but the code explicitly treats it as a creative digital approximation, not a model of the actual room, microphones, tape path, or roughly ten-second reverberation decay used in the original realization.

Controls

Main page

ControlDefaultMeaning
Generation modeRandomRandom creative mode or Serial historically informed model.
Duration10 sFinal Sound duration and target span for global time scaling.
Edit detailsoffOpens model/audio controls.
Draw scoreonDraws the two-system score/QC visualization.
Play resultonPlays the generated Sound.

Details page

ControlDefaultMeaning
Sample rate44100 HzDirect synthesis and final output rate; minimum 8000 Hz.
Base frequency100 HzDegree 1 of the 81-tone scale.
Minimum / Maximum event amplitude.10 / .30Random-mode amplitude range; Serial mode maps tokens across the same interval.
Random-mode groups7Requested group count in Random mode.
Serial rotation offset0Changes the starting row of the simplified five-number token square; effectively reduced modulo 5.
Wet-only reverb modeloffSelects the twelve-tap no-dry model instead of the default light dry+tap treatment.
Equal partial levelsonHistorical-style equal level for all five sine components.
Output peak.95Final target peak normalization.
Random seed00 = unpredictable Random-mode realization; positive = repeatable Random-mode realization.

Serial musical content is deterministic for a fixed rotation offset; Random seed primarily matters to Random mode.

Timing, tape reference, and final level

Tape-time reference

The script retains the historical tape-speed reference:

tape speed = 76.2 cm/s base tape unit = 2.5 cm base time unit = 2.5 / 76.2 ≈ 32.81 ms

Serial-model duration classes and several gaps/staggers are derived from this base unit before the global fit-to-Duration scaling is applied.

Global time fitting

After event generation, the script measures the latest event end. If that span differs from the requested Duration, all event onsets and durations are multiplied by one common scale factor so the generated span becomes approximately 98% of the output duration.

This means the final timing is not a literal tape-time realization even in Serial mode.

Output level

After the selected post-mix reverb model, the complete non-silent mono Sound is always:

Scale peak: OutputPeak

This is target peak normalization, not a down-only protection ceiling.

Score visualization

The current score is deliberately modeled after the two-system logic of the published realization score while also making the script's model choices visible.

Upper system — tone mixtures

Tape ruler

A separate middle strip shows the same horizontal span as both centimetres of tape at 76.2 cm/s and seconds.

Lower system — amplitude

One amplitude shape is drawn for each mixture in dB, using the same width-class color as the upper system.

In Serial mode, the lower system follows the actual rising/falling envelope model. In Random mode, the current score does not redraw the five Random-mode envelope formulas literally: types 1–5 are represented by the standardized falling-envelope proxy. The audio synthesis itself still uses the correct five Random-mode envelope types.

Fidelity / QC strip

The bottom strip explicitly separates FROM THE SOURCES from MODEL CHOICES. It also reports event count, tape-span equivalent, final peak, and RMS.

Among the model choices displayed there are the five fixed pitch registers, compact duration classes, and idealized envelope directions.

Historical context

Stockhausen composed and realized Studie II in Cologne in 1954. The Stockhausen-Verlag catalogue identifies it as work 3/II and gives the authorized duration as approximately 3 minutes 20 seconds. A realization score was subsequently published by Universal Edition in 1956.

The work is notable for building its sonic material from a deliberately constructed frequency system rather than from equal temperament. The 81-degree scale begins at 100 Hz and advances by the fixed ratio 5^(1/25), reaching roughly 17.2 kHz. Tone mixtures contain five sine components separated by one of five scale-degree widths, and the five-part formal design extends the pervasive role of the number five.

The original realization was inseparable from studio practice. The sine components were recorded and processed through a reverberation chamber; sources discussing the realization describe Stockhausen's instruction for a long, regular reverberation response and the removal of the direct sine-wave portion so that the reverberant result became the usable material. Modern re-realizations have shown that these apparently precise instructions still leave substantial technical and interpretive decisions.

Relation to this script: AudioTools v0.8 deliberately stops short of claiming historical authenticity. Its Serial mode preserves several central organizing ideas — the 81-degree scale, five-sine mixtures, width classes, five-part hierarchy, tape-time reference, and equal component levels — while replacing important details with explicit models such as five fixed pitch registers, compact duration classes, globally rescaled timing, digital envelopes, and simplified reverb. Random mode is an additional creative system with no claim to reconstruct the 1954 composition.

Further reading