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 } }