refactor: remove old draw logic

+ pianoroll now uses .onPaint
This commit is contained in:
Felix Roos 2023-05-05 09:52:07 +02:00
parent 4b921c47f5
commit 95719654f3
7 changed files with 10 additions and 206 deletions

View file

@ -1,7 +1,6 @@
import { Cyclist } from './cyclist.mjs';
import { evaluate as _evaluate } from './evaluate.mjs';
import { logger } from './logger.mjs';
import { setTime } from './time.mjs';
import { evalScope } from './evaluate.mjs';
export function repl({
@ -35,7 +34,6 @@ export function repl({
getTime,
onToggle,
});
setTime(() => scheduler.now()); // TODO: refactor?
const evaluate = async (code, autostart = true) => {
if (!code) {
throw new Error('no code to evaluate');