vanilla-repl: use mini for all strings

+ skip transpiler
This commit is contained in:
Felix Roos 2022-11-08 21:17:00 +01:00
parent ea3e9de7ab
commit dff0c0c3b0
10 changed files with 60 additions and 81 deletions

View file

@ -1,7 +1,7 @@
import { controls, repl, evalScope } from '@strudel.cycles/core';
import { controls, repl, evalScope, setStringParser } from '@strudel.cycles/core';
import { mini } from '@strudel.cycles/mini';
import { getAudioContext, webaudioOutput } from '@strudel.cycles/webaudio';
import { transpiler } from '@strudel.cycles/transpiler';
// import shapeshifter from '@strudel.cycles/eval/shapeshifter.mjs';
// import { transpiler } from '@strudel.cycles/transpiler';
import tune from './tune.mjs';
const ctx = getAudioContext();
@ -16,11 +16,12 @@ evalScope(
import('@strudel.cycles/tonal'),
);
setStringParser(mini)
const { evaluate } = repl({
defaultOutput: webaudioOutput,
getTime: () => ctx.currentTime,
transpiler,
// transpiler: shapeshifter,
// transpiler,
});
document.getElementById('start').addEventListener('click', () => {
ctx.resume();