+ simplify vanilla setup drastically

+ move repl + drawer boilerplate inside StrudelMirror
This commit is contained in:
Felix Roos 2023-05-05 23:43:07 +02:00
parent 5b67fccb1b
commit 9ec7109dc8
7 changed files with 101 additions and 103 deletions

View file

@ -175,3 +175,8 @@ Pattern.prototype.pianoroll = function (options) {
pianoroll({ ctx, time, haps, ...getDrawOptions(drawTime, { fold: 0, ...options }) }),
);
};
export function drawPianoroll(options) {
const { drawTime, ...rest } = options;
pianoroll({ ...getDrawOptions(drawTime), ...rest });
}