From a39eed2ec028dfcd3de3f1f2b421ea858bf9eac7 Mon Sep 17 00:00:00 2001
From: cesare
Date: Mon, 22 Apr 2024 16:11:36 +0100
Subject: [PATCH] Docs update 1.0.2459
---
assets/example_patches/808/cmaj_808.js | 2 +-
.../CompuFart/cmaj_CompuFart.js | 2 +-
.../ElectricPiano/cmaj_Electric_Piano.js | 2 +-
.../GuitarLSTM/cmaj_GuitarLSTM.js | 2 +-
.../HelloWorld/cmaj_Hello_World.js | 2 +-
assets/example_patches/Piano/cmaj_Piano.js | 2 +-
.../PirkleFilters/cmaj_vafilters.js | 2 +-
assets/example_patches/Pro54/cmaj_Pro54.js | 2 +-
.../Replicant/cmaj_Replicant.js | 2 +-
.../RingMod/cmaj_Ring_Mod_Demo.js | 2 +-
.../STunedBar6/cmaj_STunedBar6.js | 2 +-
.../example_patches/Tremolo/cmaj_Tremolo.js | 2 +-
.../ZitaReverb/cmaj_Zita_Reverb.js | 2 +-
cmaj_api/cmaj-compiler-wasm.wasm | Bin 23566228 -> 23566541 bytes
cmaj_api/cmaj-embedded-compiler.js | 24 ++-
cmaj_api/embedded-compiler-demo.html | 138 +++++++++++++++---
16 files changed, 147 insertions(+), 41 deletions(-)
diff --git a/assets/example_patches/808/cmaj_808.js b/assets/example_patches/808/cmaj_808.js
index 165d0cab..d5d18859 100644
--- a/assets/example_patches/808/cmaj_808.js
+++ b/assets/example_patches/808/cmaj_808.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch '808.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/CompuFart/cmaj_CompuFart.js b/assets/example_patches/CompuFart/cmaj_CompuFart.js
index ccf28ccd..23bf23a1 100644
--- a/assets/example_patches/CompuFart/cmaj_CompuFart.js
+++ b/assets/example_patches/CompuFart/cmaj_CompuFart.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'CompuFartSynth.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/ElectricPiano/cmaj_Electric_Piano.js b/assets/example_patches/ElectricPiano/cmaj_Electric_Piano.js
index 3b0e3e15..466278aa 100644
--- a/assets/example_patches/ElectricPiano/cmaj_Electric_Piano.js
+++ b/assets/example_patches/ElectricPiano/cmaj_Electric_Piano.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'ElectricPiano.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js b/assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js
index 96c57d38..cff850e7 100644
--- a/assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js
+++ b/assets/example_patches/GuitarLSTM/cmaj_GuitarLSTM.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'GuitarLSTM.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/HelloWorld/cmaj_Hello_World.js b/assets/example_patches/HelloWorld/cmaj_Hello_World.js
index b4080b80..baab4394 100644
--- a/assets/example_patches/HelloWorld/cmaj_Hello_World.js
+++ b/assets/example_patches/HelloWorld/cmaj_Hello_World.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'HelloWorld.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/Piano/cmaj_Piano.js b/assets/example_patches/Piano/cmaj_Piano.js
index f50a5b3e..0bd71dd6 100644
--- a/assets/example_patches/Piano/cmaj_Piano.js
+++ b/assets/example_patches/Piano/cmaj_Piano.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'Piano.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/PirkleFilters/cmaj_vafilters.js b/assets/example_patches/PirkleFilters/cmaj_vafilters.js
index 1f1c3ee9..5ed6ddfc 100644
--- a/assets/example_patches/PirkleFilters/cmaj_vafilters.js
+++ b/assets/example_patches/PirkleFilters/cmaj_vafilters.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'vafilters.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/Pro54/cmaj_Pro54.js b/assets/example_patches/Pro54/cmaj_Pro54.js
index bc0d671c..0397be09 100644
--- a/assets/example_patches/Pro54/cmaj_Pro54.js
+++ b/assets/example_patches/Pro54/cmaj_Pro54.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'Pro54.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/Replicant/cmaj_Replicant.js b/assets/example_patches/Replicant/cmaj_Replicant.js
index 68901885..0a95d884 100644
--- a/assets/example_patches/Replicant/cmaj_Replicant.js
+++ b/assets/example_patches/Replicant/cmaj_Replicant.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'replicant.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js b/assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js
index 16f7d2c4..0a28ddfc 100644
--- a/assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js
+++ b/assets/example_patches/RingMod/cmaj_Ring_Mod_Demo.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'RingMod.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/STunedBar6/cmaj_STunedBar6.js b/assets/example_patches/STunedBar6/cmaj_STunedBar6.js
index 18504ffa..6f2e088d 100644
--- a/assets/example_patches/STunedBar6/cmaj_STunedBar6.js
+++ b/assets/example_patches/STunedBar6/cmaj_STunedBar6.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'STunedBar6.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/Tremolo/cmaj_Tremolo.js b/assets/example_patches/Tremolo/cmaj_Tremolo.js
index 69549694..7bf82bba 100644
--- a/assets/example_patches/Tremolo/cmaj_Tremolo.js
+++ b/assets/example_patches/Tremolo/cmaj_Tremolo.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'Tremolo.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js b/assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js
index f19c005b..3cf6c60a 100644
--- a/assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js
+++ b/assets/example_patches/ZitaReverb/cmaj_Zita_Reverb.js
@@ -3,7 +3,7 @@
// This file contains a Javascript/Webassembly/WebAudio export of the Cmajor
// patch 'ZitaReverb.cmajorpatch'.
//
-// This file was auto-generated by the Cmajor toolkit v1.0.2458
+// This file was auto-generated by the Cmajor toolkit v1.0.2459
//
// To use it, import this module into your HTML/Javascript code and call
// `createAudioWorkletNodePatchConnection()`. The AudioWorkletPatchConnection
diff --git a/cmaj_api/cmaj-compiler-wasm.wasm b/cmaj_api/cmaj-compiler-wasm.wasm
index 2e9334956f0fc5cb7cd320b149ade2ca8fc8963b..d7741db316136289e2c4ec8ae21d8ef51ad8a46a 100755
GIT binary patch
delta 2049
zcmXxkXLwUp0EhA1o13H|4NXTVlyy^RDSMStcET>SY#R0ku{c0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+*e2S;}lBtjtkLl)1`0Wxi6XEKtgna%G{iNLj2b
QQI;ypjJ^D2jE4390bckQ
+ const getManifestPath = () =>
{
if (this.manifestPath)
- return await this.getSourceFileContent (this.manifestPath);
+ return this.manifestPath;
- for (const f of sources)
+ for (const f of this.sources)
if (f.path.endsWith (".cmajorpatch"))
- return f.content;
+ return f.path;
throw new Error ("Couldn't find a manifest file");
}
- const decoder = new TextDecoder('utf-8');
- const content = await decoder.decode (await getContent());
- return JSON.parse (content);
+ return JSON.parse (await this.getSourceFileContentAsString (getManifestPath()));
}
/** @private */
diff --git a/cmaj_api/embedded-compiler-demo.html b/cmaj_api/embedded-compiler-demo.html
index dd912b02..d943a89a 100644
--- a/cmaj_api/embedded-compiler-demo.html
+++ b/cmaj_api/embedded-compiler-demo.html
@@ -16,22 +16,85 @@
your own URL to try it with any other .cmajorpatch file.
-
HelloWorld
-
ElectricPiano
-
808
-
Piano
-
Tremolo
-
RingMod
-
ZitaReverb
-
Pro54
-
GuitarLSTM
-
PirkleFilters
-
Replicant
-
STunedBar6
-
CompuFart
+
HelloWorld
+
ElectricPiano
+
808
+
Piano
+
Tremolo
+
RingMod
+
ZitaReverb
+
Pro54
+
GuitarLSTM
+
PirkleFilters
+
Replicant
+
STunedBar6
+
CompuFart
-
+
+
+
+
Or paste in a manifest and some source file content: