diff --git a/tools/aqua-playground/README.md b/tools/aqua-playground/README.md index 720915b..3ecc87f 100644 --- a/tools/aqua-playground/README.md +++ b/tools/aqua-playground/README.md @@ -21,7 +21,7 @@ controls, so their slider panel is empty. - `node test.mjs [dist]`: headless check of `dist/`: each patch compiles to wasm, renders 2 s offline, is non-silent and finite; the thruster is also run at rpm 600 and 4800. It cannot hear and does not run an AudioWorklet or a browser. -- `web/`: the page (`index.html`, `app.js`, `ui.mjs`, `styles.css`). +- `web/`: the page (`index.html`, `app.js`, `ui.js`, `styles.css`). Serve `dist/` from any static host (`python3 -m http.server`); AudioWorklet needs `localhost` or https. The older `tools/vocal-tract-playground` renders server-side through the .NET renderer; this one diff --git a/tools/aqua-playground/test.mjs b/tools/aqua-playground/test.mjs index 4275537..673653a 100644 --- a/tools/aqua-playground/test.mjs +++ b/tools/aqua-playground/test.mjs @@ -8,7 +8,7 @@ import { fileURLToPath, pathToFileURL } from "node:url"; const dist = resolve(process.argv[2] ?? join(dirname(fileURLToPath(import.meta.url)), "dist")); const { instantiateFaustModuleFromFile, LibFaust, FaustCompiler, FaustMonoDspGenerator } = await import(pathToFileURL(join(dist, "vendor/faustwasm/index.js")).href); -const { controlsOf } = await import(pathToFileURL(join(dist, "ui.mjs")).href); +const { controlsOf } = await import(pathToFileURL(join(dist, "ui.js")).href); const libfaust = new LibFaust(await instantiateFaustModuleFromFile(join(dist, "vendor/libfaust-wasm/libfaust-wasm.js"))); const compiler = new FaustCompiler(libfaust); diff --git a/tools/aqua-playground/web/app.js b/tools/aqua-playground/web/app.js index da38b06..54c0331 100644 --- a/tools/aqua-playground/web/app.js +++ b/tools/aqua-playground/web/app.js @@ -1,5 +1,5 @@ import { instantiateFaustModuleFromFile, LibFaust, FaustCompiler, FaustMonoDspGenerator } from "./vendor/faustwasm/index.js"; -import { controlsOf } from "./ui.mjs"; +import { controlsOf } from "./ui.js"; const $ = (id) => document.getElementById(id); const status = (t) => { $("status").textContent = t; }; diff --git a/tools/aqua-playground/web/ui.mjs b/tools/aqua-playground/web/ui.js similarity index 100% rename from tools/aqua-playground/web/ui.mjs rename to tools/aqua-playground/web/ui.js