@grame/faustwasm 0.6.4 → 0.7.3
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/create-node.js +5 -3
- package/assets/standalone/faustwasm/index.d.ts +10 -4
- package/assets/standalone/faustwasm/index.js +69 -35
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/assets/standalone/index-pwa.js +57 -8
- package/assets/standalone/index-template.js +3 -3
- package/assets/standalone/index.js +4 -4
- package/dist/cjs/index.d.ts +10 -4
- package/dist/cjs/index.js +69 -35
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.d.ts +10 -4
- package/dist/cjs-bundle/index.js +71 -37
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +10 -4
- package/dist/esm/index.js +69 -35
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.d.ts +10 -4
- package/dist/esm-bundle/index.js +71 -37
- package/dist/esm-bundle/index.js.map +2 -2
- 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 +35 -16
- package/src/FaustScriptProcessorNode.ts +38 -16
- package/src/FaustWebAudioDsp.ts +2 -3
- package/test/faustlive-wasm/faustwasm/index.d.ts +10 -4
- package/test/faustlive-wasm/faustwasm/index.js +69 -35
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
- package/test/faustlive-wasm/index.js +3 -2
- package/test/osc2.dsp +1 -1
|
@@ -471,6 +471,7 @@ const deleteDSP = () => {
|
|
|
471
471
|
audio_input.disconnect(DSP);
|
|
472
472
|
}
|
|
473
473
|
DSP.disconnect(audio_context.destination);
|
|
474
|
+
DSP.stopSensors();
|
|
474
475
|
DSP.destroy();
|
|
475
476
|
faustUIRoot.innerHTML = "";
|
|
476
477
|
DSP = null;
|
|
@@ -492,7 +493,7 @@ const activateMonoDSP = (dsp) => {
|
|
|
492
493
|
}
|
|
493
494
|
|
|
494
495
|
// Setup UI
|
|
495
|
-
DSP.
|
|
496
|
+
DSP.startSensors();
|
|
496
497
|
faustUI = new FaustUI({ ui: DSP.getUI(), root: faustUIRoot });
|
|
497
498
|
faustUI.paramChangeByUI = (path, value) => DSP.setParamValue(path, value);
|
|
498
499
|
DSP.setOutputParamHandler(output_handler);
|
|
@@ -520,7 +521,7 @@ const activatePolyDSP = (dsp) => {
|
|
|
520
521
|
}
|
|
521
522
|
|
|
522
523
|
// Setup UI
|
|
523
|
-
DSP.
|
|
524
|
+
DSP.startSensors();
|
|
524
525
|
faustUI = new FaustUI({ ui: DSP.getUI(), root: faustUIRoot });
|
|
525
526
|
faustUI.paramChangeByUI = (path, value) => DSP.setParamValue(path, value);
|
|
526
527
|
DSP.setOutputParamHandler(output_handler);
|
package/test/osc2.dsp
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import("stdfaust.lib");
|
|
2
|
-
f = hslider("freq [midi:ctrl 7][acc:0 1 -10 0 10]",440,50,2000,0.01);
|
|
2
|
+
f = hslider("freq [midi:ctrl 7][acc:0 1 -10 0 10]",440,50,2000,0.01) : si.smoo;
|
|
3
3
|
phasor(freq) = (+(freq/ma.SR) ~ ma.decimal);
|
|
4
4
|
osc(freq) = sin(phasor(freq)*2*ma.PI);
|
|
5
5
|
process = osc(f);
|