πKNOWS Blog Relax Sign in

What does pi sound like? Famous tunes hidden in pi

Play each digit of pi as a note and pi makes music. The openings of famous tunes are in it: the first 10 notes of Ode to Joy at position 1,353,533,097, the first 9 of Happy Birthday 7 times in the first 10 billion digits. Type a tune in notes and hear where pi plays it.

The first 10 notes of Ode to Joy, E E F G G F E D C C, found in the digits of pi at position 1,353,533,097, in the music view
Ode to Joy, its first 10 notes at position 1,353,533,097, played by the digits 2234432100.

How a digit becomes a note

The ten digits are the ten white keys from middle C up to the E above the next C: 0 is C, 1 is D, 2 is E, 3 is F, 4 is G, 5 is A, 6 is B, and 7, 8 and 9 are the high c, d and e, written in small letters on the map. The first digits after the 3, 14159, play D G D A e.

Press play on any result and its digits sound as a melody, with chords chosen to fit it, in the sound you pick, from piano to music box. Keep playing goes on past the match into the digits that follow, for as long as you listen.

The first 100 digits of pi as notes

To play pi on a piano: the 3 before the decimal point is F, then the first 100 decimals, ten to a row. Small letters are the high c, d and e.

DigitsNotes
1415926535D G D A e E B A F A
8979323846d e c e F E F d G B
2643383279E B G F F d F E c e
5028841971A C E d d G D e c D
6939937510B e F e e F c A D C
5820974944A d E C e c G e G G
5923078164A e E F C c d D B G
0628620899C B E d B E C d e e
8628034825d B E d C F G d E A
3421170679F G E D D c C B c e

Other versions give the digits other notes, often 1 as C, so the same digits make another tune.

Famous tunes in pi

We typed the openings of well known tunes, all in the public domain, and searched the first 10 billion digits for the longest beginning of each that pi plays:

Tune, notes foundTimesFirst at
Frère Jacques
CDECCDECEFGE, 12 of 14
15,151,600,975
Ode to Joy
EEFGGFEDCC, 10 of 15
11,353,533,097
Twinkle, Twinkle, Little Star
CCGGAAGFFE, 10 of 14
15,060,429,688
Mary Had a Little Lamb
EDCDEEEDDD, 10 of 13
19,784,630,234
Brahms' Lullaby
EEGEEGEGcB, 10 of 13
16,437,243,649
Happy Birthday
GGAGcBGGA, 9 of 12
71,590,888,871
Amazing Grace
CFAFAGFDC, 9 of 9
11637,779,817
Eine kleine Nachtmusik
GDGDGDGBd, 9 of 9
1651,977,428
Beethoven's Fifth
AAAFGGGE, 8 of 8
11071,984,403
Wedding March (Wagner)
CFFFCGEF, 8 of 8
10226,276,610

Frère Jacques is the luckiest. A tune of 12 notes has about one chance in 100 of being in the first 10 billion digits, and its opening is there once, at position 5,151,600,975. Short openings come back often: the eight notes of Beethoven's Fifth, A A A F G G G E, play 110 times.

Play Frère Jacques

Why only the opening

Each note is one digit, one in ten, so each note more makes a tune 10 times rarer. In the first 10 billion digits a tune of 8 notes turns up about 100 times, one of 9 notes about 10 times and one of 10 notes about once. From 11 notes on, a tune most likely lies further in, which is why the tunes above stop after 8 to 12 notes.

If the digits of pi behave like chance, as every test so far suggests, every tune is in there somewhere, a whole symphony too, unimaginably far in. No one has proved it yet, as does pi contain every number explains.

The pi song that went to court

In 2011 the musician Michael Blake posted a video, What Pi Sounds Like, that plays the first 31 decimals of pi as notes at 157 beats a minute, and news sites around the world shared it. Lars Erickson, who had written a Pi Symphony in 1992, sued Blake over it. On Pi Day, 14 March 2012, a federal court in Oregon dismissed the case: pi is a fact that no one can own, and so is the idea of playing it as music. What a composer owns are their own choices, the scale, the rhythm and the harmony.

How to type a tune

Play Ode to Joy

Type any tune in notes:

Frequently asked questions

What does pi sound like?

Read each digit as a note, 0 as middle C up to 9 as the E above the next C, and pi sounds like a tune that never ends and never repeats. On piknows any result plays as a melody with chords, and it can keep playing into the digits that follow.

Is Happy Birthday in pi?

Its first 9 notes are, 7 times in the first 10 billion digits, first at position 1,590,888,871. The first two lines, all 12 notes, most likely lie much further in.

How do you turn pi into music?

Give each digit a note. On piknows the digits 0 to 9 are the white keys from middle C to the E above the next C, so 14159, the digits after the 3, play D G D A and the high E.

What are the notes of pi on the piano?

On piknows 0 is middle C up to 9 as the E above the next C, so 3.14159 plays F, then D G D A and the high E. This article lists the first 100 decimals as notes, ten to a row.

Can the music of pi be copyrighted?

Not pi itself. In 2012 a US court dismissed a copyright case over a Pi Symphony: pi is a fact no one can own, and so is the idea of playing it as music. A composer owns only the choices of their own piece, such as its rhythm and harmony.

Is every song in pi?

Probably, if its digits behave like chance, but no one has proved it. Each note makes a tune 10 times rarer, so in the first 10 billion digits most tunes are found only for their first 8 to 10 notes.

How do I find a tune in pi?

Open the music view on piknows and type the notes as letters, such as EEFG GFED CC for Ode to Joy, a phrase to a group. The map flies to where pi plays them, and the play button lets you hear them.