​

The Sound of Pi
Play melodies based on the digits of π.

Run the code to create a musical note. Click Play to hear the sound it makes. Try other note numbers:
1.

Sound[SoundNote[
0
]]
In[]:=
Play a melody. Try other sequences of notes:
2.

Sound[SoundNote/@{
0,0,2,0,5,4
},2]
In[]:=
Get the first 12 digits of π. Try longer or shorter sequences:
3.

First[RealDigits[Pi,10,
12
]]
In[]:=
Play the first 12 digits of π. Try longer or shorter sequences:
4.

Sound[SoundNote/@First[RealDigits[Pi,10,
12
]],2]
In[]:=
Play the digits of π on a marimba. Try other instruments, such as "Clarinet", "Trumpet" or "ElectricPiano":
5.

Sound[Style[SoundNote/@First[RealDigits[Pi,10,12]],"Marimba"],2]
In[]:=
​

Explore this further, or try another Exploration!

GOFURTHER»