+ simplify vanilla setup drastically
+ move repl + drawer boilerplate inside StrudelMirror
This commit is contained in:
parent
5b67fccb1b
commit
9ec7109dc8
7 changed files with 101 additions and 103 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue