The method
How to make a music box that plays your tune
Type a melody or load a tune, and the generator gives the comb one tooth for every note the tune uses, works out each tooth’s length, and sets a pin on the drum for every note: around the drum by its beat, along the drum by its tooth. One turn of the crank plays the tune.
- Write the melody in the text box or on the piano roll, and press Play preview to hear it.
- Pick the comb: printed in PLA or PETG, a metal comb you have measured, or a strip for a paper-strip movement.
- Set the drum: tempo and surface speed give its size; pin height and overlap give the pluck.
- Print, assemble and tune: trim each tooth tip until it matches a tuner app.
The comb
How long is each tooth?
Each tooth is a small cantilever: clamped at the heel, free at the tip. Its first ringing frequency is
f = (1.875² ÷ 2π) × (t ÷ L²) × √(E ÷ 12ρ)
where t is the tooth’s thickness, L its free length, E the plastic’s stiffness and ρ its density. Solving for L gives each tooth’s length. A note an octave higher needs a tooth about 0.71 times as long.
| Material | Stiffness E (flexural, printed flat) | Density ρ | A5 (880 Hz), 1.5 mm thick |
|---|---|---|---|
| PLA | 3.1 GPa | 1.24 g/cm³ | 20.9 mm |
| PETG | 1.7 GPa | 1.27 g/cm³ | 17.8 mm |
Treat these lengths as a starting estimate. Printed teeth vary a lot: layer bonding, infill, the clamp at the heel, temperature and the brand of filament all change the pitch, often by a semitone or more. That is why each tooth starts 3% long. Plastic teeth also ring softly and briefly next to a steel comb: expect a gentle, wooden plink rather than a chime.
Tuning
Tuning the comb
- Too flat (low): trim or sand the tooth tip a little at a time. Shorter is higher.
- Too sharp (high): sand the underside of the tooth near the heel to thin it. Thinner is lower.
- Check each tooth with a free tuner app: pluck it and read the note. Give it a few seconds; tooth tips warm and settle.
- Dull or buzzing teeth: make sure the heel is screwed down firmly and the tooth is not rubbing its neighbour.
Assembly
Putting it together
- Screw the comb onto its block with two M3 screws 10 to 12 mm long; they cut their own thread in the pilot holes.
- Slide the axle through one cheek, the drum and the other cheek. The axle is octagonal, so the drum turns with it.
- Push the crank onto the axle on one side and the collar on the other.
- Turn the crank clockwise as you face it: the pins rise under the comb and lift each tooth until it slips off at the tip.
| Setting | What it does | Default |
|---|---|---|
| Tempo | Beats per minute; with the tune’s length, sets how long one turn takes | 120 |
| Drum surface speed | Drum circumference = beats × speed × 60 ÷ tempo | 8 mm/s |
| Pin height | How far pins stand off the drum | 1.2 mm |
| Pluck overlap | How far the pins reach into the teeth | 0.6 mm |
| Tooth thickness | Thicker teeth are longer and louder | 1.5 mm |
Printing
Printing tips
- No supports: the drum prints standing with its pins pointing out sideways; each pin has a 45° underside. The frame’s axle holes are teardrops, and the axle lies on a flat face.
- Comb: print flat, teeth down, at 100% infill or with enough walls that the teeth are solid. Use a layer height that divides the tooth thickness.
- Drum pins: a 0.4 mm nozzle and 0.12 to 0.16 mm layers keep the pins crisp.
- Metal combs: very small combs need pins finer than most printers can make. Combs with a tooth pitch of 2 mm or more work best.
Questions, answered
Is it free to use?
Yes. No account, no watermark, no limits.
Will it fit my printer?
Pick your printer below the preview and choose “Laid out to print”: the parts spread over as many plates as needed. A long tune makes a bigger drum; lower the drum surface speed or raise the tempo to shrink it.
How good does a printed comb sound?
Softer and shorter than steel, and the tuning is approximate until you trim it. It is a lovely, gentle sound, but it will not ring like a store-bought music box. For a brighter sound, use a metal comb and print only the drum and frame.
Can I sell music boxes I print?
The designs you make are yours. The built-in tunes are in the public domain in the United States; check any other melody’s copyright before selling it. The box has small parts, so check toy-safety rules before selling for children.
Sources
Print advice is a starting point drawn from these references, checked on 2026-11-12. Community posts are one maker's experience, not a specification.
- Prusament PLA technical data sheet (flexural modulus, density) Prusa Polymers
- Prusament PETG technical data sheet (flexural modulus, density) Prusa Polymers
- Euler–Bernoulli beam theory: cantilever vibration Wikipedia
- US judge approves “Happy Birthday” settlement World Intellectual Property Review
- Web Audio API MDN Web Docs