THE TUNING WORKSPACE

Spectral Centroid Calculator

Calculate a magnitude-weighted frequency centre from supplied frequency bins and nonnegative linear magnitudes.

Spectral Centroid Calculator

Calculate a magnitude-weighted frequency centre from supplied frequency bins and nonnegative linear magnitudes.

CALCULATED RESULT—

Your result appears below the controls.

Entered values, result and interpretation limits

Ready. Use supplied values; no audio is measured by this calculator.

Compare and save a numerical result

Keep baseline A in this tab, then calculate or capture comparable result B. No account history or audio recording is created. Reset clears the baseline.

Finish a valid result first.

Baseline A and current B; numeric differences require matching units and task.
MeasurementBaseline ACurrent BB − A, same unit

Calculate a magnitude-weighted frequency centre from supplied frequency bins and nonnegative linear magnitudes. The result is calculated from your stated inputs, with assumptions and units kept in the table.

For your ordinary speaking-pitch baseline, start with the voice deepness test. Keep that microphone task separate from the supplied-value calculations and examples on this page.

Inspect the arithmetic behind a spectral centre

Supply frequencies and their linear magnitudes, one pair per line. The calculator finds the magnitude-weighted mean frequency and lists the inputs used. This is a small numerical model of a spectral centroid, not an audio spectrum analyser. It does not perform an FFT, identify resonance peaks or estimate your fundamental pitch. Use it when you want to understand how different bin weights move a spectral centre, or verify the arithmetic of a deliberately small example. Use the Voice Tone Analyzer when you need implemented sample-based measurements rather than supplied bins.

Use linear magnitudes rather than decibel levels

Each weight must be a nonnegative linear magnitude. A decibel value is logarithmic and cannot be substituted as though it were a direct weight. Negative magnitude values are rejected, and an all-zero spectrum has no defined weighted centre. If you begin with another representation, convert it using the appropriate reference and definition before using this page. The tool cannot infer whether an unlabeled number represents amplitude, power or a decibel level. Consistent input definitions are essential to interpretation. Read Spectral Centroid Is Not a Voice-Depth Score before turning a weighted centre into a personal depth score.

Check the weighted-mean formula

Multiply each bin frequency by its magnitude, add the products and divide by the sum of magnitudes. With one hundred Hz weighted by one and three hundred Hz weighted by three, the numerator is one thousand and the total magnitude is four. The centroid is two hundred fifty Hz. An ordinary unweighted average of those two frequencies would be two hundred Hz, which answers a different question. The example makes the role of the weights visible without claiming to represent a real voice. The Harmonics vs Fundamental guide separates periodicity from spectral contributions.

Explore which changes move the result

Raise the weight of a high-frequency bin while leaving other weights fixed and the centroid moves upward. Multiply every magnitude by the same positive factor and the result stays unchanged, because numerator and denominator scale together. These are useful checks when testing a numerical implementation. The centroid remains between the lowest and highest frequencies that have positive weight. A value near a particular frequency does not mean the signal contains a strong component exactly at that frequency. Read Vocal Resonance vs Pitch when two sounds share a pitch but differ in spectral character.

Keep centroid separate from pitch and voice depth

A spectral balance statistic is not the same as the repeating fundamental of a voiced signal. Consonants, noise, equalisation and the included analysis bandwidth can change a real recording's spectral balance. This supplied-bin calculation does not distinguish those causes. Do not translate its result into a confident, warm, masculine or healthy voice rating. When comparing two actual analyses, use the same windowing, bin definition, magnitude convention and frequency coverage before interpreting a numerical difference. The Human Voice Frequency Range guide distinguishes fundamental, singing and spectral ranges.

Use the table as the accessible reference

The diagram displays the entered bin positions and relative vertical weights, while the table gives every frequency and magnitude explicitly. It is not a continuous spectrum reconstructed between your points. Up to fifty pairs are accepted, with frequencies from zero to twenty thousand Hz and magnitudes from zero to one billion. At least one weight must be positive. These bounds keep the small calculation readable and finite; they do not describe the frequency response or calibrated sensitivity of any microphone.

Calculate, verify and retain the result

Enter your own values using the labels above, then choose Calculate or the reference-pair action. Use example restores the displayed illustrative inputs and labels them as an example rather than a personal measurement. Changing a field clears the previous result so it cannot be mistaken for a calculation from the new inputs. An invalid submission produces an actionable message instead of keeping a stale answer.

Copy result and Download CSV retain the numerical table, including its units and scope. The CSV is not an audio recording, an image or a professional assessment. Keep the input source and task notes with it. Reset restores the starting fields and clears the committed result. Calculations run in this browser without a calculation API or a personal account; ordinary website requests and any separately enabled Analytics are distinct from this local arithmetic.

Check a known example

Numerical example, not a personal measurement.
Stated input100 Hz × magnitude 1; 300 Hz × magnitude 3
Expected relationship250 Hz centroid; not necessarily a component at 250 Hz

Keep the input convention with the result. Extra decimal places do not establish measurement accuracy.

Frequently asked questions

Is the centroid the strongest frequency?

No. It is a weighted centre across the supplied bins. The strongest individual bin and the weighted centre can be different, and the centre can fall between bins.

Can I paste an audio file?

No. Paste numerical frequency–magnitude pairs. For a recording-based descriptive analysis, use the separate Voice Tone Analyzer and its documented limits.