@grame/faustwasm 0.2.2 → 0.3.0
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 -0
- package/assets/standalone/faustwasm/index.d.ts +49 -8
- package/assets/standalone/faustwasm/index.js +538 -15
- package/assets/standalone/faustwasm/index.js.map +3 -3
- package/assets/standalone/index.js +17 -11
- package/dist/cjs/index.d.ts +49 -8
- package/dist/cjs/index.js +537 -15
- package/dist/cjs/index.js.map +3 -3
- package/dist/cjs-bundle/index.d.ts +49 -8
- package/dist/cjs-bundle/index.js +540 -18
- package/dist/cjs-bundle/index.js.map +3 -3
- package/dist/esm/index.d.ts +49 -8
- package/dist/esm/index.js +538 -15
- package/dist/esm/index.js.map +3 -3
- package/dist/esm-bundle/index.d.ts +49 -8
- package/dist/esm-bundle/index.js +540 -18
- package/dist/esm-bundle/index.js.map +3 -3
- package/libfaust-wasm/libfaust-wasm.data +0 -0
- package/libfaust-wasm/libfaust-wasm.js +1 -1
- package/libfaust-wasm/libfaust-wasm.wasm +0 -0
- package/package.json +1 -1
- package/src/FaustAudioWorkletNode.ts +73 -0
- package/src/FaustAudioWorkletProcessor.ts +33 -4
- package/src/FaustDspGenerator.ts +14 -2
- package/src/FaustOfflineProcessor.ts +10 -0
- package/src/FaustScriptProcessorNode.ts +61 -1
- package/src/FaustSensors.ts +370 -0
- package/src/FaustWebAudioDsp.ts +122 -23
- package/test/faustlive-wasm/faustwasm/index.d.ts +49 -8
- package/test/faustlive-wasm/faustwasm/index.js +538 -15
- package/test/faustlive-wasm/faustwasm/index.js.map +3 -3
- package/test/faustlive-wasm/index.js +2 -0
- package/test/mono.dsp +1 -0
- package/test/osc.dsp +4 -2
|
@@ -492,6 +492,7 @@ const activateMonoDSP = (dsp) => {
|
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
// Setup UI
|
|
495
|
+
DSP.listenMotion();
|
|
495
496
|
faustUI = new FaustUI({ ui: DSP.getUI(), root: faustUIRoot });
|
|
496
497
|
faustUI.paramChangeByUI = (path, value) => DSP.setParamValue(path, value);
|
|
497
498
|
DSP.setOutputParamHandler(output_handler);
|
|
@@ -519,6 +520,7 @@ const activatePolyDSP = (dsp) => {
|
|
|
519
520
|
}
|
|
520
521
|
|
|
521
522
|
// Setup UI
|
|
523
|
+
DSP.listenMotion();
|
|
522
524
|
faustUI = new FaustUI({ ui: DSP.getUI(), root: faustUIRoot });
|
|
523
525
|
faustUI.paramChangeByUI = (path, value) => DSP.setParamValue(path, value);
|
|
524
526
|
DSP.setOutputParamHandler(output_handler);
|
package/test/mono.dsp
CHANGED
package/test/osc.dsp
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import("stdfaust.lib");
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
|
|
3
|
+
vol = hslider("volume [unit:dB][acc:1 1 -10 0 10]", 0, -96, 0, 0.1) : ba.db2linear : si.smoo;
|
|
4
|
+
freq = hslider("freq [unit:Hz][acc:0 1 -10 0 10]", 500, 20, 2500, 1) : si.smoo;
|
|
5
|
+
|
|
4
6
|
process = vgroup("Oscillator", os.osc(freq) * vol);
|