@grame/faustwasm 0.13.0 → 0.13.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/README.md +2 -2
- package/assets/standalone/faustwasm/index.js +33 -14
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/dist/cjs/index.js +33 -14
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.js +33 -14
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.js +33 -14
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.js +33 -14
- package/dist/esm-bundle/index.js.map +2 -2
- package/package.json +1 -1
- package/src/FaustDspGenerator.ts +47 -26
- package/test/faustlive-wasm/faustwasm/index.js +33 -14
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
- package/test/web/create-faust-node.js +4 -9
|
@@ -19,11 +19,7 @@ process = gain * os.osc(freq) * gate;
|
|
|
19
19
|
const polyEffectCode = `
|
|
20
20
|
declare options "[nvoices:4][midi:on]";
|
|
21
21
|
import("stdfaust.lib");
|
|
22
|
-
|
|
23
|
-
gain = hslider("gain", 0.5, 0, 1, 0.01);
|
|
24
|
-
gate = button("gate");
|
|
25
|
-
synth = gain * os.osc(freq) * gate;
|
|
26
|
-
process = synth, synth : dm.zita_light;
|
|
22
|
+
process = pm.clarinet_ui_MIDI <: dm.zita_light;
|
|
27
23
|
`;
|
|
28
24
|
|
|
29
25
|
const audioContext = new AudioContext({ latencyHint: 'interactive' });
|
|
@@ -44,8 +40,8 @@ async function runMonoPolyTest(modeLabel, sp = false, bufferSize) {
|
|
|
44
40
|
|
|
45
41
|
try {
|
|
46
42
|
log(`Starting ${modeLabel} mono test for 5 seconds…`);
|
|
47
|
-
const
|
|
48
|
-
const monoNode = await
|
|
43
|
+
const generator = new FaustDspGenerator();
|
|
44
|
+
const monoNode = await generator.createFaustNode(
|
|
49
45
|
audioContext,
|
|
50
46
|
`${modeLabel}_mono_test`,
|
|
51
47
|
monoCode,
|
|
@@ -67,8 +63,7 @@ async function runMonoPolyTest(modeLabel, sp = false, bufferSize) {
|
|
|
67
63
|
monoNode.disconnect();
|
|
68
64
|
log(`${modeLabel} mono stopped after 5 seconds; starting poly test…`);
|
|
69
65
|
|
|
70
|
-
const
|
|
71
|
-
const polyNode = await polyGenerator.createFaustNode(
|
|
66
|
+
const polyNode = await generator.createFaustNode(
|
|
72
67
|
audioContext,
|
|
73
68
|
`${modeLabel}_poly_test`,
|
|
74
69
|
polyCode,
|