How It Works

How It Works

Why a major triad looks smooth and a tritone looks jagged

ChordSine is a chord waveform visualizer for seeing the shape of music, designed like an instrument rather than a graph. Consonance and dissonance are not only things you hear; they are visible properties of the resulting waveform. When you hold a few notes, ChordSine shows each sine-wave component or their sum as separate view modes. The instrument marks where the pattern repeats, because the repeat is what turns the shape into something you can read.

Consonant intervals are built from simple frequency ratios. A perfect fifth is close to 3:2, an octave is 2:1, a major triad stacks ratios that line up quickly. Because the parts line up, the combined wave repeats cleanly over a short period, so it draws as a smooth, regularly repeating shape.

Dissonant intervals are built from complex ratios. A tritone is near 45:32, so its parts almost never line up. The combined wave takes a long time to repeat, or never quite closes, so it draws as a long, restless, jagged shape. That difference between a short clean period and a long unsettled one is the whole point: you can see the tension you have always been able to hear.

Change the waveform from sine to sawtooth, square, or triangle and the visual texture changes too. These are oscillator waveforms, not full instrument timbres: a compact way to compare a pure wave with richer wave shapes.

From a chord to a whole song: the Sineprint

Sinescope shows a single moment, the chord you are holding, as a waveform. Sineprint asks the same question of an entire piece. Play a song on the keyboard or upload a MIDI file and ChordSine winds the whole performance into one still image called a Sineprint. Time spirals from the center outward, so the opening sits at the middle and the final chord closes the outer edge.

The same consonance you can see in a Sinescope waveform becomes color. At each moment ChordSine measures how cleanly the sounding notes line up, the ratio idea behind the smooth triad and the jagged tritone, and paints the spiral with it: consonant passages read cool and green, dissonant ones warm and amber. A calm, mostly consonant piece draws a mostly cool ring, while a restless, chromatic one flickers warm.

Loudness shapes the line itself. Louder, denser moments push the spiral into wider ripples; quiet passages draw it thin and smooth. So a single Sineprint carries both the harmony and the dynamics of a performance in one readable shape, the same idea of seeing what you hear, stretched across a whole song.

To look inside the picture, select Inspect beneath the Sineprint. Choose a point on the spiral, then move or resize the section below it. The waveform shows the notes sounding at that moment and explains why they read as smooth or rough.

A Sineprint is deterministic: the same notes always draw the same image, so it reads as a kind of fingerprint of a performance. Two takes of the same piece render as recognizably the same shape, and a different piece looks unmistakably different. Everything is computed in your browser, and nothing you play or upload is sent to a server.

A short glossary

Consonance
How stable or restful a combination of notes sounds. In ChordSine it shows up as a wave that repeats cleanly over a short period.
Dissonance
How tense or unstable a combination sounds. It shows up as a wave whose period is long, irregular, or never quite closes.
Period
The length of one full repetition in the waveform pattern. A short period reads as smooth and settled; a long one reads as jagged and restless. ChordSine marks where that pattern repeats.
Timbre
The character of a tone, shaped by its overtones and envelope. A flute and a violin on the same note sound different because their timbres differ. ChordSine's current waveform control is simpler than that: it switches oscillator wave shapes.
Partial
A single sine component of a tone. A pure sine is one partial; richer waveforms contain multiple partials stacked above the fundamental, and their agreement or clash is what your eye and ear pick up.
Sineprint
A whole song or performance drawn as a single spiral. Time winds from the center outward, harmony sets the color (consonant cool, dissonant warm), and loudness sets how wide the line ripples. The same input always draws the same image.

Further reading

ChordSine belongs to a broader field of music visualization. A notable earlier work is Martin Wattenberg's Shape of Song (2001).

  • Martin Wattenberg, Shape of Song (2001). Arc diagrams that reveal repeated sequences in music. ChordSine explores a different question: how notes combine as waveforms in real time.

Sustain the playground

Sinescope is free to play, with no ads and no tracking cookies. Contributions are voluntary and unlock nothing: no perks, no features, no account, and no change to how you may use it. If it is useful to you, you can contribute to help cover its running costs.

Try it

The fastest way to understand any of this is to play with it. Open Sinescope and hold a major triad, then a tritone, and watch the two shapes. Then open Sineprint and play or drop in a song to watch a whole piece wind into one. The instrument teaches by being played.