*/
+#include <math.h>
#include "Pitch.h"
using std::string;
Plugin(inputSampleRate),
m_ibuf(0),
m_pitchdet(0),
- m_pitchtype(aubio_pitch_fcomb),
+ m_pitchtype(aubio_pitch_yinfft),
m_pitchmode(aubio_pitchm_freq)
{
}
m_ibuf = new_fvec(stepSize, channels);
- m_pitchdet = new_aubio_pitchdetection(blockSize * 4,
+ m_pitchdet = new_aubio_pitchdetection(blockSize,
stepSize,
channels,
lrintf(m_inputSampleRate),
size_t
Pitch::getPreferredBlockSize() const
{
- return 1024;
+ return 2048;
}
Pitch::ParameterList
desc.description = "Pitch Detection Function Type";
desc.minValue = 0;
desc.maxValue = 4;
- desc.defaultValue = (int)aubio_pitch_fcomb;
+ desc.defaultValue = (int)aubio_pitch_yinfft;
desc.isQuantized = true;
desc.quantizeStep = 1;
desc.valueNames.push_back("YIN Frequency Estimator");