12-Tone Matrix Generator
Enter your Prime Row (P-0) to generate the full dodecaphonic matrix.
What is a 12-Tone Matrix?
A 12-tone matrix, also known as a Schoenbergian grid, is a fundamental tool in serialism and dodecaphonic composition. Developed by Arnold Schoenberg, this system ensures that all 12 notes of the chromatic scale are given equal importance, preventing the dominance of a single key center (atonality).
How the Matrix Works
The matrix is a 12×12 grid that displays all possible variations of a "Prime Row" (the original sequence of 12 notes). These variations include:
- Prime (P): The original row and its transpositions (read left to right).
- Retrograde (R): The prime rows in reverse (read right to left).
- Inversion (I): The upside-down versions of the row (read top to bottom).
- Retrograde Inversion (RI): The inverted rows in reverse (read bottom to top).
Mathematical Logic
To calculate the matrix, we map the notes to integers where C = 0, C# = 1, D = 2, and so on up to B = 11. If we denote the primary row as P, where P0,j is the first row, the rest of the matrix Mi,j is calculated using the formula:
M[i][j] = (P[0][j] – P[0][0] + I[i][0]) mod 12
Essentially, the first column is the inversion of the first row. Once the first row and first column are established, every other cell is filled to maintain the interval relationship of the prime row.
Practical Example
If your Prime Row starts with C (0), D (2), E (4), the interval pattern is +2, +2. The Inversion starting on C (0) would follow the opposite intervals: -2, -2, resulting in C (0), Bb (10), Ab (8). The calculator automates this complex transposition for all 144 cells instantly.
| P \\ I | '; for (var k = 0; k < 12; k++) { html += 'I-' + formatLabel(matrix[0][k], matrix[0][0]) + ' | '; } html += '
|---|---|
| P-' + formatLabel(matrix[i][0], matrix[0][0]) + ' | '; for (var j = 0; j < 12; j++) { var displayVal = (displayType === "names") ? noteNames[matrix[i][j]] : matrix[i][j]; html += '' + displayVal + ' | '; } html += '