Pitch Class Set Analyzer
What is a Pitch Class Set?
A **pitch class set calculator** is an invaluable tool for musicians, composers, and music theorists to analyze the intervallic structure of collections of pitches. In music theory, a "pitch class" refers to all pitches that are an integer number of octaves apart (e.g., all C's, all C#'s, etc.). There are 12 pitch classes, typically represented by integers 0 through 11 (where 0 usually represents C, 1 represents C#, and so on).
A "pitch class set" is simply an unordered collection of these pitch classes. For example, a C major triad could be represented as the set {0, 4, 7}. The order of the pitches doesn't matter, nor does their octave register or specific spelling (e.g., C-E-G is the same set as G-C-E or C-F♭-G).
Who should use it? This calculator is essential for students of post-tonal music theory, composers exploring new harmonic possibilities, and analysts dissecting works by composers like Schoenberg, Berg, Webern, and Messiaen. It helps to abstract away surface-level details to reveal deeper structural relationships.
Common misunderstandings: A common misunderstanding is confusing pitch class sets with specific chords or scales in a particular key. While a pitch class set can describe a chord, it focuses solely on the intervallic relationships *between* the pitches, independent of tonal context. Another error is including duplicate pitches or pitches outside the 0-11 range, which are automatically normalized by this calculator.
Pitch Class Set Formula and Explanation
The core of a **pitch class set calculator** lies in several key transformations and analytical outputs:
- Normal Form: This is the most compact way to write a pitch class set, starting with its smallest interval span. It's like finding the "tightest" possible voicing of a chord. The set is ordered and then transposed so its first element is 0. If multiple orderings have the same smallest span, the one that is "most packed to the left" (i.e., has smaller intervals from its first element) is chosen.
- Prime Form: This is the most fundamental representation of a pitch class set, often used for cataloging and comparison. It is derived from the Normal Form by comparing it to the Normal Form of its inversion. The Prime Form is the one that is "most packed to the left" (lexicographically smallest interval sequence) when transposed to 0. This form helps identify sets that are inversionally equivalent.
- Cardinality: Simply the number of unique pitch classes in the set. For {0, 4, 7}, the cardinality is 3.
- Interval Vector: This is a powerful analytical tool that quantifies the intervallic content of a set. It's a six-digit number, where each digit represents the count of a specific interval class (from 1 to 6) present in the set. For example, the first digit counts interval class 1 (semitones), the second counts interval class 2 (whole tones), and so on, up to interval class 6 (tritones). Interval class 7 is equivalent to 5, 8 to 4, etc.
These calculations are performed using modular arithmetic (modulo 12) because pitches repeat every octave.
Variables Table for Pitch Class Set Analysis
| Variable | Meaning | Unit | Typical Range |
|---|---|---|---|
| Pitch Class (p) | An individual pitch divorced from octave register | Unitless Integer | 0-11 |
| Set (S) | An unordered collection of unique pitch classes | Unitless Integers | {0, 1, ..., 11} |
| Cardinality (N) | The number of pitches in a set | Unitless Integer | 0-12 |
| Interval Class (IC) | The smallest distance between two pitch classes (modulo 12) | Unitless Integer | 1-6 |
Practical Examples Using the Pitch Class Set Calculator
Let's illustrate how to use this **pitch class set calculator** with a couple of common musical examples.
Example 1: C Major Triad
- Inputs: A C major triad consists of the pitches C, E, G. In pitch class notation (C=0), this is {0, 4, 7}.
- Units: Unitless integers 0-11.
- Process: Enter `0 4 7` into the input field and click "Calculate Set".
- Results:
- Normal Form: [0, 4, 7]
- Prime Form: [0, 3, 7] (This is because the inversion [0, 8, 5] normalizes to [0, 5, 8], which is not as "left-packed" as [0, 3, 7] from the inversion of [0,4,7] which is [0,8,5], or rather the normal form of the inversion, which is [0, 3, 7]) - *Correction: The Prime Form of {0,4,7} is indeed [0,3,7] because its inversion {0,8,5} has a Normal Form of [0,3,7]. When comparing [0,4,7] and [0,3,7], [0,3,7] is more 'packed to the left'.*
- Cardinality: 3
- Interval Vector: [0 0 1 1 1 0] (one major third/minor sixth, one minor third/major sixth, one perfect fourth/fifth)
Example 2: C Dominant 7th Chord
- Inputs: A C dominant 7th chord consists of C, E, G, B♭. In pitch class notation, this is {0, 4, 7, 10}.
- Units: Unitless integers 0-11.
- Process: Enter `0 4 7 10` into the input field and click "Calculate Set".
- Results:
- Normal Form: [0, 4, 7, 10]
- Prime Form: [0, 3, 6, 9] (The diminished seventh chord is its inversionally equivalent prime form, e.g., {0,3,6,9} is the Prime Form for both dominant 7th and diminished 7th chords).
- Cardinality: 4
- Interval Vector: [0 2 0 2 2 0] (two whole tones, two major thirds, two tritones)
How to Use This Pitch Class Set Calculator
Using this **pitch class set calculator** is straightforward:
- Identify Your Pitches: Determine the pitches you want to analyze. For instance, if you have C, D#, G, you'll need to convert these to pitch classes.
- Convert to Pitch Classes (0-11):
- C = 0
- C#/D♭ = 1
- D = 2
- D#/E♭ = 3
- E = 4
- F = 5
- F#/G♭ = 6
- G = 7
- G#/A♭ = 8
- A = 9
- A#/B♭ = 10
- B = 11
- Enter into the Calculator: Type the unique pitch class numbers (0-11) into the "Enter Pitch Classes" input field. You can separate them with spaces (e.g., `0 3 7`) or commas (e.g., `0,3,7`). The calculator automatically handles duplicates and sorts them.
- Click "Calculate Set": Press the "Calculate Set" button to process your input.
- Interpret Results:
- Prime Form: The highlighted result, offering the most concise and standardized representation for comparison.
- Normal Form: The most compact ordering of your original set.
- Cardinality: The number of distinct pitches in your set.
- Interval Vector: Reveals the specific intervallic character of the set.
- Use the Pitch Clock: The interactive clock face visually displays your input, making it easy to see the distribution of pitches.
- Copy Results: The "Copy Results" button will copy all calculated values and assumptions to your clipboard for easy pasting into your notes or documents.
- Reset: The "Reset" button clears the input and results, setting the calculator back to its default state.
Key Factors That Affect Pitch Class Sets
Understanding the factors that influence pitch class sets is crucial for deeper musical analysis. A **pitch class set calculator** helps reveal these properties:
- Cardinality: The number of pitches in a set (e.g., a triad has cardinality 3, a tetrachord has 4). This fundamentally shapes its potential intervallic content and sonic density. Sets with higher cardinality tend to have more intervals.
- Intervallic Content: The specific intervals present within a set, summarized by the interval vector. This is perhaps the most important factor, determining the set's harmonic character, dissonance, and potential for melodic motion. Sets with many tritones, for instance, often sound more dissonant.
- Transpositional Equivalence: Two sets are transpositionally equivalent if one can be shifted up or down by a constant interval to become the other. This calculator's Normal Form and Prime Form help identify such equivalences.
- Inversional Symmetry: Some sets are symmetrical under inversion, meaning they sound the same when flipped upside down around an axis. The Prime Form helps identify sets that are inversionally equivalent to other sets.
- Complementation: The complement of a set consists of all pitch classes *not* in the original set. Analyzing the relationship between a set and its complement can reveal interesting structural properties in a piece of music. For instance, the octatonic scale (a common set) has a complement that is also an octatonic scale.
- Common Subsets: Analyzing what smaller sets are contained within a larger set can reveal how a composer builds complex harmonies from simpler components, or how different large sets might be related through shared subsets.
Frequently Asked Questions about Pitch Class Sets
Q: What does "pitch class" mean?
A: A pitch class refers to all pitches that are an integer number of octaves apart. For example, all C's (C1, C2, C3, etc.) belong to the same pitch class. We typically represent them with numbers 0-11, where 0 is C, 1 is C#, etc.
Q: Why are the values 0-11 and not 1-12?
A: Using 0-11 is standard in set theory because it aligns well with modular arithmetic (mod 12), where 12 is equivalent to 0. This simplifies calculations for intervals and transpositions.
Q: Are the results from this pitch class set calculator unitless?
A: Yes, all results, including Normal Form, Prime Form, and Interval Vector, are expressed using unitless integers (0-11) that represent pitch classes and their relationships. There are no physical units like Hz, inches, or dollars involved.
Q: What if I enter duplicate pitches like "0 4 7 0"?
A: The calculator automatically handles duplicates. A pitch class set is an *unordered collection of unique* pitch classes. So, "0 4 7 0" will be treated the same as "0 4 7".
Q: What if I enter pitches outside the 0-11 range, like "12" or "14"?
A: The calculator will automatically convert these using modulo 12 arithmetic. For example, 12 becomes 0, 13 becomes 1, and 14 becomes 2. This is standard practice for pitch classes.
Q: Can I use this calculator for tonal music?
A: While pitch class set analysis is primarily associated with atonal and post-tonal music, its principles can certainly be applied to tonal music to reveal underlying intervallic structures, especially in complex harmonies or transitional passages. It helps to analyze the "sound" of a collection of notes independent of its functional role in a key.
Q: What is the difference between Normal Form and Prime Form?
A: Normal Form is the most compact ordering of a specific set you entered. Prime Form is the most compact and "left-packed" representation of the set *or its inversion*, always starting on 0. Prime Form is used for identifying sets that are transpositionally and/or inversionally equivalent.
Q: What does an Interval Vector of [0 0 0 0 0 0] mean?
A: An interval vector of [0 0 0 0 0 0] means the set contains no pitches, or only a single pitch. A set must have at least two unique pitches to contain any intervals. This calculator will display this for an empty or single-pitch input.