Marimba Studio home

Marimba studio

Measure pitch and overtones, one strike at a time.

Marimba, C2 to C7. Scroll across and tap a bar to hear its reference tone.

–
Strike a bar to see its tuning

Press Record and strike one bar at a time. The note and its overtones appear while the bar rings.

Settings

Spectrum of the last strike

Dashed lines mark the target overtones. Dots mark the peaks the tuner measured.

Strikes in this recording

Saved measurements

If a bar reads out of tune

Check the measurement first

How far is too far

ReadingThe noteAn overtone
Within 5 centsIn tune. Leave the bar alone.In tune.
5 to 15 centsYou can hear it when another instrument holds the same note. Write it down and measure again on another day.It changes the colour of the sound more than the pitch. Write it down.
More than 15 centsOut of tune. The bar needs retuning.The bar sounds dull or sour next to its neighbours. Have it corrected together with the note.
50 cents or more,
or a short, dead sound
Look for a crack, a bar hung in the wrong place, a bar touching a post or its neighbour, or a worn cord. A cracked bar cannot be retuned and has to be replaced.

These bands are the working guide of this tuner. Makers do not publish one common tolerance.

How a bar is retuned

Material can be taken off a bar but never put back, so a tuner removes a little, measures, and repeats.

Do not sand the bars of a school instrument yourself. Save your results, download the table and give it to whoever looks after the instrument. The bars then go to the maker or to a workshop that retunes tuned percussion.

By instrument

Sources: Yamaha, care for mallet instruments and the tuning of percussion instruments; Mechanical Music Digest, the construction and tuning of vibrating bars; Percussion Clinic Adelaide, building a marimba.

How it works
  1. Recording. The microphone signal is used as it arrives, at the sample rate of the device. Echo cancellation, noise suppression and automatic gain are switched off, because they change the sound. A gentle filter removes any constant offset and rumble below 40 Hz.
  2. Finding strikes. While recording, the tuner follows the loudness in steps of 10 ms and keeps a running estimate of the room noise. A strike begins when the loudness jumps by more than half within a few hundredths of a second and is at least four times the room noise. The first reading appears about a tenth of a second later and is refined while the bar rings, for up to 1.5 s or until the sound has died away. With an instrument chosen, a sound is listed only if it rings like a struck bar: it starts suddenly, dies away, keeps its pitch, and has no row of harmonics at 2, 3, 5 or 6 times the note, which is the mark of a voice and of string and wind instruments. Note only measures any steady tone. In an uploaded recording, a strike is a peak of the loudness that rises by at least 20% of the loudest one, with strikes at least 0.3 s apart.
  3. Hann window. Each piece of sound, N samples long, is faded in and out by multiplying sample n by w(n) = 0.5 × (1 − cos(2πn / (N − 1))) Without this, the sharp cut at the two edges would add false frequencies to the spectrum.
  4. Fourier transform. The windowed piece is padded with zeros to a power of two, at least 4 times its length, and transformed with an FFT. Bin k stands for the frequency k × fs / N, where fs is the sample rate and N the padded length. Levels are given in decibels below the strongest bin above 60 Hz: level = 20 × log10(|X(k)| / max |X|)
  5. Peaks. A peak is a local maximum that stands at least 15 dB above the lowest point between it and any taller peak, and is no lower than −70 dB. Of two peaks closer than 15 Hz, only the taller one is kept.
  6. Between the bins. A parabola is fitted through the peak bin k and its two neighbours, whose levels are a, b and c. Its top lies at k + ½ × (a − c) / (a − 2b + c) which gives the frequency to a small fraction of a bin.
  7. The note. The fundamental f1 is the strongest peak above 60 Hz, unless a clear peak sits at a half, a third or a quarter of that frequency, or at another target ratio below it. That lower peak is then the fundamental, as long as it is no more than 20 dB weaker and is not mains hum at 50 or 60 Hz. A small microphone hears little of a low bar’s note and much more of its overtones. So below 200 Hz the tuner also accepts a weak peak as the note when the bar’s overtones sit where that note would put them, and if there is no peak at all it says so instead of naming an overtone. If you type the bar’s note, the tuner takes the strongest peak within 8% of it instead.
  8. Note name and cents. The note is n semitones from A4, and 100 cents make one semitone: n = round(12 × log2(f1 / A4)) target = A4 × 2n/12 error = 1200 × log2(f1 / target) cents
  9. Overtones. For each target ratio t, the strongest peak between 0.8 × t × f1 and 1.2 × t × f1 is taken. Its ratio r = f / f1 is shown with its error, 1200 × log2(r / t) cents. A peak counts only if it stands well above the noise around it. An overtone that fades long before the fundamental is read from the start of the strike.
  10. Several strikes. Live mode shows each strike on its own. For an uploaded recording of one bar, the results are averaged over the strikes, and the spread (±) is their standard deviation, which shows how repeatable the measurement is.

Where the targets come from: a plain bar with free ends has overtones at 2.76 and 5.40 times its fundamental. These numbers are the squares of the roots of cos x × cosh x = 1, divided by the square of the first root. Makers carve an arch under a marimba bar, which lowers the fundamental much more than the first overtone, and stop when the ratio reaches 4.