move draw stuff from tone to core + fix getPhase
This commit is contained in:
parent
c722904831
commit
e769ed2fd8
17 changed files with 259 additions and 5684 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue