The Circle of Fifths is an interactive visualization for learning music theory. Combining visual design with audio feedback, it helps users understand key relationships, scales, and chord progressions.
Circle of Fifths
Perfect Fifth: G
Perfect Fourth: F
Click any key to hear its root note. The outer ring shows major keys, inner ring shows relative minors.
Key Features
- Interactive Visualization: Click and explore the circle of fifths
- Audio Feedback: Hear scales and chords using Web Audio API
- Key Relationships: Understand relative majors/minors and chord progressions
- Educational Design: Clear visual representation of music theory concepts
Technical Implementation
The Web Audio API provides real-time audio synthesis:
const A4_FREQUENCY = 440; // Hz
const SEMITONE_RATIO = Math.pow(2, 1/12);
function noteToFrequency(note, octave) {
const noteIndex = ['C', 'C#', 'D', 'D#', 'E', 'F',
'F#', 'G', 'G#', 'A', 'A#', 'B'].indexOf(note);
const semitonesFromA4 = (octave - 4) * 12 + (noteIndex - 9);
return A4_FREQUENCY * Math.pow(SEMITONE_RATIO, semitonesFromA4);
}
Each key in the circle is positioned 30 degrees apart, representing the perfect fifth interval that defines the circle’s structure.