@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.
@@ -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
@@ -5,4 +5,5 @@ declare license "BSD";
5
5
  declare copyright "shren2021";
6
6
  declare description "This is an oscillator";
7
7
  import("stdfaust.lib");
8
+
8
9
  process = os.osc(440);
package/test/osc.dsp CHANGED
@@ -1,4 +1,6 @@
1
1
  import("stdfaust.lib");
2
- vol = hslider("volume [unit:dB]", 0, -96, 0, 0.1) : ba.db2linear : si.smoo;
3
- freq = hslider("freq [unit:Hz]", 500, 20, 24000, 1);
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);