closes #5 - rounding vs truncation error
This commit is contained in:
@ -101,7 +101,7 @@ public:
|
||||
}
|
||||
float update(float Pdet, int Ptarget) {
|
||||
// Detect large jump (new note)
|
||||
float diff = Pdet - (int)Pdet;
|
||||
float diff = Pdet - (int)(Pdet+.5);
|
||||
|
||||
if (Ptarget != PtargPrev) {
|
||||
// Immediately reset to new note
|
||||
|
||||
Reference in New Issue
Block a user