diff --git a/packages/tone/pianoroll.mjs b/packages/tone/pianoroll.mjs index b77c5dec..4035b14e 100644 --- a/packages/tone/pianoroll.mjs +++ b/packages/tone/pianoroll.mjs @@ -29,8 +29,8 @@ Pattern.prototype.pianoroll = function ({ const ctx = getDrawContext(); const w = ctx.canvas.width; const h = ctx.canvas.height; - const from = -cycles * playhead; - const to = cycles * (1 - playhead); + let from = -cycles * playhead; + let to = cycles * (1 - playhead); if (timeframeProp) { console.warn('timeframe is deprecated! use from/to instead');