process method

bool process(
  1. List<double> block,
  2. double pitch
)

Implementation

bool process(List<double> block, double pitch)
{
    double pitchChange = _pitchChangeScale * (pitch - _rootKey) + _tune;
    double pitchRatio = _sampleRateRatio * pow(2, pitchChange / 12);
    return _fillBlock(block, pitchRatio);
}