@grame/faustwasm 0.10.0 → 0.10.2
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.
- package/assets/standalone/index-template.js +9 -8
- package/dist/cjs-bundle/index.js +10 -58
- package/dist/cjs-bundle/index.js.map +3 -3
- package/dist/esm-bundle/index.js +10 -58
- package/dist/esm-bundle/index.js.map +3 -3
- package/libfaust-wasm/libfaust-wasm.js +1 -1
- package/libfaust-wasm/libfaust-wasm.wasm +0 -0
- package/package.json +1 -1
- package/src/FaustDspGenerator.ts +0 -1
- package/src/FaustWebAudioDsp.ts +0 -2
- package/assets/standalone/index copie.js +0 -171
- package/assets/standalone/index-pwa-Wakelock.js +0 -254
- package/test/organ/create-node.js +0 -252
- package/test/organ/dsp-meta.json +0 -131
- package/test/organ/dsp-module.wasm +0 -0
- package/test/organ/faust-ui/index.css +0 -442
- package/test/organ/faust-ui/index.css.map +0 -1
- package/test/organ/faust-ui/index.d.ts +0 -1
- package/test/organ/faust-ui/index.js +0 -3729
- package/test/organ/faust-ui/index.js.map +0 -1
- package/test/organ/faustwasm/index.d.ts +0 -1695
- package/test/organ/faustwasm/index.js +0 -4888
- package/test/organ/faustwasm/index.js.map +0 -7
- package/test/organ/icon.png +0 -0
- package/test/organ/index.html +0 -76
- package/test/organ/index.js +0 -201
- package/test/organ/manifest.json +0 -17
- package/test/organ/mixer-module.wasm +0 -0
- package/test/organ/service-worker.js +0 -165
|
@@ -40,19 +40,20 @@ $buttonDsp.onclick = async () => {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
// Play some notes using the Faust node
|
|
44
|
+
const play = (node) => {
|
|
45
|
+
node.keyOn(0, 60, 100);
|
|
46
|
+
setTimeout(() => node.keyOn(0, 64, 100), 1000);
|
|
47
|
+
setTimeout(() => node.keyOn(0, 67, 100), 2000);
|
|
48
|
+
setTimeout(() => node.allNotesOff(), 5000);
|
|
49
|
+
setTimeout(() => play(node), 7000);
|
|
50
|
+
}
|
|
51
|
+
|
|
43
52
|
// Called at load time
|
|
44
53
|
(async () => {
|
|
45
54
|
|
|
46
55
|
const { createFaustNode, connectToAudioInput } = await import("./create-node.js");
|
|
47
56
|
|
|
48
|
-
const play = (node) => {
|
|
49
|
-
node.keyOn(0, 60, 100);
|
|
50
|
-
setTimeout(() => node.keyOn(0, 64, 100), 1000);
|
|
51
|
-
setTimeout(() => node.keyOn(0, 67, 100), 2000);
|
|
52
|
-
setTimeout(() => node.allNotesOff(), 5000);
|
|
53
|
-
setTimeout(() => play(node), 7000);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
57
|
// Create Faust node
|
|
57
58
|
const result = await createFaustNode(audioContext, "FAUST_DSP_NAME", FAUST_DSP_VOICES);
|
|
58
59
|
faustNode = result.faustNode; // Assign to the global variable
|