tempo_eval.aoe1

tempo_eval.aoe1(reference_tempo, estimated_tempo, factor=1.0)[source]

Absolute octave error for two tempi values allowing for a given factor. If a reference or estimated tempo of 0 is given, this function returns NaN. If an estimate of None is given, this function returns NaN.

When averaged, results correspond to MAOE1.

See also aoe2.

Parameters
  • reference_tempo (float) – a reference tempo, should not be 0

  • estimated_tempo (Optional[float]) – an estimated tempo, should not be 0

  • factor (float) – multiplication factor

Returns

the absolute octave error

Return type

float