libKeyFinder
A small C++11 library for estimating the musical key of digital audio.
Public Member Functions | List of all members
KeyFinder::AudioData Class Reference

Public Member Functions

unsigned int getChannels () const
 
unsigned int getFrameRate () const
 
double getSample (unsigned int index) const
 
double getSampleByFrame (unsigned int frame, unsigned int channel) const
 
double getSampleAtReadIterator () const
 
unsigned int getSampleCount () const
 
unsigned int getFrameCount () const
 
void setChannels (unsigned int newChannels)
 
void setFrameRate (unsigned int newFrameRate)
 
void setSample (unsigned int index, double value)
 
void setSampleByFrame (unsigned int frame, unsigned int channels, double value)
 
void setSampleAtWriteIterator (double value)
 
void addToSampleCount (unsigned int newSamples)
 
void addToFrameCount (unsigned int newFrames)
 
void advanceReadIterator (unsigned int by=1)
 
void advanceWriteIterator (unsigned int by=1)
 
bool readIteratorWithinUpperBound () const
 
bool writeIteratorWithinUpperBound () const
 
void resetIterators ()
 
void append (const AudioData &that)
 
void prepend (const AudioData &that)
 
void discardFramesFromFront (unsigned int discardFrameCount)
 
void reduceToMono ()
 
void downsample (unsigned int factor, bool shortcut=true)
 
AudioDatasliceSamplesFromBack (unsigned int sliceSampleCount)
 

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