From a02a48ac82fa44eb4ef409ce1d1cd6ae26f17922 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Mon, 21 Mar 2022 19:46:45 +0100 Subject: [PATCH] allow pianoroll bg to be transparent --- repl/src/pianoroll.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/repl/src/pianoroll.mjs b/repl/src/pianoroll.mjs index 3169caf0..a7a385ee 100644 --- a/repl/src/pianoroll.mjs +++ b/repl/src/pianoroll.mjs @@ -15,6 +15,7 @@ Pattern.prototype.pianoroll = function ({ this.draw( (ctx, events, t) => { ctx.fillStyle = background; + ctx.clearRect(0, 0, w, h); ctx.fillRect(0, 0, w, h); events.forEach((event) => { const isActive = event.whole.begin <= t && event.whole.end >= t;