@grame/faustwasm 0.10.0 → 0.10.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 (30) hide show
  1. package/dist/cjs-bundle/index.js +10 -58
  2. package/dist/cjs-bundle/index.js.map +3 -3
  3. package/dist/esm-bundle/index.js +10 -58
  4. package/dist/esm-bundle/index.js.map +3 -3
  5. package/libfaust-wasm/dossier sans titre/libfaust-wasm.data +0 -0
  6. package/libfaust-wasm/dossier sans titre/libfaust-wasm.js +20 -0
  7. package/libfaust-wasm/dossier sans titre/libfaust-wasm.wasm +0 -0
  8. package/libfaust-wasm/libfaust-wasm.js +1 -1
  9. package/libfaust-wasm/libfaust-wasm.wasm +0 -0
  10. package/package.json +1 -1
  11. package/src/FaustDspGenerator.ts +0 -1
  12. package/src/FaustWebAudioDsp.ts +0 -2
  13. package/src.zip +0 -0
  14. package/test/{organ → organ1}/dsp-meta.json +10 -15
  15. package/test/{organ → organ1}/dsp-module.wasm +0 -0
  16. package/test/{organ → organ1}/index.js +2 -2
  17. package/test/{organ → organ1}/manifest.json +3 -3
  18. package/test/{organ → organ1}/service-worker.js +1 -1
  19. package/test/organ/mixer-module.wasm +0 -0
  20. /package/test/{organ → organ1}/create-node.js +0 -0
  21. /package/test/{organ → organ1}/faust-ui/index.css +0 -0
  22. /package/test/{organ → organ1}/faust-ui/index.css.map +0 -0
  23. /package/test/{organ → organ1}/faust-ui/index.d.ts +0 -0
  24. /package/test/{organ → organ1}/faust-ui/index.js +0 -0
  25. /package/test/{organ → organ1}/faust-ui/index.js.map +0 -0
  26. /package/test/{organ → organ1}/faustwasm/index.d.ts +0 -0
  27. /package/test/{organ → organ1}/faustwasm/index.js +0 -0
  28. /package/test/{organ → organ1}/faustwasm/index.js.map +0 -0
  29. /package/test/{organ → organ1}/icon.png +0 -0
  30. /package/test/{organ → organ1}/index.html +0 -0
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grame/faustwasm",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "WebAssembly version of Faust Compiler",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -43,7 +43,6 @@ export interface IFaustMonoDspGenerator extends GeneratorSupportingSoundfiles {
43
43
  meta?: FaustDspMeta;
44
44
  } | null>;
45
45
 
46
-
47
46
  /**
48
47
  * Create a monophonic WebAudio node (either ScriptProcessorNode or AudioWorkletNode).
49
48
  *
@@ -939,7 +939,6 @@ export class FaustBaseWebAudioDsp implements IFaustBaseWebAudioDsp {
939
939
  * Init soundfiles memory.
940
940
  *
941
941
  * @param allocator : the wasm memory allocator
942
- * @param sfReader : the soundfile reader
943
942
  * @param baseDSP : the DSP struct (either a monophonic DSP of polyphonic voice) base DSP in the wasm memory
944
943
  */
945
944
  protected initSoundfileMemory(allocator: WasmAllocator, baseDSP: number) {
@@ -1149,7 +1148,6 @@ export class FaustMonoWebAudioDsp extends FaustBaseWebAudioDsp implements IFaust
1149
1148
  // Init soundfiles memory
1150
1149
  this.initSoundfileMemory(allocator, this.fDSP);
1151
1150
  }
1152
-
1153
1151
  }
1154
1152
 
1155
1153
  private initMemory(): number {
package/src.zip ADDED
Binary file
@@ -1,7 +1,7 @@
1
1
  {
2
- "name": "organ",
3
- "filename": "organ",
4
- "version": "2.80.4",
2
+ "name": "organ1",
3
+ "filename": "organ1",
4
+ "version": "2.81.0",
5
5
  "compile_options": "-lang wasm-i -ct 1 -es 1 -mcd 16 -mdd 1024 -mdy 33 -single -ftz 2",
6
6
  "library_list": [
7
7
  "/usr/share/faust/stdfaust.lib",
@@ -18,7 +18,7 @@
18
18
  "."
19
19
  ],
20
20
  "size": 262264,
21
- "code": "aFrT",
21
+ "code": "cAzT",
22
22
  "inputs": 0,
23
23
  "outputs": 1,
24
24
  "meta": [
@@ -50,7 +50,7 @@
50
50
  "envelopes.lib/version": "1.3.0"
51
51
  },
52
52
  {
53
- "filename": "organ"
53
+ "filename": "organ1"
54
54
  },
55
55
  {
56
56
  "maths.lib/author": "GRAME"
@@ -68,7 +68,7 @@
68
68
  "maths.lib/version": "2.8.1"
69
69
  },
70
70
  {
71
- "name": "organ"
71
+ "name": "organ1"
72
72
  },
73
73
  {
74
74
  "oscillators.lib/name": "Faust Oscillator Library"
@@ -86,20 +86,15 @@
86
86
  "ui": [
87
87
  {
88
88
  "type": "vgroup",
89
- "label": "organ",
89
+ "label": "organ1",
90
90
  "items": [
91
91
  {
92
92
  "type": "hslider",
93
93
  "label": "freq",
94
94
  "varname": "fHslider1",
95
95
  "shortname": "freq",
96
- "address": "/organ/freq",
96
+ "address": "/organ1/freq",
97
97
  "index": 262168,
98
- "meta": [
99
- {
100
- "midi": "ctrl 7"
101
- }
102
- ],
103
98
  "init": 440,
104
99
  "min": 20,
105
100
  "max": 3000,
@@ -110,7 +105,7 @@
110
105
  "label": "gain",
111
106
  "varname": "fHslider0",
112
107
  "shortname": "gain",
113
- "address": "/organ/gain",
108
+ "address": "/organ1/gain",
114
109
  "index": 262144,
115
110
  "init": 0.5,
116
111
  "min": 0,
@@ -122,7 +117,7 @@
122
117
  "label": "gate",
123
118
  "varname": "fButton0",
124
119
  "shortname": "gate",
125
- "address": "/organ/gate",
120
+ "address": "/organ1/gate",
126
121
  "index": 262212
127
122
  }
128
123
  ]
@@ -39,8 +39,8 @@ let faustNode;
39
39
  const { createFaustNode, createFaustUI } = await import("./create-node.js");
40
40
 
41
41
  // To test the ScriptProcessorNode mode
42
- // const result = await createFaustNode(audioContext, "organ", FAUST_DSP_VOICES, true, 512);
43
- const result = await createFaustNode(audioContext, "organ", FAUST_DSP_VOICES);
42
+ // const result = await createFaustNode(audioContext, "organ1", FAUST_DSP_VOICES, true, 512);
43
+ const result = await createFaustNode(audioContext, "organ1", FAUST_DSP_VOICES);
44
44
  faustNode = result.faustNode; // Assign to the global variable
45
45
  if (!faustNode) throw new Error("Faust DSP not compiled");
46
46
 
@@ -1,8 +1,8 @@
1
1
  {
2
- "name": "Faust organ",
3
- "short_name": "organ",
2
+ "name": "Faust organ1",
3
+ "short_name": "organ1",
4
4
  "start_url": "./index.html",
5
- "description": "Progressive Web App for organ",
5
+ "description": "Progressive Web App for organ1",
6
6
  "display": "standalone",
7
7
  "background_color": "#ffffff",
8
8
  "theme_color": "#000000",
@@ -5,7 +5,7 @@ const FAUST_DSP_VOICES = 0;
5
5
  // Set to true if the DSP has an effect
6
6
  const FAUST_DSP_HAS_EFFECT = false;
7
7
 
8
- const CACHE_NAME = "organ_20250522-1139"; // Cache name with versioning
8
+ const CACHE_NAME = "organ1_20250529-1801"; // Cache name with versioning
9
9
 
10
10
  /**
11
11
  * List of essential resources required for the **Mono DSP** version of the application.
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes