move draw stuff from tone to core + fix getPhase

This commit is contained in:
Felix Roos 2022-11-13 01:42:00 +01:00
parent c722904831
commit e769ed2fd8
17 changed files with 259 additions and 5684 deletions

View file

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