mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
declare from/to with let, as they can be changed
This commit is contained in:
parent
8e68b4e001
commit
a479a5740b
@ -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…
x
Reference in New Issue
Block a user