Working with Key Signatures
The KeySignature
class represents the set of sharps or flats that define a musical key. It provides methods for navigating the circle of fifths and understanding key relationships.
Understanding Key Signatures
A key signature defines:
- Tonic
The home note or tonal center of the key
- Mode
Whether the key is major or minor
- Accidentals
The sharps or flats that appear in the key
- Scale
The collection of notes that belong to the key
Creating Key Signatures
Basic Creation
Key Properties
Circle of Fifths
Navigate keys using the circle of fifths:
Key Relationships
Relative Keys
Relative keys share the same key signature but have different tonics:
Parallel Keys
Parallel keys share the same tonic but have different modes:
Dominant and Subdominant
Navigate to closely related keys:
Enharmonic Keys
Some keys can be spelled differently but sound the same:
Working with Scales and Chords
Building Scales from Keys
Diatonic Chords
Build chords that belong to a key:
Common Key Patterns
Key Signatures by Accidental Count
Sharps | Major Key | Minor Key | Sharps Added |
---|---|---|---|
0 | C major | A minor | - |
1 | G major | E minor | F# |
2 | D major | B minor | F#, C# |
3 | A major | F# minor | F#, C#, G# |
4 | E major | C# minor | F#, C#, G#, D# |
5 | B major | G# minor | F#, C#, G#, D#, A# |
6 | F# major | D# minor | F#, C#, G#, D#, A#, E# |
7 | C# major | A# minor | F#, C#, G#, D#, A#, E#, B# |
Flats | Major Key | Minor Key | Flats Added |
---|---|---|---|
0 | C major | A minor | - |
1 | F major | D minor | Bb |
2 | Bb major | G minor | Bb, Eb |
3 | Eb major | C minor | Bb, Eb, Ab |
4 | Ab major | F minor | Bb, Eb, Ab, Db |
5 | Db major | Bb minor | Bb, Eb, Ab, Db, Gb |
6 | Gb major | Eb minor | Bb, Eb, Ab, Db, Gb, Cb |
7 | Cb major | Ab minor | Bb, Eb, Ab, Db, Gb, Cb, Fb |
Modulation Paths
Common key changes in music:
Best Practices
Choose appropriate enharmonic spelling: Use F# major rather than Gb major when possible (fewer accidentals)
Understand key relationships: Closely related keys share many common tones
Consider musical context: Key choice affects the mood and playability
Use the circle of fifths: It's the foundation of Western harmony