declare from/to with let, as they can be changed
This commit is contained in:
parent
8e68b4e001
commit
a479a5740b
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue