Pitch Set Calculator: Unlocking Atonal Music Analysis

Pitch Set Calculator

Enter your pitch classes (0-11) to calculate Normal Form, Prime Form, and Interval Vector.

Separate pitch classes with commas. Valid pitches are integers from 0 to 11. Duplicates are automatically removed.
Fig 1: Clock Face Representation of the Pitch Set
Table 1: Interval Class Distribution
Interval Class (IC) Definition Count

What is a Pitch Set Calculator?

A pitch set calculator is an essential tool for music theorists, composers, and students engaged in atonal music analysis. It helps in systematically organizing and understanding collections of pitch classes, providing insights into their inherent intervallic structures and relationships. Unlike traditional harmony, which focuses on specific notes and their functional roles within a key, pitch set theory deals with abstract collections of pitches, reducing them to their essential components regardless of octave or specific tuning.

This calculator takes a group of pitch classes (represented as integers from 0 to 11, where 0=C, 1=C#, ..., 11=B) and processes them to reveal their underlying structure. It computes key analytical forms such as the Normal Form, Prime Form, and Interval Vector, which are fundamental for comparing and classifying pitch sets in various compositions.

Who should use it: This tool is invaluable for anyone studying or composing 20th-century music, particularly serialism, twelve-tone technique, or other forms of atonal music. It provides a quick and accurate way to formalize and analyze musical ideas that might otherwise be difficult to categorize by ear alone.

Common misunderstandings: It's crucial to remember that a pitch set deals with pitch classes, not specific notes. So, a C4, C5, and C6 are all considered the same pitch class (0). Also, the order in which you input the pitches doesn't matter for the initial set, as the calculator will always reduce it to its most compact and canonical forms. The calculator also handles duplicates by ignoring them, as a set by definition contains unique elements.

Pitch Set Calculator Formula and Explanation

While there isn't a single "formula" in the algebraic sense, the pitch set calculator applies a series of algorithms to derive the Normal Form, Prime Form, and Interval Vector from an input set of pitch classes. These processes are based on established principles of musical set theory.

Key Concepts:

1. Normal Form (NF):

The Normal Form is the most compact ascending arrangement of a pitch set. To find it, the calculator essentially performs the following steps:

  1. List all unique pitch classes in ascending order.
  2. Generate all possible rotations of the set (e.g., for {0,1,6}, rotations are {0,1,6}, {1,6,0+12}, {6,0+12,1+12}).
  3. For each rotation, determine its "span" (the interval between the first and last pitch class, considering all pitches within a single octave range).
  4. Select the rotation(s) with the smallest span.
  5. If there's a tie in span, choose the rotation that is "most compact to the left" (i.e., has the smallest interval between its first two pitches, then its second two, and so on).
  6. The chosen rotation, normalized to start with 0, is the Normal Form.

2. Prime Form (PF):

The Prime Form is the most compact and canonical representation of a pitch set, considering both the original set and its inversion. It allows for comparison of sets that are related by transposition and inversion. The algorithm is:

  1. Find the Normal Form of the original pitch set.
  2. Find the inversion of the original pitch set (each pitch p becomes 12 - p modulo 12).
  3. Find the Normal Form of this inverted set.
  4. Compare the Normal Form of the original set with the Normal Form of its inversion.
  5. The "more compact to the left" of these two Normal Forms, transposed to start on 0, is the Prime Form.

3. Interval Vector (IV):

The Interval Vector is a six-digit number that summarizes the intervallic content of a pitch set. Each digit represents the count of a specific interval class (IC) within the set. The interval classes are:

The calculator counts all unique pairs of pitches within the set and determines their interval class, then compiles these counts into the vector.

Variables Used in Pitch Set Calculation:

Variable Meaning Unit Typical Range
Pitch Class (PC) An integer representing a musical note (0=C, 1=C#, etc.) Unitless (mod 12) 0 - 11
Pitch Set (S) An unordered collection of unique pitch classes Unitless (set of integers) Any subset of {0, 1, ..., 11}
Normal Form (NF) The most compact ascending arrangement of a pitch set Unitless (ordered set of integers) Ordered subset of {0, 1, ..., 11}
Prime Form (PF) The most compact and canonical representation of a pitch set Unitless (ordered set of integers) Ordered subset of {0, 1, ..., 11}
Interval Vector (IV) A six-digit representation of the intervallic content Unitless (counts) [0-n, 0-n, 0-n, 0-n, 0-n, 0-n]

Practical Examples Using the Pitch Set Calculator

Let's explore how the pitch set calculator works with a few practical examples, from common musical structures to more abstract atonal sets.

Example 1: A C Major Triad

Inputs: C, E, G. In pitch class notation, these are 0, 4, 7.

Calculator Input: 0, 4, 7

Results:

  • Normal Form: [0, 4, 7]
  • Prime Form: (014)
  • Interval Vector: [0, 0, 1, 1, 1, 0] (One IC3, one IC4, one IC5)
  • Cardinality: 3

Explanation: The C major triad is a relatively consonant set. Its Normal Form is simply the pitches in ascending order. Its Prime Form is the same, but written in the standard (014) notation. The Interval Vector shows it contains one minor third (IC3), one major third (IC4), and one perfect fourth/fifth (IC5).

Example 2: The "Mystic Chord" (Prometheus Chord)

Inputs: C, F#, B♭, E, A, D. In pitch class notation (starting from C=0): 0, 6, 10, 4, 9, 2.

Calculator Input: 0, 6, 10, 4, 9, 2 (order doesn't matter, it will be sorted)

Results:

  • Normal Form: [0, 2, 4, 6, 9, 10]
  • Prime Form: (02469T)
  • Interval Vector: [2, 3, 2, 3, 2, 3]
  • Cardinality: 6

Explanation: This hexachord, famously used by Scriabin, has a distinctive intervallic makeup. The Normal Form arranges these specific pitches compactly. The Prime Form provides its canonical label. The Interval Vector shows a distribution across most interval classes, notably lacking IC1 but having three tritones (IC6), contributing to its dissonant and elusive quality.

Example 3: A Common Atonal Trichord

Inputs: C, C#, F#. In pitch class notation: 0, 1, 6.

Calculator Input: 0, 1, 6

Results:

  • Normal Form: [0, 1, 6]
  • Prime Form: (016)
  • Interval Vector: [1, 0, 0, 0, 0, 1] (One IC1, one IC6)
  • Cardinality: 3

Explanation: This is a highly dissonant trichord due to the presence of both a minor second (IC1) and a tritone (IC6). Its Normal Form and Prime Form are identical to the input because it's already in its most compact form. This set is often used in atonal compositions for its distinctive intervallic tension.

How to Use This Pitch Set Calculator

Our pitch set calculator is designed for ease of use, providing quick and accurate analysis for your musical sets. Follow these simple steps to get started:

  1. Enter Pitch Classes: You have two primary ways to input your pitch classes:
    • Text Input: Type your pitch classes as numbers (0-11) separated by commas into the "Enter Pitch Classes" field. For example, 0, 4, 7 for a C major triad. The calculator automatically handles duplicates and ignores non-numeric input.
    • Checkboxes: Below the text input, you'll find a series of checkboxes labeled 0 through 11. Simply click the checkboxes corresponding to the pitch classes you wish to include in your set. Selecting or deselecting a checkbox will automatically update the text input field.
  2. Initiate Calculation: After entering your pitch classes, click the "Calculate Pitch Set" button. The results will appear instantly below the input section. Alternatively, the calculation updates in real-time as you type or click checkboxes.
  3. Interpret Results:
    • Prime Form: This is the primary, highlighted result, giving you the canonical representation of your set.
    • Normal Form: Shows the most compact ascending arrangement of your input pitches.
    • Interval Vector: Provides a six-digit code indicating the count of each interval class (1-6) present in your set.
    • Cardinality: Simply the number of unique pitches in your set.
  4. Visualize with the Clock Face: The interactive clock face chart visually represents your selected pitch classes, making it easy to see their distribution within the octave.
  5. Review Interval Table: The table below the chart provides a detailed breakdown of the interval classes and their definitions, along with their counts in your current set.
  6. Copy Results: Use the "Copy Results" button to quickly copy all calculated values to your clipboard for easy pasting into documents or other applications.
  7. Reset: If you want to start fresh, click the "Reset" button to clear all inputs and return to the default example set.

Remember, all values are unitless pitch class integers (mod 12), representing the notes of the chromatic scale from C (0) to B (11).

Key Factors That Affect Pitch Sets

Understanding the factors that influence the characteristics of a pitch set is crucial for effective atonal analysis. The pitch set calculator helps reveal these factors through its outputs.

Pitch Set Calculator FAQ

Q: What is a pitch class?

A: A pitch class refers to any of the twelve notes of the chromatic scale, regardless of the octave in which it appears. For example, all C's (C2, C3, C4, etc.) belong to pitch class 0. It simplifies analysis by focusing on the quality of the note rather than its specific register.

Q: Why are pitches represented as numbers 0-11?

A: Using integers from 0 to 11 (modulo 12 arithmetic) is a standard convention in music set theory. It provides a consistent, mathematical way to represent the 12 semitones of the chromatic scale, where C=0, C#/Db=1, D=2, and so on, up to B=11. This allows for easier calculation of intervals and transformations.

Q: What's the difference between Normal Form and Prime Form?

A: The Normal Form is the most compact ascending arrangement of a pitch set. The Prime Form takes this a step further by also considering the inversion of the set. It compares the Normal Form of the original set with the Normal Form of its inversion, choosing the "more compact" of the two (transposed to start on 0) as the ultimate canonical representation. The Prime Form ensures that transpositionally and inversionally equivalent sets have the same label.

Q: What is the Interval Vector used for?

A: The Interval Vector is a powerful analytical tool that quantifies the intervallic content of a pitch set. It's a six-digit number where each digit represents the count of a specific interval class (IC1-IC6). Composers and theorists use it to identify common intervallic characteristics between different sets, understand their inherent dissonance/consonance, and explore their potential for specific musical effects.

Q: What happens if I enter duplicate pitches (e.g., 0, 4, 7, 0)?

A: The calculator automatically removes duplicate pitches. A "set" in mathematics (and music set theory) by definition contains only unique elements. So, 0, 4, 7, 0 will be treated as {0, 4, 7}.

Q: Does the order of input pitches matter?

A: No, the initial order of input pitches does not matter for the calculation of Normal Form, Prime Form, or Interval Vector. The calculator first processes your input into an unordered set of unique pitch classes before applying its algorithms.

Q: Can I use sharps and flats in the input?

A: This calculator currently only accepts integer values (0-11). You will need to convert any sharps or flats to their corresponding pitch class numbers first (e.g., C# = 1, Db = 1, F# = 6, Gb = 6, B♭ = 10, A# = 10).

Q: Is this calculator for traditional harmony?

A: While pitch set theory can be applied to traditional chords and scales (as seen in the C major triad example), its primary utility is in the analysis and composition of atonal and 20th-century music, where traditional harmonic functions are often absent or less relevant.

Related Tools and Internal Resources

Expand your understanding of music theory and composition with our other helpful tools and articles:

🔗 Related Calculators