declare from/to with let, as they can be changed

This commit is contained in:
alex 2022-06-15 16:15:57 +01:00
parent 8e68b4e001
commit a479a5740b

View File

@ -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');