From 6d6784d429252d027ef9ec6b85911e8ef71fd032 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 5 Jun 2022 23:59:44 +0200 Subject: [PATCH] remove old comments --- packages/tone/pianoroll.mjs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/tone/pianoroll.mjs b/packages/tone/pianoroll.mjs index a2747fa1..b77c5dec 100644 --- a/packages/tone/pianoroll.mjs +++ b/packages/tone/pianoroll.mjs @@ -42,7 +42,6 @@ Pattern.prototype.pianoroll = function ({ } const timeAxis = vertical ? h : w; const valueAxis = vertical ? w : h; - // scale normalized value n to max pixels, flippable let timeRange = vertical ? [timeAxis, 0] : [0, timeAxis]; // pixel range for time const timeExtent = to - from; // number of seconds that fit inside the canvas frame const valueRange = vertical ? [0, valueAxis] : [valueAxis, 0]; // pixel range for values @@ -52,7 +51,6 @@ Pattern.prototype.pianoroll = function ({ flipTime && timeRange.reverse(); flipValues && valueRange.reverse(); - // duration to px (on timeAxis) const playheadPosition = scale(-from / timeExtent, ...timeRange); this.draw( (ctx, events, t) => { @@ -83,7 +81,6 @@ Pattern.prototype.pianoroll = function ({ ...valueRange, ); let margin = 0; - // apply some pixel adjustments const offset = scale(t / timeExtent, ...timeRange); let coords; if (vertical) { @@ -93,7 +90,6 @@ Pattern.prototype.pianoroll = function ({ barThickness - 2, // width durationPx - 2, // height ]; - // console.log(event.value, 'coords', coords); } else { coords = [ timePx - offset + margin + 1 - (flipTime ? durationPx : 0), // x