protected void updateShifts(float detected, float shifted, int targetNote) { if (shifts.Count >= numshifts) { shifts.Dequeue(); } PitchShift shift = new PitchShift(detected, shifted, targetNote); Debug.WriteLine(shift); shifts.Enqueue(shift); }
protected void updateShifts(float detected, float shifted, int targetNote) { if (shifts.Count >= numshifts) shifts.Dequeue(); PitchShift shift = new PitchShift(detected, shifted, targetNote); Debug.WriteLine(shift); shifts.Enqueue(shift); }