Home▸Articles▸Toys & Play

The Music Box Pin Cylinder & Comb (2D): A Mechanical Symphony

An ancient technology that demonstrates wave interference and resonance in a simple yet elegant manner.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is a Music Box?

A music box is an intricate device that produces musical notes through mechanical means. It consists of a cylinder with pins arranged in specific patterns and a comb with teeth that vibrate when the pins pluck them.

The mechanism was invented in the 18th century and has since become a symbol of craftsmanship and nostalgia.

Mechanics of Sound Production

When the cylinder rotates, each pin strikes a tooth on the comb, causing it to vibrate at its natural frequency. The vibration is then converted into sound waves that we perceive as music.

The pitch and timbre of the notes depend on the spacing between pins and the physical properties of the comb material.

live demo · related simulation● LIVE

Wave Interference and Resonance

When a pin strikes a tooth, it creates a series of sound waves that travel through the air. These waves interfere with each other, either constructively or destructively, depending on their phase difference.

Resonance occurs when the frequency of these waves matches the natural frequency of the comb, amplifying the resulting sound.

Controlling Sound with Pin Placement

By carefully placing pins at specific positions along the cylinder, one can control which teeth are plucked and thus determine the sequence of notes played.

The speed of rotation affects how quickly these notes are played, allowing for variations in tempo.

Frequently asked questions

How does changing the comb size affect the sound?

A larger comb has longer teeth, which vibrate at lower frequencies. This results in a deeper and richer tone compared to a smaller comb with shorter teeth that produce higher-pitched sounds.

What is the role of pin placement on the cylinder?

Pin placement determines which teeth are plucked as the cylinder rotates, effectively defining the musical notes played by the music box. Properly spaced pins ensure a clear and harmonious sequence of tones.

Can different materials for the comb change the sound quality?

Yes, different materials can affect the stiffness and density of the comb, which in turn influence its natural frequency and the resulting sound. Harder materials produce clearer notes, while softer ones can introduce a more mellow tone.

How does the rotation speed impact the music box's performance?

The rotation speed controls how quickly the pins pluck the teeth of the comb. Faster speeds result in faster playing and higher pitch, whereas slower speeds produce lower notes with a longer duration between each note.

Try it live

Everything above runs in your browser — open Music Box Pin Cylinder & Comb (2D) and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Music Box Pin Cylinder & Comb (2D) simulation

What did you find?

Add reproduction steps (optional)