delayCount += (int) ((delay2 * control_rate) / 1000.0);
for (int i = 0; i < delayCount; i++) {
if (Math.abs(0.5 - lfo_output[0]) > 0.000001)
throw new Exception("Incorrect LFO output ("
+"0.5 != "+lfo_output[0]+")!");
lfo.processControlLogic();
}
// After the delay the LFO should start oscillate
// Let make sure output is accurate enough
double p_step = (440.0 / control_rate)