Static Public Member Functions | List of all members
PitchDetection Class Reference

A wrapper class around the dywapitchtrack library that provides JUCE-type interface methods. More...

Static Public Member Functions

static double detectPitch (const File &fileToScan, AudioSampleBuffer &workingBuffer, double sampleRate)
 Scans a whole file and returns the pitch. More...
 
static double detectPitch (const AudioSampleBuffer &buffer, int startSample, int numSamples, double sampleRate)
 detects the pitch in the audio buffer. More...
 
static int getNumSamplesNeeded (double sampleRate)
 Returns the number of samples that is needed to detect 50 Hz. More...
 
static int getNumSamplesNeeded (double sampleRate, double minFrequencyToAnalyse)
 Returns the number of samples that is needed to detect the given frequency. More...
 

Detailed Description

A wrapper class around the dywapitchtrack library that provides JUCE-type interface methods.

Member Function Documentation

static double detectPitch ( const File &  fileToScan,
AudioSampleBuffer &  workingBuffer,
double  sampleRate 
)
inlinestatic

Scans a whole file and returns the pitch.

You have to supply a working buffer that is used to read the data from the file. It must be stereo and have the desired length that can be obtained by getNumSamplesNeeded()

static double detectPitch ( const AudioSampleBuffer &  buffer,
int  startSample,
int  numSamples,
double  sampleRate 
)
inlinestatic

detects the pitch in the audio buffer.

static int getNumSamplesNeeded ( double  sampleRate)
inlinestatic

Returns the number of samples that is needed to detect 50 Hz.

static int getNumSamplesNeeded ( double  sampleRate,
double  minFrequencyToAnalyse 
)
inlinestatic

Returns the number of samples that is needed to detect the given frequency.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.