From 8f8fdf07edb0a9540a48762497460be433bdc03a Mon Sep 17 00:00:00 2001 From: Peter Broadwell Date: Mon, 27 Sep 2021 21:15:01 -0700 Subject: [PATCH] Pedal should not be considered up at the exact moment when it goes down --- src/piano/Pedal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/piano/Pedal.ts b/src/piano/Pedal.ts index 8d60c17..1d87019 100644 --- a/src/piano/Pedal.ts +++ b/src/piano/Pedal.ts @@ -72,6 +72,6 @@ export class Pedal extends PianoComponent { * Indicates if the pedal is down at the given time */ isDown(time: number): boolean { - return time > this._downTime + return time >= this._downTime } }