Marsyas  0.5.0-beta1
Public Member Functions
PhaseLock Class Reference

Retrieves the N best {period, phase} hypotheses by affering the phase more suited to each period (by correlating each of the N*M hypotheses with the onset detection function within the initial induction window). Besides, it tries to infer the correct metre (duple or triple) by atributing the correspondent hierarchical set of initial scores, normalized in accordance to the weigth imposed by the time of the initial induction window. It supports ground-truth mode which inputs the first two beats retrieved from a ground-truth beat times annotation file, for initially assigning (only) one agent with the ground-truth period and phase. More...

#include <PhaseLock.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
void myProcess (realvec &in, realvec &out)
 Processes data.
 PhaseLock (std::string name)
 PhaseLock (const PhaseLock &a)
 ~PhaseLock ()

Detailed Description

Retrieves the N best {period, phase} hypotheses by affering the phase more suited to each period (by correlating each of the N*M hypotheses with the onset detection function within the initial induction window). Besides, it tries to infer the correct metre (duple or triple) by atributing the correspondent hierarchical set of initial scores, normalized in accordance to the weigth imposed by the time of the initial induction window. It supports ground-truth mode which inputs the first two beats retrieved from a ground-truth beat times annotation file, for initially assigning (only) one agent with the ground-truth period and phase.

Input: Onset detection fucntion (uses Spectral Flux). Output: Matrix with the N ( = nrPeriodHyps) best {period, phase} hypotheses:

[Periodi|bestPhaseForPeriodi|initialScorei] [ ... | ... | ... ] [PeriodN|bestPhaseForPeriodN|initialScoreN]

Controls:

Definition at line 58 of file PhaseLock.h.


Constructor & Destructor Documentation

PhaseLock ( std::string  name)

Definition at line 31 of file PhaseLock.cpp.

PhaseLock ( const PhaseLock a)

Definition at line 42 of file PhaseLock.cpp.

~PhaseLock ( )

Definition at line 88 of file PhaseLock.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 93 of file PhaseLock.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 1355 of file PhaseLock.cpp.


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