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

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{b as s,h as i,m,a as n,c as p,p as t}from"./index.73313bf6.js";export{s as SyntaxError,i as h,m as mini,n as minify,p as parse,t as patternifyAST};

View File

@ -1 +0,0 @@
import{g as s,b as d,e as t,j as u,l as o,f as r,p as f,i as p,d as g,h as i,w as l,a as m}from"./index.f17ed672.js";export{s as getAudioContext,d as getCachedBuffer,t as getLoadedBuffer,u as getLoadedSamples,o as loadBuffer,r as loadGithubSamples,f as panic,p as resetLoadedSamples,g as reverseBuffer,i as samples,l as webaudioOutput,m as webaudioOutputTrigger};

View File

@ -0,0 +1 @@
import{g as s,f as d,i as t,n as r,l as u,j as o,d as f,k as p,r as g,s as i,w as l,e as m}from"./index.73313bf6.js";export{s as getAudioContext,d as getCachedBuffer,t as getLoadedBuffer,r as getLoadedSamples,u as loadBuffer,o as loadGithubSamples,f as panic,p as resetLoadedSamples,g as reverseBuffer,i as samples,l as webaudioOutput,m as webaudioOutputTrigger};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite Vanilla Strudel REPL</title>
<script type="module" crossorigin src="/tidalcycles/strudel/general-purpose-scheduler/packages/core/examples/vite-vanilla-repl/dist/assets/index.f17ed672.js"></script>
<script type="module" crossorigin src="/tidalcycles/strudel/use-acorn/packages/core/examples/vite-vanilla-repl/dist/assets/index.73313bf6.js"></script>
</head>
<body style="margin: 0; background: #222">
<div style="display: grid; height: 100vh">

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();

View File

@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build-githack": "vite build --base /tidalcycles/strudel/general-purpose-scheduler/packages/core/examples/vite-vanilla-repl/dist/",
"build-githack": "vite build --base /tidalcycles/strudel/use-acorn/packages/core/examples/vite-vanilla-repl/dist/",
"build": "vite build",
"preview": "vite preview"
},