Select root note and chord type to visualize frequency spectrum, composite waveform, and harmonic structure in real time. Understand the physical difference between consonant and dissonant chords through mathematics.
Parameters
While paused, move the sliders to update the result instantly.
Live readouts (updated every frame)
Fundamental f₀
440 Hz
Number of Notes
3
Consonance Score
—
Beat Frequency
—
Frequency Ratio
—
Combined Period
—
Waveform superposition (each note → sum)
Top = each note's sine wave (its fundamental). Bottom = their sum. Consonant intervals (simple integer ratios) make the combined wave repeat cleanly; dissonant intervals produce beating and complex patterns.
Harmonic series & spectrum
Harmonics of each note (integer multiples $n f_0$). Colors distinguish notes; in consonant chords the overtones of different notes coincide.
💬 Conversation about Chords and Harmonics
🙋
Why does a major triad (C-E-G) sound so "pleasant"? I've never really thought about it beyond just feeling that way.
🎓
Because the frequency ratios are close to small integer ratios. In just intonation, C-E-G is 4:5:6, so many overtones line up. The brain tends to perceive regular repeating frequency patterns as consonant; that is the psychoacoustics behind the sound.
🙋
What's the difference between "equal temperament" and "just intonation"?
🎓
Just intonation uses exact integer frequency ratios such as 4:5:6. It produces very smooth consonance, but the ratios shift when you transpose. Equal temperament divides the octave into 12 equal ratios of $2^{1/12}$, so intervals stay consistent in every key, although each consonance is slightly detuned from its pure ratio.
🙋
I hear the term "beats" in piano tuning—how does that work?
When two tones have frequencies $f_1$ and $f_2$, their combined waveform varies in amplitude at $|f_1-f_2|$ Hz. For example, 440 Hz and 443 Hz produce three beats per second. Tuners adjust string tension until those beats disappear or reach the desired slow rate; around 2 to 3 Hz is especially easy to hear.
🙋
What causes differences in timbre? A piano and a violin playing the same "A (440 Hz)" sound completely different, right?
🎓
Their harmonic structures are different. Even with the same 440 Hz fundamental, a violin has rich overtones at 880, 1320, 1760 Hz and beyond, often with strong odd harmonics. A flute has weaker upper harmonics and sounds purer. A clarinet emphasizes odd harmonics because of its closed-pipe behavior. Scientifically, timbre is largely the shape of the harmonic spectrum.
Frequently Asked Questions
The timbre of each instrument is determined by the amplitude distribution and phase relationships of its overtones. For example, a piano has strong even-numbered overtones, while a violin includes higher-order overtones. In the simulator, adjusting the amplitude sliders and comparing the spectrum to that of a real instrument will improve the realism.
Fix the fundamental frequency, select a 'dissonant interval' under chord type, or manually fine-tune two frequencies. For example, setting two close frequencies like 440 Hz and 442 Hz will allow you to observe in real time the periodic amplitude fluctuation in the combined waveform, known as beats.
In equal temperament, semitones have an equal frequency ratio (2^(1/12)), while in just intonation, they are based on integer ratios (e.g., a perfect fifth is 3:2). By setting the same chord (e.g., C-E-G) in both tunings in the simulator and comparing the spectrum and the degree of beating in the waveform, you can visually understand why just intonation sounds more consonant.
If the number of overtones (N) is increased excessively or the amplitude is set too high, the waveform may become distorted due to computational overflow or sampling rate limitations. Start with N around 5 to 10 and amplitudes below 0.5, then gradually increase them for stable observation.
What is Music Chord Harmonics?
Music Chord Harmonics is a fundamental topic in engineering and applied physics. This interactive simulator lets you explore the key behaviors and relationships by directly manipulating parameters and observing real-time results.
By combining numerical computation with visual feedback, the simulator bridges the gap between abstract theory and physical intuition — making it an effective learning tool for students and a rapid-verification tool for practicing engineers.
Physical Model & Key Equations
The simulator is based on the governing equations behind Music Chord Harmonics Visualizer. Understanding these equations is key to interpreting the results correctly.
Each parameter in the equations corresponds to a slider in the control panel. Moving a slider changes the equation's solution in real time, helping you build a direct connection between mathematical expressions and physical behavior.
Real-World Applications
Engineering Design: The concepts behind Music Chord Harmonics Visualizer are applied across mechanical, structural, electrical, and fluid engineering disciplines. This tool provides a quick way to estimate design parameters and sensitivity before committing to full CAE analysis.
Education & Research: Widely used in engineering curricula to connect theory with numerical computation. Also serves as a first-pass validation tool in research settings.
CAE Workflow Integration: Before running finite element (FEM) or computational fluid dynamics (CFD) simulations, engineers use simplified models like this to establish physical scale, identify dominant parameters, and define realistic boundary conditions.
Common Misconceptions and Points of Caution
Model assumptions: The mathematical model used here relies on simplifying assumptions such as linearity, homogeneity, and isotropy. Always verify that your real system satisfies these assumptions before applying results directly to design decisions.
Units and scale: Many calculation errors arise from unit conversion mistakes or order-of-magnitude errors. Pay close attention to the units shown next to each parameter input.
Validating results: Always sanity-check simulator output against physical intuition or hand calculations. If a result seems unexpected, review your input parameters or verify with an independent method.
Select a root note (C, D, E, F, G, A, B) from the dropdown menu—this establishes the fundamental frequency in Hz
Choose a chord type (major, minor, dominant 7th, diminished) to define which overtones are present in the harmonic series
Adjust the harmonicsSlider to display 2–16 harmonic partials; higher values reveal upper spectral content above 5 kHz
Use decaySlider to set amplitude envelope decay rate (0.98–0.995); lower values simulate faster string dampening typical in acoustic instruments
Observe the frequency spectrum plot, composite waveform, and harmonic amplitude table updating in real time
Worked Example
Root note A4 (440 Hz fundamental) in major triad with 8 harmonics selected and decay factor 0.992. The visualizer plots partials at 440 Hz (fundamental), 880 Hz (2nd harmonic, E5), 1320 Hz (3rd harmonic, A5), and continuing to 3520 Hz (8th harmonic). Composite waveform shows periodic structure repeating at 2.27 ms intervals. Decay envelope reduces 2nd harmonic amplitude from 0.85 to 0.81 over 500 ms, matching piano damper behavior.
Practical Notes
For piano synthesis, use 12–16 harmonics with decay 0.990–0.993; for guitar, reduce to 6–8 harmonics with sharper decay (0.985) due to fret damping
Minor chords exhibit flatter spectral peaks than major chords because the flattened 3rd (minor third = 1.2 semitones down) shifts harmonic alignment
Dominant 7th chords introduce a tritone (11th harmonic region ~4840 Hz at A4) creating characteristic brightness in jazz contexts
Visualizer assumes equal temperament tuning; cents deviation from just intonation becomes audible above 8 kHz in harmonic series