mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
fix _pianoroll
This commit is contained in:
parent
0eccbae048
commit
21f5d639a3
@ -106,7 +106,7 @@ function getCanvasWidget(id, options = {}) {
|
||||
|
||||
registerWidget('_pianoroll', (id, options = {}, pat) => {
|
||||
const ctx = getCanvasWidget(id, options).getContext('2d');
|
||||
return pat.pianoroll({ fold: 1, ...options, ctx, id });
|
||||
return pat.id(id).pianoroll({ fold: 1, ...options, ctx, id });
|
||||
});
|
||||
|
||||
registerWidget('_punchcard', (id, options = {}, pat) => {
|
||||
@ -123,5 +123,5 @@ registerWidget('_spiral', (id, options = {}, pat) => {
|
||||
registerWidget('_scope', (id, options = {}, pat) => {
|
||||
options = { width: 500, height: 60, pos: 0.5, scale: 1, ...options };
|
||||
const ctx = getCanvasWidget(id, options).getContext('2d');
|
||||
return pat.scope({ ...options, ctx, id });
|
||||
return pat.id(id).scope({ ...options, ctx, id });
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user