C++ Essentia AfterMaxToBeforeMaxEnergyRatio Algorithm














































C++ Essentia AfterMaxToBeforeMaxEnergyRatio Algorithm



Essentia Algorithm Overview
AfterMaxToBeforeMaxEnergyRatio Algorithm
Computes the ratio between the pitch energy after the pitch maximum and the pitch energy before the pitch maximum. It is in standard and streaming mode.

DESCRIPTION
This algorithm computes the ratio between the pitch energy after the pitch maximum and the pitch energy before the pitch maximum. Sounds having a monotonically ascending pitch or one unique pitch will show a value of (0,1], while sounds having a monotonically descending pitch will show a value of [1,∞). In case there is no energy before the max pitch, the algorithm will return the energy after the maximum pitch.

The algorithm throws an exception when input is either empty or contains only zeros.

AfterMaxToBeforeMaxEnergyRatio(pitch) -> {object}


STANDARD MODE

Inputs
  • pitch (vector_real) - the array of pitch values [Hz]


Outputs
  • afterMaxToBeforeMaxEnergyRatio (real) - the ratio between the pitch energy after the pitch maximum to the pitch energy before the pitch maximum.


STREAMING MODE

Inputs
  • pitch (real) - the array of pitch values [Hz]


Outputs
  • afterMaxToBeforeMaxEnergyRatio (real) - the ratio between the pitch energy after the pitch maximum to the pitch energy before the pitch maximum.


EXAMPLE:
 Algorithm* amt = factory.create("AfterMaxToBeforeMaxEnergyRatio");
  pitch >> amt->input("pitch"); 
  amt->output("afterMaxToBeforeMaxEnergyRatio") >>  PC(pool, nameSpace + "pitch_after _max_ to_before_ max_energy_ratio");


Comments