vanilla-repl: use mini for all strings
+ skip transpiler
This commit is contained in:
parent
ea3e9de7ab
commit
dff0c0c3b0
10 changed files with 60 additions and 81 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue