CalcWorldHub
Free online calculator · no signup

Frame to frame normalized spectral flux calculator

Measure spectral-shape change between adjacent analysis frames without confusing it with uniform gain changes.

4,000 tools
Frame to frame normalized spectral flux calculator — Previous frame magnitudes, Current frame magnitudes and calculation method
Frame to frame normalized spectral flux calculator: inputs and calculation method.

How to use this calculator

Measure spectral-shape change between adjacent analysis frames without confusing it with uniform gain changes.

  1. Enter Previous frame magnitudes, Current frame magnitudes. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Frame to frame normalized spectral flux explained

Measure adjacent-frame spectral-shape change by normalizing magnitude vectors before comparing their frequency-bin values.

Normalized spectral flux0.0919squared normalized magnitude
Normalized spectral flux: 0.091889 squared normalized magnitude in the worked scenario.

A numerical walkthrough

Previous frame magnitudes = [1, 2, 1, 0.5]; Current frame magnitudes = [1, 3, 0.5, 1].

  • Normalized spectral flux: 0.091889 squared normalized magnitude
  • Positive-only spectral flux: 0.018548 squared normalized magnitude

One bin grows while another weakens between [1,2,1,0.5] and [1,3,0.5,1], giving nonzero spectral change.

The model behind the numbers

Normalize each magnitude vector to unit Euclidean norm; flux=Σ(Ck/||C||−Pk/||P||)²; positive flux retains only positive differences.

The two frames must use the same FFT bins, window and calibration. Independent unit-norm scaling removes overall amplitude growth.

What to enter

previous — Previous frame magnitudes
Enter nonnegative magnitudes from the earlier frame on the analysis frequency grid.
current — Current frame magnitudes
Use the same frequency bins and list length as the previous frame; the normalized comparison isolates spectral-shape change from uniform gain.

Interpreting the result

Not an onset detector by itself; no thresholding, temporal smoothing or frequency weighting is included.

Reading the outputs

Full flux is between zero and two for nonnegative vectors; positive flux isolates newly emphasized spectral components.

Frequently asked questions

Does doubling all amplitudes cause flux?

No; independent norm scaling removes uniform gain changes.

Why reject a silent frame?

A zero vector cannot be normalized to unit norm.

Can different FFT lengths be compared?

No. The lists must represent the same frequency coordinates.

How do I use the Frame to frame normalized spectral flux calculator?

Enter Previous frame magnitudes, Current frame magnitudes. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Frame to frame normalized spectral flux?

Previous frame magnitudes = [1, 2, 1, 0.5]; Current frame magnitudes = [1, 3, 0.5, 1]. Normalized spectral flux: 0.091889 squared normalized magnitude Positive-only spectral flux: 0.018548 squared normalized magnitude One bin grows while another weakens between [1,2,1,0.5] and [1,3,0.5,1], giving nonzero spectral change.