tempo_eval.equal2

tempo_eval.equal2(reference_tempo, estimated_tempo, tolerance=0.04)[source]

Determines whether two tempi are considered equal, given an allowed tolerance and the factors 1, 2, 3, 1/2, and 1/3.

When averaged, results correspond to Accuracy 2.

See also equal1.

Parameters
  • reference_tempo (float) – reference tempo

  • estimated_tempo (Optional[float]) – estimated tempo

  • tolerance (float) – tolerance, default is 0.04, i.e., 4%

Returns

True or False

Return type

bool

See also

Fabien Gouyon, Anssi P. Klapuri, Simon Dixon, Miguel Alonso, George Tzanetakis, Christian Uhle, and Pedro Cano. An experimental comparison of audio tempo induction algorithms. IEEE Transactions on Audio, Speech, and Language Processing, 14(5):1832– 1844, 2006.