Marsyas  0.5.0-beta1
Public Member Functions
BeatAgent Class Reference

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)
MarSystemclone () const
void myProcess (realvec &in, realvec &out)
 Processes data.
 ~BeatAgent ()

Detailed Description

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.


Constructor & Destructor Documentation

BeatAgent ( std::string  name)

Definition at line 33 of file BeatAgent.cpp.

BeatAgent ( const BeatAgent a)

Definition at line 43 of file BeatAgent.cpp.

~BeatAgent ( )

Definition at line 65 of file BeatAgent.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 70 of file BeatAgent.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Processes data.

Parameters:
inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 238 of file BeatAgent.cpp.


The documentation for this class was generated from the following files: