Mixxx

Simac::ConstantQFolder Class Reference

#include <ConstantQFolder.hxx>

List of all members.

Public Types

typedef std::vector< double > Chromagram

Public Member Functions

 ConstantQFolder (unsigned nConstantQBins, int binsPerOctave)
 ~ConstantQFolder ()
void doIt (const std::vector< double > &constantQData)
const Chromagramchromagram () const

Detailed Description

The ConstantQFolder takes a ConstantQ transform and folds its bins into a single Octave to create a Chromagram. Parameters:

  • nConstantQBins: The number of bins on the Constant Q transform.
  • binsPerOctave: The number of bins that corresponds to each octave. Inputs:
  • A constant Q transform as a vector containing the real and imaginary pairs bins, so it is size nConstantQBins * 2 Outputs:
  • A chromogram of binsPerOctave bins.
    Todo:
    Only nConstantQBins that are multiple of binsPerOctave have been tested.

Definition at line 41 of file ConstantQFolder.hxx.


Member Typedef Documentation

typedef std::vector<double> Simac::ConstantQFolder::Chromagram

Definition at line 44 of file ConstantQFolder.hxx.


Constructor & Destructor Documentation

Simac::ConstantQFolder::ConstantQFolder ( unsigned  nConstantQBins,
int  binsPerOctave 
)

Definition at line 37 of file ConstantQFolder.cxx.

Simac::ConstantQFolder::~ConstantQFolder ( )

Definition at line 44 of file ConstantQFolder.cxx.


Member Function Documentation

const Chromagram& Simac::ConstantQFolder::chromagram ( ) const [inline]

Returns a chromagram that is the constant q transform for a a vector containing the added complex module of the bins that correspond to octaves.

Definition at line 58 of file ConstantQFolder.hxx.

void Simac::ConstantQFolder::doIt ( const std::vector< double > &  constantQData)

Definition at line 48 of file ConstantQFolder.cxx.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines