faustwave 0.94.0 → 0.95.1

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 (99) hide show
  1. package/README.md +4 -8
  2. package/dist/npm/faustwave.mjs +13 -51
  3. package/dist/npm/page/assets/{index-DyOBLoeh.js → index-DEJBJOdp.js} +1 -1
  4. package/dist/npm/page/files.json +1 -1
  5. package/dist/npm/page/index.html +1 -1
  6. package/package.json +2 -3
  7. package/dist/npm/pagekit/pagekit.js +0 -2347
  8. package/dist/npm/pagekit/parts/device-button.glb +0 -0
  9. package/dist/npm/pagekit/parts/device-fader.glb +0 -0
  10. package/dist/npm/pagekit/parts/device-knob.glb +0 -0
  11. package/dist/npm/pagekit/parts/device-meter.glb +0 -0
  12. package/dist/npm/pagekit/parts/device-panel.glb +0 -0
  13. package/dist/npm/pagekit/parts/models-provenance.json +0 -46
  14. package/dist/npm/pagekit/player/THIRD-PARTY-NOTICES.md +0 -12358
  15. package/dist/npm/pagekit/player/assets/AppView-BV9Obknn.js +0 -1
  16. package/dist/npm/pagekit/player/assets/AppView-CdET0bgZ.css +0 -1
  17. package/dist/npm/pagekit/player/assets/FontLoader-C8xh6Irz.js +0 -64
  18. package/dist/npm/pagekit/player/assets/StageView-CSu--ASd.css +0 -1
  19. package/dist/npm/pagekit/player/assets/StageView-_SwGWnwx.js +0 -1
  20. package/dist/npm/pagekit/player/assets/actionRegistry-DrQhww6a.js +0 -1
  21. package/dist/npm/pagekit/player/assets/actionRegistry-hOkUYNvI.js +0 -1
  22. package/dist/npm/pagekit/player/assets/ahead-BNQHG1e8.js +0 -1
  23. package/dist/npm/pagekit/player/assets/api-BrGhAVvb.js +0 -1
  24. package/dist/npm/pagekit/player/assets/autoLayout-C5ue2K3x.js +0 -1
  25. package/dist/npm/pagekit/player/assets/bundledSources-2GoXdU5z.js +0 -1
  26. package/dist/npm/pagekit/player/assets/clapModule-CB6_36hc.js +0 -1
  27. package/dist/npm/pagekit/player/assets/client-DksDHYQL.js +0 -1
  28. package/dist/npm/pagekit/player/assets/codeEditorBridge-Bl202hrO.js +0 -1
  29. package/dist/npm/pagekit/player/assets/disclose-version-BvIhFN19.js +0 -1
  30. package/dist/npm/pagekit/player/assets/dist-BvRk9kiK.js +0 -0
  31. package/dist/npm/pagekit/player/assets/dist-DfaMbR-1.js +0 -1
  32. package/dist/npm/pagekit/player/assets/engine.worklet-BTB8yjdk.js +0 -1865
  33. package/dist/npm/pagekit/player/assets/engineCost.worker-Cv0PY3S-.js +0 -2167
  34. package/dist/npm/pagekit/player/assets/errors-BdUU2zPt.js +0 -1
  35. package/dist/npm/pagekit/player/assets/faust-analysis.nodepack-Bg1ixSAB.js +0 -1
  36. package/dist/npm/pagekit/player/assets/faust-physical-models.nodepack-DxbqTZII.js +0 -1
  37. package/dist/npm/pagekit/player/assets/faust-reverbs.nodepack-c-ZIKLrJ.js +0 -1
  38. package/dist/npm/pagekit/player/assets/faust-spatial.nodepack-C6GwVzOM.js +0 -1
  39. package/dist/npm/pagekit/player/assets/faust-vintage.nodepack-D8g5LX-U.js +0 -1
  40. package/dist/npm/pagekit/player/assets/faust.nodepack-Do7P1z0H.js +0 -1
  41. package/dist/npm/pagekit/player/assets/faustSource-Blr9zzKL.js +0 -1
  42. package/dist/npm/pagekit/player/assets/faustwasm-webclap-double-BX3OrOpF.js +0 -1
  43. package/dist/npm/pagekit/player/assets/faustwasm-webclap-double-Drn3DiHA.wasm +0 -0
  44. package/dist/npm/pagekit/player/assets/faustwasm.js +0 -1
  45. package/dist/npm/pagekit/player/assets/faustwave-conventions.nodepack-D2jA38Q6.js +0 -1
  46. package/dist/npm/pagekit/player/assets/fileMirror-CkgB9zNS.js +0 -1
  47. package/dist/npm/pagekit/player/assets/fileRef-BmnWhXuY.js +0 -1
  48. package/dist/npm/pagekit/player/assets/host-DPIuYxlL.js +0 -1
  49. package/dist/npm/pagekit/player/assets/instantiate-Dh0T46aH.js +0 -1
  50. package/dist/npm/pagekit/player/assets/inter-500.typeface-B6jxeZL_.js +0 -21
  51. package/dist/npm/pagekit/player/assets/inter-700.typeface-COCE0d_R.js +0 -21
  52. package/dist/npm/pagekit/player/assets/kernel-BErAMnKr.js +0 -1
  53. package/dist/npm/pagekit/player/assets/kernel-D6spGIFh.js +0 -1
  54. package/dist/npm/pagekit/player/assets/kernel-DKiI3Wqx.js +0 -2
  55. package/dist/npm/pagekit/player/assets/kit--nsV_OZy.js +0 -1
  56. package/dist/npm/pagekit/player/assets/kit-vVQ5cDnW.css +0 -1
  57. package/dist/npm/pagekit/player/assets/lazy-BkjipY-3.css +0 -1
  58. package/dist/npm/pagekit/player/assets/lazy-ClEpU-Ev.js +0 -1
  59. package/dist/npm/pagekit/player/assets/libraryFacts-B_z-Kv6i.js +0 -1
  60. package/dist/npm/pagekit/player/assets/mono-500.typeface-CuX9Pbhu.js +0 -21
  61. package/dist/npm/pagekit/player/assets/mono-700.typeface-BpIQdJao.js +0 -21
  62. package/dist/npm/pagekit/player/assets/newId-DuoSrkVn.js +0 -1
  63. package/dist/npm/pagekit/player/assets/notes-D-zF5qJ1.js +0 -1
  64. package/dist/npm/pagekit/player/assets/opfsStore-CXd1Yz_2.js +0 -1
  65. package/dist/npm/pagekit/player/assets/panic-ckha9YOX.js +0 -1
  66. package/dist/npm/pagekit/player/assets/patchSnippets-Dsccmpj6.js +0 -1
  67. package/dist/npm/pagekit/player/assets/paths-DFjX1bFA.js +0 -1
  68. package/dist/npm/pagekit/player/assets/player-CgcvekqS.js +0 -2
  69. package/dist/npm/pagekit/player/assets/playerApp-BmyTSXxw.js +0 -2
  70. package/dist/npm/pagekit/player/assets/playerApp-DO80EIpx.css +0 -1
  71. package/dist/npm/pagekit/player/assets/preArm-ifXM2Buj.js +0 -1
  72. package/dist/npm/pagekit/player/assets/preload-helper-9MKZsTCd.js +0 -1
  73. package/dist/npm/pagekit/player/assets/projectFiles-BEdLy3nE.js +0 -1
  74. package/dist/npm/pagekit/player/assets/projectPicker-mteZ2tiI.js +0 -1
  75. package/dist/npm/pagekit/player/assets/rocket-CgRnlVoE.js +0 -1
  76. package/dist/npm/pagekit/player/assets/runtime-36oA_YiG.js +0 -1
  77. package/dist/npm/pagekit/player/assets/runtime-7lvdeERt.js +0 -1
  78. package/dist/npm/pagekit/player/assets/runtime-BNLxaYPi.js +0 -2
  79. package/dist/npm/pagekit/player/assets/runtime-CL1M0Epi.js +0 -1
  80. package/dist/npm/pagekit/player/assets/runtime-bQsuRbRM.js +0 -2
  81. package/dist/npm/pagekit/player/assets/runtime-vj8wKnnG.js +0 -1
  82. package/dist/npm/pagekit/player/assets/runtime-wuc1seO8.js +0 -1
  83. package/dist/npm/pagekit/player/assets/scale-D2nqiPek.js +0 -1
  84. package/dist/npm/pagekit/player/assets/sha256-B9lHpAF4.js +0 -1
  85. package/dist/npm/pagekit/player/assets/soundfiles-DMZ8HKDZ.js +0 -1
  86. package/dist/npm/pagekit/player/assets/src-BvHr5YSH.js +0 -2
  87. package/dist/npm/pagekit/player/assets/src-Co7ihhBK.js +0 -1
  88. package/dist/npm/pagekit/player/assets/src-DyDfRe65.js +0 -1
  89. package/dist/npm/pagekit/player/assets/src-LMfGAjlj.js +0 -1
  90. package/dist/npm/pagekit/player/assets/stageWorker-ggqqFf5m.js +0 -20869
  91. package/dist/npm/pagekit/player/assets/store-CJdayqZa.js +0 -1
  92. package/dist/npm/pagekit/player/assets/sun-Bi-OgPry.js +0 -1
  93. package/dist/npm/pagekit/player/assets/time-aboh42pX.js +0 -1
  94. package/dist/npm/pagekit/player/assets/toasts-BCcM1yGS.js +0 -1
  95. package/dist/npm/pagekit/player/assets/toasts-ChPacqdd.js +0 -1
  96. package/dist/npm/pagekit/player/assets/transportFollow-Ox91SKLF.js +0 -1
  97. package/dist/npm/pagekit/player/favicon.svg +0 -77
  98. package/dist/npm/pagekit/player/files.json +0 -1
  99. package/dist/npm/pagekit/player/player.html +0 -35
package/README.md CHANGED
@@ -19,16 +19,13 @@ Node.js 22 or newer. `faustwave` alone lists what it can do.
19
19
  faustwave plugin tremolo.dsp
20
20
  → Tremolo.wclap.tar.gz module.wasm, its page, LICENSE, THIRD-PARTY-NOTICES.md
21
21
 
22
- faustwave plugin tremolo.dsp --page 3d its 3D page: the device, played by FaustWave's player
23
22
  faustwave plugin tremolo.dsp --name "Tremolo" --version 1.0.0 --out plugins/
24
23
  ```
25
24
 
26
25
  - **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).
26
+ - **Its page:** every plugin carries a page that draws its controls. Tags in a control's label lay them out —
27
+ `[device:big]`, `[device:fader]`, `[device:col:1]` … `[device:monitor:<name>]` on a bargraph; `faustwave plugin`
28
+ alone lists them. `--theme` picks its colours, `--css <file>` adds your own.
32
29
  - It compiles as faustwasm does and plays sample for sample as the patch plays there.
33
30
 
34
31
  ## Always current
@@ -38,8 +35,7 @@ same way.
38
35
 
39
36
  ## Built on
40
37
 
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)
38
+ [@faustwave/faustwasm-webclap](https://www.npmjs.com/package/@faustwave/faustwasm-webclap) (a Faust patch as a WCLAP)
43
39
  and [@grame/faustwasm](https://www.npmjs.com/package/@grame/faustwasm) (Faust's compiler, LGPL — its own package, never
44
40
  in this one's bundle).
45
41
 
@@ -8650,7 +8650,8 @@ 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|theme|css|page)$/.exec(args[i]);
8653
+ if (args[i] === "--page") throw new Error("--page is gone: a plugin's page is 2D (its controls) \u2014 leave it out; --theme and --css shape it.");
8654
+ const m = /^--(name|id|version|out|look|theme|css)$/.exec(args[i]);
8654
8655
  if (m) {
8655
8656
  if (args[i + 1] === void 0) throw new Error(USAGE);
8656
8657
  opts[m[1]] = args[++i];
@@ -8660,17 +8661,8 @@ function convertArgs(args) {
8660
8661
  if (files.length !== 1) throw new Error(USAGE);
8661
8662
  if (opts.theme !== void 0) opts.look = opts.theme;
8662
8663
  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");
8665
8664
  return { file: files[0], ...opts };
8666
8665
  }
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
- }
8674
8666
  async function convert(args) {
8675
8667
  const o = convertArgs(args);
8676
8668
  const file = path6.resolve(o.file);
@@ -8718,33 +8710,7 @@ async function convert(args) {
8718
8710
  });
8719
8711
  const notices = new Uint8Array(fs5.readFileSync(path6.join(wclapDist, "THIRD-PARTY-NOTICES.md")));
8720
8712
  const ui = controlsUi([built.faust.ui, built.effect.ui], built.description);
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 }));
8713
+ const files = wclap.pluginPackage(built.module, licenceOf(source, info.name), pluginFiles(page, { description: built.description, ui, look: o.look, css, notices }));
8748
8714
  const out = path6.resolve(o.out ?? path6.dirname(file));
8749
8715
  fs5.mkdirSync(out, { recursive: true });
8750
8716
  const to = path6.join(out, packageFileName(info.name));
@@ -8755,24 +8721,22 @@ async function convert(args) {
8755
8721
  const tags = deviceTags(ui);
8756
8722
  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";
8757
8723
  const withPresets = presets.length ? `, ${presets.length} preset${presets.length === 1 ? "" : "s"}` : "";
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}.
8724
+ 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}.
8759
8725
  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>.`);
8760
8726
  }
8761
- var USAGE, listed;
8727
+ var USAGE;
8762
8728
  var init_convert = __esm({
8763
8729
  "src/convert.ts"() {
8764
8730
  "use strict";
8765
8731
  init_src2();
8766
8732
  USAGE = [
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",
8733
+ "usage: faustwave plugin <patch.dsp> [--theme studio|amber] [--css <file>] [--name <name>] [--id <id>] [--version <x.y.z>] [--out <folder>]",
8734
+ " --theme its page's colours (default: FaustWave's); --css a file of your own over them",
8770
8735
  " --version the plugin's version (else the patch's declare version, else the day)",
8771
8736
  " its page lays the controls out by [device:*] tags in their labels: big (a big knob along the bottom), fader,",
8772
8737
  " col:1 | col:2 | col:3 (a column; a group goes where its first one says), monitor:<name> on bargraphs (a line drawn",
8773
8738
  " of them) \u2014 none: as Faust groups them"
8774
8739
  ].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)))]));
8776
8740
  }
8777
8741
  });
8778
8742
 
@@ -8839,7 +8803,7 @@ var init_update = __esm({
8839
8803
  "src/update.ts"() {
8840
8804
  "use strict";
8841
8805
  init_pipe();
8842
- VERSION2 = false ? null : "0.94.0";
8806
+ VERSION2 = false ? null : "0.95.1";
8843
8807
  NAME = "faustwave";
8844
8808
  DAY = 24 * 60 * 60 * 1e3;
8845
8809
  }
@@ -31086,8 +31050,8 @@ init_pipe();
31086
31050
  // package.json
31087
31051
  var package_default = {
31088
31052
  name: "faustwave",
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.",
31053
+ version: "0.95.1",
31054
+ description: "The FaustWave CLI \u2014 a Faust patch as a WebCLAP plugin with its page, from a terminal or a script.",
31091
31055
  keywords: [
31092
31056
  "faust",
31093
31057
  "webclap",
@@ -31125,7 +31089,6 @@ var package_default = {
31125
31089
  },
31126
31090
  dependencies: {
31127
31091
  "@faustwave/faustwasm-webclap": "^0.1.1",
31128
- "@faustwave/webclap-host": "^0.1.0",
31129
31092
  "@grame/faustwasm": "0.21.1"
31130
31093
  },
31131
31094
  devDependencies: {
@@ -31298,11 +31261,10 @@ ${STUDIO ? USAGE_STUDIO : ""}
31298
31261
  update the newest faustwave (the npm package: npm i -g faustwave@latest)
31299
31262
 
31300
31263
  ${STUDIO ? "No IDE needed:" : "Plugins:"}
31301
- plugin <patch.dsp> [--page 2d|3d] [--theme studio|amber] [--css <file>] [--name <name>] [--id <id>] [--version <x.y.z>] [--out <folder>]
31264
+ plugin <patch.dsp> [--theme studio|amber] [--css <file>] [--name <name>] [--id <id>] [--version <x.y.z>] [--out <folder>]
31302
31265
  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
31266
+ compiles; its presets from <patch>.presets.json beside it, when there is one; its
31267
+ controls laid out by [device:*] tags (faustwave plugin alone says them)
31306
31268
  ${HUB2 ? USAGE_HUB : ""}`;
31307
31269
  var HUB_COMMANDS = ["login", "logout", "app", "item", "purchases", "refund", "reconcile", "push", "submit", "review", "publish", "yank", "releases"];
31308
31270
  var run = async (action, input = {}) => {