faustwave 0.93.1 → 0.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +48 -44
  2. package/dist/npm/faustwave.mjs +73 -18
  3. package/dist/npm/pagekit/pagekit.js +2347 -0
  4. package/dist/npm/pagekit/parts/device-button.glb +0 -0
  5. package/dist/npm/pagekit/parts/device-fader.glb +0 -0
  6. package/dist/npm/pagekit/parts/device-knob.glb +0 -0
  7. package/dist/npm/pagekit/parts/device-meter.glb +0 -0
  8. package/dist/npm/pagekit/parts/device-panel.glb +0 -0
  9. package/dist/npm/pagekit/parts/models-provenance.json +46 -0
  10. package/dist/npm/pagekit/player/THIRD-PARTY-NOTICES.md +12358 -0
  11. package/dist/npm/pagekit/player/assets/AppView-BV9Obknn.js +1 -0
  12. package/dist/npm/pagekit/player/assets/AppView-CdET0bgZ.css +1 -0
  13. package/dist/npm/pagekit/player/assets/FontLoader-C8xh6Irz.js +64 -0
  14. package/dist/npm/pagekit/player/assets/StageView-CSu--ASd.css +1 -0
  15. package/dist/npm/pagekit/player/assets/StageView-_SwGWnwx.js +1 -0
  16. package/dist/npm/pagekit/player/assets/actionRegistry-DrQhww6a.js +1 -0
  17. package/dist/npm/pagekit/player/assets/actionRegistry-hOkUYNvI.js +1 -0
  18. package/dist/npm/pagekit/player/assets/ahead-BNQHG1e8.js +1 -0
  19. package/dist/npm/pagekit/player/assets/api-BrGhAVvb.js +1 -0
  20. package/dist/npm/pagekit/player/assets/autoLayout-C5ue2K3x.js +1 -0
  21. package/dist/npm/pagekit/player/assets/bundledSources-2GoXdU5z.js +1 -0
  22. package/dist/npm/pagekit/player/assets/clapModule-CB6_36hc.js +1 -0
  23. package/dist/npm/pagekit/player/assets/client-DksDHYQL.js +1 -0
  24. package/dist/npm/pagekit/player/assets/codeEditorBridge-Bl202hrO.js +1 -0
  25. package/dist/npm/pagekit/player/assets/disclose-version-BvIhFN19.js +1 -0
  26. package/dist/npm/pagekit/player/assets/dist-BvRk9kiK.js +0 -0
  27. package/dist/npm/pagekit/player/assets/dist-DfaMbR-1.js +1 -0
  28. package/dist/npm/pagekit/player/assets/engine.worklet-BTB8yjdk.js +1865 -0
  29. package/dist/npm/pagekit/player/assets/engineCost.worker-Cv0PY3S-.js +2167 -0
  30. package/dist/npm/pagekit/player/assets/errors-BdUU2zPt.js +1 -0
  31. package/dist/npm/pagekit/player/assets/faust-analysis.nodepack-Bg1ixSAB.js +1 -0
  32. package/dist/npm/pagekit/player/assets/faust-physical-models.nodepack-DxbqTZII.js +1 -0
  33. package/dist/npm/pagekit/player/assets/faust-reverbs.nodepack-c-ZIKLrJ.js +1 -0
  34. package/dist/npm/pagekit/player/assets/faust-spatial.nodepack-C6GwVzOM.js +1 -0
  35. package/dist/npm/pagekit/player/assets/faust-vintage.nodepack-D8g5LX-U.js +1 -0
  36. package/dist/npm/pagekit/player/assets/faust.nodepack-Do7P1z0H.js +1 -0
  37. package/dist/npm/pagekit/player/assets/faustSource-Blr9zzKL.js +1 -0
  38. package/dist/npm/pagekit/player/assets/faustwasm-webclap-double-BX3OrOpF.js +1 -0
  39. package/dist/npm/pagekit/player/assets/faustwasm-webclap-double-Drn3DiHA.wasm +0 -0
  40. package/dist/npm/pagekit/player/assets/faustwasm.js +1 -0
  41. package/dist/npm/pagekit/player/assets/faustwave-conventions.nodepack-D2jA38Q6.js +1 -0
  42. package/dist/npm/pagekit/player/assets/fileMirror-CkgB9zNS.js +1 -0
  43. package/dist/npm/pagekit/player/assets/fileRef-BmnWhXuY.js +1 -0
  44. package/dist/npm/pagekit/player/assets/host-DPIuYxlL.js +1 -0
  45. package/dist/npm/pagekit/player/assets/instantiate-Dh0T46aH.js +1 -0
  46. package/dist/npm/pagekit/player/assets/inter-500.typeface-B6jxeZL_.js +21 -0
  47. package/dist/npm/pagekit/player/assets/inter-700.typeface-COCE0d_R.js +21 -0
  48. package/dist/npm/pagekit/player/assets/kernel-BErAMnKr.js +1 -0
  49. package/dist/npm/pagekit/player/assets/kernel-D6spGIFh.js +1 -0
  50. package/dist/npm/pagekit/player/assets/kernel-DKiI3Wqx.js +2 -0
  51. package/dist/npm/pagekit/player/assets/kit--nsV_OZy.js +1 -0
  52. package/dist/npm/pagekit/player/assets/kit-vVQ5cDnW.css +1 -0
  53. package/dist/npm/pagekit/player/assets/lazy-BkjipY-3.css +1 -0
  54. package/dist/npm/pagekit/player/assets/lazy-ClEpU-Ev.js +1 -0
  55. package/dist/npm/pagekit/player/assets/libraryFacts-B_z-Kv6i.js +1 -0
  56. package/dist/npm/pagekit/player/assets/mono-500.typeface-CuX9Pbhu.js +21 -0
  57. package/dist/npm/pagekit/player/assets/mono-700.typeface-BpIQdJao.js +21 -0
  58. package/dist/npm/pagekit/player/assets/newId-DuoSrkVn.js +1 -0
  59. package/dist/npm/pagekit/player/assets/notes-D-zF5qJ1.js +1 -0
  60. package/dist/npm/pagekit/player/assets/opfsStore-CXd1Yz_2.js +1 -0
  61. package/dist/npm/pagekit/player/assets/panic-ckha9YOX.js +1 -0
  62. package/dist/npm/pagekit/player/assets/patchSnippets-Dsccmpj6.js +1 -0
  63. package/dist/npm/pagekit/player/assets/paths-DFjX1bFA.js +1 -0
  64. package/dist/npm/pagekit/player/assets/player-CgcvekqS.js +2 -0
  65. package/dist/npm/pagekit/player/assets/playerApp-BmyTSXxw.js +2 -0
  66. package/dist/npm/pagekit/player/assets/playerApp-DO80EIpx.css +1 -0
  67. package/dist/npm/pagekit/player/assets/preArm-ifXM2Buj.js +1 -0
  68. package/dist/npm/pagekit/player/assets/preload-helper-9MKZsTCd.js +1 -0
  69. package/dist/npm/pagekit/player/assets/projectFiles-BEdLy3nE.js +1 -0
  70. package/dist/npm/pagekit/player/assets/projectPicker-mteZ2tiI.js +1 -0
  71. package/dist/npm/pagekit/player/assets/rocket-CgRnlVoE.js +1 -0
  72. package/dist/npm/pagekit/player/assets/runtime-36oA_YiG.js +1 -0
  73. package/dist/npm/pagekit/player/assets/runtime-7lvdeERt.js +1 -0
  74. package/dist/npm/pagekit/player/assets/runtime-BNLxaYPi.js +2 -0
  75. package/dist/npm/pagekit/player/assets/runtime-CL1M0Epi.js +1 -0
  76. package/dist/npm/pagekit/player/assets/runtime-bQsuRbRM.js +2 -0
  77. package/dist/npm/pagekit/player/assets/runtime-vj8wKnnG.js +1 -0
  78. package/dist/npm/pagekit/player/assets/runtime-wuc1seO8.js +1 -0
  79. package/dist/npm/pagekit/player/assets/scale-D2nqiPek.js +1 -0
  80. package/dist/npm/pagekit/player/assets/sha256-B9lHpAF4.js +1 -0
  81. package/dist/npm/pagekit/player/assets/soundfiles-DMZ8HKDZ.js +1 -0
  82. package/dist/npm/pagekit/player/assets/src-BvHr5YSH.js +2 -0
  83. package/dist/npm/pagekit/player/assets/src-Co7ihhBK.js +1 -0
  84. package/dist/npm/pagekit/player/assets/src-DyDfRe65.js +1 -0
  85. package/dist/npm/pagekit/player/assets/src-LMfGAjlj.js +1 -0
  86. package/dist/npm/pagekit/player/assets/stageWorker-ggqqFf5m.js +20869 -0
  87. package/dist/npm/pagekit/player/assets/store-CJdayqZa.js +1 -0
  88. package/dist/npm/pagekit/player/assets/sun-Bi-OgPry.js +1 -0
  89. package/dist/npm/pagekit/player/assets/time-aboh42pX.js +1 -0
  90. package/dist/npm/pagekit/player/assets/toasts-BCcM1yGS.js +1 -0
  91. package/dist/npm/pagekit/player/assets/toasts-ChPacqdd.js +1 -0
  92. package/dist/npm/pagekit/player/assets/transportFollow-Ox91SKLF.js +1 -0
  93. package/dist/npm/pagekit/player/favicon.svg +77 -0
  94. package/dist/npm/pagekit/player/files.json +1 -0
  95. package/dist/npm/pagekit/player/player.html +35 -0
  96. package/package.json +58 -43
package/README.md CHANGED
@@ -1,44 +1,48 @@
1
- # faustwave
2
-
3
- The FaustWave CLI — a [Faust](https://faust.grame.fr) patch as a [WebCLAP](https://github.com/WebCLAP) plugin, from a
4
- terminal or a script. One WebAssembly module that plays in the browser and, through a WebCLAP bridge, in a DAW.
5
-
6
- **Try it in the browser first: [faustwave.io/webclap](https://faustwave.io/webclap)** · More: [faustwave.io/cli](https://faustwave.io/cli)
7
-
8
- ## Install
9
-
10
- ```
11
- npm install --global faustwave
12
- ```
13
-
14
- Node.js 22 or newer. `faustwave` alone lists what it can do.
15
-
16
- ## A patch, a plugin
17
-
18
- ```
19
- faustwave convert tremolo.dsp
20
- → Tremolo.wclap.tar.gz module.wasm, its page, LICENSE, THIRD-PARTY-NOTICES.md
21
-
22
- faustwave convert tremolo.dsp --name "Tremolo" --version 1.0.0 --out plugins/
23
- ```
24
-
25
- - **Presets:** a `tremolo.presets.json` beside the patch goes into the plugin (found and loaded through CLAP).
26
- - **Its page:** every plugin carries a page that draws its controls. Tags in a control's label lay it out —
27
- `[device:big]`, `[device:fader]`, `[device:col:1]` … `[device:monitor:<name>]` on a bargraph; `faustwave convert`
28
- alone lists them. `--look` picks its colours, `--css <file>` adds your own.
29
- - It compiles as faustwasm does and plays sample for sample as the patch plays there.
30
-
31
- ## Always current
32
-
33
- When there is a newer faustwave, it says so after a command; `faustwave update` installs it. New commands come the
34
- same way.
35
-
36
- ## Built on
37
-
38
- [@faustwave/faustwasm-webclap](https://www.npmjs.com/package/@faustwave/faustwasm-webclap) (a Faust patch as a WCLAP)
39
- and [@grame/faustwasm](https://www.npmjs.com/package/@grame/faustwasm) (Faust's compiler, LGPL — its own package, never
40
- in this one's bundle).
41
-
42
- ## Licence
43
-
44
- MIT.
1
+ # faustwave
2
+
3
+ The FaustWave CLI — a [Faust](https://faust.grame.fr) patch as a [WebCLAP](https://github.com/WebCLAP) plugin, from a
4
+ terminal or a script. One WebAssembly module that plays in the browser and, through a WebCLAP bridge, in a DAW.
5
+
6
+ **Try it in the browser first: [faustwave.io/webclap](https://faustwave.io/webclap)** · More: [faustwave.io/cli](https://faustwave.io/cli)
7
+
8
+ ## Install
9
+
10
+ ```
11
+ npm install --global faustwave
12
+ ```
13
+
14
+ Node.js 22 or newer. `faustwave` alone lists what it can do.
15
+
16
+ ## A patch, a plugin
17
+
18
+ ```
19
+ faustwave plugin tremolo.dsp
20
+ → Tremolo.wclap.tar.gz module.wasm, its page, LICENSE, THIRD-PARTY-NOTICES.md
21
+
22
+ faustwave plugin tremolo.dsp --page 3d its 3D page: the device, played by FaustWave's player
23
+ faustwave plugin tremolo.dsp --name "Tremolo" --version 1.0.0 --out plugins/
24
+ ```
25
+
26
+ - **Presets:** a `tremolo.presets.json` beside the patch goes into the plugin (found and loaded through CLAP).
27
+ - **Its page:** every plugin carries a page. `--page 2d` (the default) draws its controls; tags in a control's label
28
+ lay them out — `[device:big]`, `[device:fader]`, `[device:col:1]` … `[device:monitor:<name>]` on a bargraph;
29
+ `faustwave plugin` alone lists them. `--theme` picks its colours, `--css <file>` adds your own. `--page 3d` makes
30
+ its device instead — knobs, faders and meters you turn and watch in 3D, the same page as on
31
+ [faustwave.io/webclap](https://faustwave.io/webclap).
32
+ - It compiles as faustwasm does and plays sample for sample as the patch plays there.
33
+
34
+ ## Always current
35
+
36
+ When there is a newer faustwave, it says so after a command; `faustwave update` installs it. New commands come the
37
+ same way.
38
+
39
+ ## Built on
40
+
41
+ [@faustwave/faustwasm-webclap](https://www.npmjs.com/package/@faustwave/faustwasm-webclap) (a Faust patch as a WCLAP),
42
+ [@faustwave/webclap-host](https://www.npmjs.com/package/@faustwave/webclap-host) (it asks the plugin for its knob pages)
43
+ and [@grame/faustwasm](https://www.npmjs.com/package/@grame/faustwasm) (Faust's compiler, LGPL — its own package, never
44
+ in this one's bundle).
45
+
46
+ ## Licence
47
+
48
+ MIT.
@@ -8650,7 +8650,7 @@ function convertArgs(args) {
8650
8650
  const opts = {};
8651
8651
  const files = [];
8652
8652
  for (let i = 0; i < args.length; i++) {
8653
- const m = /^--(name|id|version|out|look|css)$/.exec(args[i]);
8653
+ const m = /^--(name|id|version|out|look|theme|css|page)$/.exec(args[i]);
8654
8654
  if (m) {
8655
8655
  if (args[i + 1] === void 0) throw new Error(USAGE);
8656
8656
  opts[m[1]] = args[++i];
@@ -8658,8 +8658,19 @@ function convertArgs(args) {
8658
8658
  else files.push(args[i]);
8659
8659
  }
8660
8660
  if (files.length !== 1) throw new Error(USAGE);
8661
+ if (opts.theme !== void 0) opts.look = opts.theme;
8662
+ delete opts.theme;
8663
+ if (opts.page !== void 0 && opts.page !== "2d" && opts.page !== "3d") throw new Error(`--page ${opts.page}: 2d or 3d \u2014 ${USAGE}`);
8664
+ if (opts.page === "3d" && (opts.look !== void 0 || opts.css !== void 0)) throw new Error("--theme and --css are the 2D page's; the 3D page is its device");
8661
8665
  return { file: files[0], ...opts };
8662
8666
  }
8667
+ function pageKitDir() {
8668
+ if (true) return fileURLToPath2(new URL("./pagekit/", import.meta.url));
8669
+ const dir = fileURLToPath2(new URL("../../web-player/dist-pagekit/", import.meta.url));
8670
+ if (!fs5.existsSync(path6.join(dir, "pagekit.js")) || !fs5.existsSync(path6.join(dir, "player", "files.json")))
8671
+ throw new Error("the 3D page needs the page kit built: npm run build:player -w @crafics/faustwave-web-player, then build:pagekit");
8672
+ return dir;
8673
+ }
8663
8674
  async function convert(args) {
8664
8675
  const o = convertArgs(args);
8665
8676
  const file = path6.resolve(o.file);
@@ -8707,7 +8718,33 @@ async function convert(args) {
8707
8718
  });
8708
8719
  const notices = new Uint8Array(fs5.readFileSync(path6.join(wclapDist, "THIRD-PARTY-NOTICES.md")));
8709
8720
  const ui = controlsUi([built.faust.ui, built.effect.ui], built.description);
8710
- const files = wclap.pluginPackage(built.module, licenceOf(source, info.name), pluginFiles(page, { description: built.description, ui, look: o.look, css, notices }));
8721
+ let files;
8722
+ let plugin = built;
8723
+ if (o.page === "3d") {
8724
+ const kitDir = pageKitDir();
8725
+ const kit = await import(pathToFileURL(path6.join(kitDir, "pagekit.js")).href);
8726
+ plugin = await wclap.compilePlugin(faustwasm, compiler, adapter, kit.withMeters(source, built.voices ?? null), { ...info, ui: kit.PAGE_3D_SIZE, ...built.voices ? { voices: built.voices } : {} }, { args: FAUST_ARGS });
8727
+ const { ClapHost } = await import(pathToFileURL(req.resolve("@faustwave/webclap-host")).href);
8728
+ const host = await ClapHost.load(plugin.module);
8729
+ let pages;
8730
+ try {
8731
+ const addressOf = new Map(plugin.description.params.map((p) => [p.id, p.address]));
8732
+ pages = (host.remotePages() ?? []).map((p) => ({ name: p.name, params: p.params.map((id) => addressOf.get(id) ?? null) }));
8733
+ } finally {
8734
+ host.destroy();
8735
+ }
8736
+ const parts = Object.fromEntries(fs5.readdirSync(path6.join(kitDir, "parts")).map((f) => [f, new Uint8Array(fs5.readFileSync(path6.join(kitDir, "parts", f)))]));
8737
+ const pageFiles = await kit.devicePage({
8738
+ built: plugin,
8739
+ source,
8740
+ pages,
8741
+ parts,
8742
+ player: listed(path6.join(kitDir, "player")),
8743
+ ...presets.length ? { presets: wclap.presetsText(presets) } : {}
8744
+ });
8745
+ const both = new TextDecoder().decode(pageFiles["THIRD-PARTY-NOTICES.md"] ?? new Uint8Array()) + "\n\n" + new TextDecoder().decode(notices);
8746
+ files = wclap.pluginPackage(plugin.module, licenceOf(source, info.name), new Map(Object.entries({ ...pageFiles, "THIRD-PARTY-NOTICES.md": new TextEncoder().encode(both) })));
8747
+ } else files = wclap.pluginPackage(built.module, licenceOf(source, info.name), pluginFiles(page, { description: built.description, ui, look: o.look, css, notices }));
8711
8748
  const out = path6.resolve(o.out ?? path6.dirname(file));
8712
8749
  fs5.mkdirSync(out, { recursive: true });
8713
8750
  const to = path6.join(out, packageFileName(info.name));
@@ -8718,22 +8755,24 @@ async function convert(args) {
8718
8755
  const tags = deviceTags(ui);
8719
8756
  const laid = tags.big || tags.cols.length || tags.monitors.length ? `laid out by its tags: ${[tags.big && `${tags.big} big`, tags.cols.length && `column ${tags.cols.join(", ")}`, tags.monitors.length && `monitor ${tags.monitors.join(", ")}`].filter(Boolean).join("; ")}` : "no [device:*] tags \u2014 as Faust groups the controls";
8720
8757
  const withPresets = presets.length ? `, ${presets.length} preset${presets.length === 1 ? "" : "s"}` : "";
8721
- return `${to}: "${info.name}" (${info.id}) ${info.version}, ${what}${withPresets}, with its page (${built.info.ui ? `${built.info.ui.width} \xD7 ${built.info.ui.height}, ` : ""}${laid}), ${(archive.length / 1024).toFixed(0)} KB; ${tail}.
8758
+ return `${to}: "${info.name}" (${info.id}) ${info.version}, ${what}${withPresets}, with its ${o.page === "3d" ? "3D page (" : "page ("}${plugin.info.ui ? `${plugin.info.ui.width} \xD7 ${plugin.info.ui.height}, ` : ""}${o.page === "3d" ? "its device" : laid}), ${(archive.length / 1024).toFixed(0)} KB; ${tail}.
8722
8759
  Import it into a WebCLAP host (openDAW: Load Plugin \u2192 from disk)` + (true ? "." : ` \u2014 or publish it on the Hub as version ${info.version}: faustwave workflow run publish-plugin <inputs>.`);
8723
8760
  }
8724
- var USAGE;
8761
+ var USAGE, listed;
8725
8762
  var init_convert = __esm({
8726
8763
  "src/convert.ts"() {
8727
8764
  "use strict";
8728
8765
  init_src2();
8729
8766
  USAGE = [
8730
- "usage: faustwave convert <patch.dsp> [--name <name>] [--id <id>] [--version <x.y.z>] [--out <folder>] [--look studio|amber] [--css <file>]",
8731
- " --version the plugin's version \u2014 for the Hub, its release's (else the patch's declare version, else the day)",
8732
- " --look its page's colours (default: FaustWave's); --css a file of your own over them",
8767
+ "usage: faustwave plugin <patch.dsp> [--page 2d|3d] [--theme studio|amber] [--css <file>] [--name <name>] [--id <id>] [--version <x.y.z>] [--out <folder>]",
8768
+ " --page 2d (default): its controls; 3d: its device, played by FaustWave's player (~3.5 MB more)",
8769
+ " --theme the 2D page's colours (default: FaustWave's); --css a file of your own over them",
8770
+ " --version the plugin's version (else the patch's declare version, else the day)",
8733
8771
  " its page lays the controls out by [device:*] tags in their labels: big (a big knob along the bottom), fader,",
8734
8772
  " col:1 | col:2 | col:3 (a column; a group goes where its first one says), monitor:<name> on bargraphs (a line drawn",
8735
8773
  " of them) \u2014 none: as Faust groups them"
8736
8774
  ].join("\n");
8775
+ listed = (dir) => Object.fromEntries(JSON.parse(fs5.readFileSync(path6.join(dir, "files.json"), "utf8")).map((f) => [f, new Uint8Array(fs5.readFileSync(path6.join(dir, f)))]));
8737
8776
  }
8738
8777
  });
8739
8778
 
@@ -8800,7 +8839,7 @@ var init_update = __esm({
8800
8839
  "src/update.ts"() {
8801
8840
  "use strict";
8802
8841
  init_pipe();
8803
- VERSION2 = false ? null : "0.93.1";
8842
+ VERSION2 = false ? null : "0.94.0";
8804
8843
  NAME = "faustwave";
8805
8844
  DAY = 24 * 60 * 60 * 1e3;
8806
8845
  }
@@ -31047,9 +31086,19 @@ init_pipe();
31047
31086
  // package.json
31048
31087
  var package_default = {
31049
31088
  name: "faustwave",
31050
- version: "0.93.1",
31051
- description: "The FaustWave CLI \u2014 a Faust patch as a WebCLAP plugin, from a terminal or a script.",
31052
- keywords: ["faust", "webclap", "wclap", "clap", "audio", "plugin", "dsp", "webassembly", "cli"],
31089
+ version: "0.94.0",
31090
+ description: "The FaustWave CLI \u2014 a Faust patch as a WebCLAP plugin, with its 2D or 3D page, from a terminal or a script.",
31091
+ keywords: [
31092
+ "faust",
31093
+ "webclap",
31094
+ "wclap",
31095
+ "clap",
31096
+ "audio",
31097
+ "plugin",
31098
+ "dsp",
31099
+ "webassembly",
31100
+ "cli"
31101
+ ],
31053
31102
  homepage: "https://faustwave.io/cli",
31054
31103
  author: "Mani Weber",
31055
31104
  license: "MIT",
@@ -31057,7 +31106,11 @@ var package_default = {
31057
31106
  bin: {
31058
31107
  faustwave: "dist/npm/faustwave.mjs"
31059
31108
  },
31060
- files: ["dist/npm", "README.md", "LICENSE"],
31109
+ files: [
31110
+ "dist/npm",
31111
+ "README.md",
31112
+ "LICENSE"
31113
+ ],
31061
31114
  engines: {
31062
31115
  node: ">=22"
31063
31116
  },
@@ -31071,7 +31124,8 @@ var package_default = {
31071
31124
  prepublishOnly: "npm run build:npm"
31072
31125
  },
31073
31126
  dependencies: {
31074
- "@faustwave/faustwasm-webclap": "^0.1.0",
31127
+ "@faustwave/faustwasm-webclap": "^0.1.1",
31128
+ "@faustwave/webclap-host": "^0.1.0",
31075
31129
  "@grame/faustwasm": "0.21.1"
31076
31130
  },
31077
31131
  devDependencies: {
@@ -31244,10 +31298,11 @@ ${STUDIO ? USAGE_STUDIO : ""}
31244
31298
  update the newest faustwave (the npm package: npm i -g faustwave@latest)
31245
31299
 
31246
31300
  ${STUDIO ? "No IDE needed:" : "Plugins:"}
31247
- convert <patch.dsp> [--name <name>] [--id <id>] [--version <x.y.z>] [--out <folder>] [--look studio|amber] [--css <file>]
31248
- a Faust patch as a WebCLAP plugin with its page: <id>.wclap.tar.gz, compiled as the IDE
31249
- compiles; its presets from <patch>.presets.json beside it, when there is one; the page's
31250
- layout by [device:*] tags (faustwave convert alone says them)
31301
+ plugin <patch.dsp> [--page 2d|3d] [--theme studio|amber] [--css <file>] [--name <name>] [--id <id>] [--version <x.y.z>] [--out <folder>]
31302
+ a Faust patch as a WebCLAP plugin with its page: <Name>.wclap.tar.gz, compiled as the IDE
31303
+ compiles; its presets from <patch>.presets.json beside it, when there is one. --page 2d
31304
+ (default) its controls, laid out by [device:*] tags (faustwave plugin alone says them);
31305
+ --page 3d its device, played by FaustWave's player
31251
31306
  ${HUB2 ? USAGE_HUB : ""}`;
31252
31307
  var HUB_COMMANDS = ["login", "logout", "app", "item", "purchases", "refund", "reconcile", "push", "submit", "review", "publish", "yank", "releases"];
31253
31308
  var run = async (action, input = {}) => {
@@ -31284,7 +31339,7 @@ try {
31284
31339
  await new Promise(() => {
31285
31340
  });
31286
31341
  }
31287
- } else if (command === "convert") process.stdout.write(`${await (await Promise.resolve().then(() => (init_convert(), convert_exports))).convert(rest)}
31342
+ } else if (command === "plugin" || command === "convert") process.stdout.write(`${await (await Promise.resolve().then(() => (init_convert(), convert_exports))).convert(rest)}
31288
31343
  `);
31289
31344
  else if (command === "quit") process.stdout.write(`${await ask({ op: "quit" })}
31290
31345
  `);