Play

Interactive tools for twelve-tone analysis and music theory. Each runs in the browser and plays what it shows.

The tools build and transform rows, name chords and collections, check melodies for tonal relationships, and evaluate the formulas the book uses. The row and melody tools score their input with the same frozen rules the census applied to all 479,001,600 rows. Each section below says what a tool does and what it shows, and several have a working calculator on this page.

Matrix Calculator

Enter a row and the calculator lays out all 48 of its forms in a twelve-by-twelve grid. Prime forms read left to right along each row of the grid, and retrogrades read them backward. Inversions run down each column, and retrograde inversions read them upward. Click any label to hear that form.

How the Labels Work

P0 is the row as entered. Every subscript counts semitones up from the first note of P0, so P3 and I3 both start three semitones higher. R3 is P3 backward, and RI3 is I3 backward.

Every cell of the matrix comes from two operations. The calculator below applies them to any row, one pitch class at a time.

Row Analyzer

The analyzer scores any row with the census rules. It reads the row as nine overlapping groups of four notes, gives each group its tier, and reports the tonal index, the best-fitting keys and where the row ranks among all 479,001,600. It reproduces the book's published scores for all 654 rows in the repertory survey exactly.

  1. Enter a row. Click twelve piano keys, each once, or load a row from the repertory menu.
  2. Read the summary. The tonal index from 1 to 5, the percentile, the strongest and weakest windows and the keys.
  3. Read the windows. Nine cards show what each group of four holds.

Worked Example: Webern, Op. 21

The row of Webern's Symphony is AF♯GG♯EFBB♭DC♯CE♭. Its first window reaches Tier III, a chord or step. The other eight all reach Tier I, a realized resolution.

The tonal index is (3 + 8 × 5) ÷ 9 = 4.78, high in the population, though the row fits key profiles poorly.

Set Class Calculator

Set theory gives every collection of notes a name that ignores order, octave and transposition. The calculator finds that name for any chord built on its piano: the normal form, the prime form and the interval-class vector. It also shows which triads and scales sit inside the chord and which keys it fits, so a sonority that sounds new often turns out to hold familiar ones.

Worked Example: GBDF

The dominant seventh on G is {7, 11, 2, 5}. Its normal form is [11, 2, 5, 7], its prime form (0258), Forte 4-27, and its interval-class vector ⟨012111⟩. The one tritone, B to F, is why the chord ranks at Tier II: the notes it would resolve to lie outside the chord.

The same names, worked step by step for any notes typed in:

Melody Checker

The checker takes any melody, up to 32 notes, and reads it four notes at a time with the census rules. Repeated notes are merged first. For each group it names the strongest relationship, and it counts how many groups realize a resolution and the mean weight across them.

What It Shows

Which groups of four hold a leading tone, a tritone resolution, a chord or a scale fragment, with each group played as it lights up.

What It Does Not Show

Whether the groups agree on one key. A tonal tune can score lower than a row, because the measure counts relationships in each group and not their agreement.

The page opens with Mozart's theme from K. 265, the tune English speakers know as Twinkle, Twinkle, Little Star, which the book uses to calibrate its index.

Census Sampler

The book counted every row. The sampler draws 1,000, 10,000 or 50,000 rows at random, scores all nine windows of each in the browser, and sets the results beside the complete count. The sample downloads as a CSV file, with each row's notes, window tiers, tonal index and notes to the first resolution, for study in a spreadsheet.

What to Expect

With 10,000 rows, about 9,640 realize a resolution, give or take about 40, against 96.378 percent in the full census. The mean tonal index lands within a few thousandths of 4.246. The least related row in a sample almost never reaches the true minimum of 2.22, which only 96 rows in 479,001,600 hold.

Compose with a Row

A workbench for writing twelve-tone music. Build a row and read what it holds, generate a row with a chosen character, find the hexachords that combine with other forms to complete all twelve notes, and use six practical ideas for melody, harmony, rhythm and form. The generator offers these characters:

All-Interval

Every interval appears once between neighbors, like Berg's Lyric Suite row.

Avoid the Dominant

No resolution and no tritone in any group of four. Only 0.213 percent of rows manage it.

Full of Tendency

A resolution in every group of four, like Webern's semitone chains. About 2.1 percent of rows.

As Neutral as Possible

The lowest tonal index the search can find. The absolute minimum, 2.22, belongs to 96 rows.

Suspended Tension

The two whole-tone hexachords: a tritone in every group, never resolved.

Hidden Triads

Many complete major and minor triads, the way Berg's Violin Concerto row stacks them.

The method becomes a palette of tonal relationships rather than a means of escaping them.

Will Holmes, Implied Tonality, Chapter 12

Formula Lab

The formulas used across the site as calculators. The working updates as each value changes, and Play sounds the result. The lab groups them under sound and tuning, sets and chords, and rows and counting. Four of them follow: interval size in cents, interval cycles, the count of orderings, and the point where a tritone can no longer be avoided.

Twelve-Tone Basics

The ideas needed to follow the book and use the tools, from the start.

Pitch Classes

Every C in every octave is one pitch class. There are twelve, numbered 0 to 11 with C = 0, and the arithmetic wraps like a clock: 11 + 1 = 0.

Rows

A row orders all twelve pitch classes, each once. With prime, retrograde, inversion and retrograde inversion at every transposition, one row gives 48 forms.

Set Classes

Set theory labels every collection, such as (037) for any major or minor triad, whatever its order, octave or key.

The Census Rules

The census reads each row four notes at a time and records the strongest tonal relationship in each group.

Glossary

Plain definitions of the words the book and this site use most, from aggregate to Z-relation, in alphabetical order. Where the book gives its own definition, the glossary quotes it exactly. The rest are the standard meanings from twelve-tone and set theory.

Aggregate

All twelve pitch classes, each sounded once. A complete row is an aggregate.