@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.
@@ -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.listenSensors();
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.listenSensors();
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);