tempo_eval.oe1

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

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.

See also oe2.

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

  • estimated_tempo (Optional[float]) – an estimated tempo

  • factor (float) – multiplication factor

Returns

the octave error

Return type

float