Marsyas
0.6.0-alpha
|
Entity representing a given {period, phase} hypothesis regarding a train of beat positions paced by the following tempo. A set of initial agents are feeded by the initial hypothesis given by an initial tempo induction stage. Each BeatAgent is recursively evaluated in real-time, by a given score function (heuristics), around each predicted beat. According to the goodness-of-fit between each agent's prediction and the correspondent local maxima in the observed data (given by the onset detection function calculated by the Spectral Flux) the agent's current score is incremented or decremented, calling for the creation of new agents (children) when large discrepancies are observed. More...
#include <BeatAgent.h>
Inherits MarSystem.
Public Member Functions | |
BeatAgent (std::string name) | |
BeatAgent (const BeatAgent &a) | |
MarSystem * | clone () const |
void | myProcess (realvec &in, realvec &out) |
Processes data. | |
~BeatAgent () |
Entity representing a given {period, phase} hypothesis regarding a train of beat positions paced by the following tempo. A set of initial agents are feeded by the initial hypothesis given by an initial tempo induction stage. Each BeatAgent is recursively evaluated in real-time, by a given score function (heuristics), around each predicted beat. According to the goodness-of-fit between each agent's prediction and the correspondent local maxima in the observed data (given by the onset detection function calculated by the Spectral Flux) the agent's current score is incremented or decremented, calling for the creation of new agents (children) when large discrepancies are observed.
Input: Onset detection fucntion (uses Spectral Flux). Output Format: [Beat/Eval/None|Tempo|PrevBeat|Inner/Outter|Error|Score]
Controls:
Definition at line 49 of file BeatAgent.h.
BeatAgent | ( | std::string | name | ) |
Definition at line 33 of file BeatAgent.cpp.
Definition at line 43 of file BeatAgent.cpp.
~BeatAgent | ( | ) |
Definition at line 65 of file BeatAgent.cpp.
Implements MarSystem.
Definition at line 70 of file BeatAgent.cpp.
Processes data.
in | Input data to read. |
out | Output data to write. |
Implement this method in subclass to define specific data processing.
Implements MarSystem.
Definition at line 238 of file BeatAgent.cpp.