@grame/faustwasm 0.0.60 → 0.0.62

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/dist/cjs/index.js CHANGED
@@ -3656,7 +3656,7 @@ const dependencies = {
3656
3656
  // Voice output is forced to 2, when DSP is stereo or effect has 2 ins or 2 outs,
3657
3657
  // so that the effect can process the 2 channels of the voice
3658
3658
  adaptOut(1,1,1) = _;
3659
- adaptOut(1,1,2) = _ <: _,_;
3659
+ adaptOut(1,1,2) = _ <: _,0; // The left channel only is kept
3660
3660
  adaptOut(1,2,1) = _ <: _,_;
3661
3661
  adaptOut(1,2,2) = _ <: _,_;
3662
3662
  adaptOut(2,1,1) = _,_;
@@ -3671,7 +3671,7 @@ const dependencies = {
3671
3671
  const effectCode = `
3672
3672
  // Inputs
3673
3673
  adaptIn(1,1,1) = _;
3674
- adaptIn(1,1,2) = _,*(0) :> _; // The voice output was duplicated, so only one channel has to be kept
3674
+ adaptIn(1,1,2) = _,_ :> _;
3675
3675
  adaptIn(1,2,1) = _,_;
3676
3676
  adaptIn(1,2,2) = _,_;
3677
3677
  adaptIn(2,1,1) = _,_ :> _;
@@ -3679,9 +3679,9 @@ const dependencies = {
3679
3679
  adaptIn(2,2,1) = _,_;
3680
3680
  adaptIn(2,2,2) = _,_;
3681
3681
  // Outputs
3682
- adaptOut(1,1) = _ <: _,*(0); // The left channel is kept, but the right one has to be cleared
3682
+ adaptOut(1,1) = _ <: _,0; // The left channel only is kept
3683
3683
  adaptOut(1,2) = _,_;
3684
- adaptOut(2,1) = _ <: _,*(0); // The left channel is kept, but the right one has to be cleared
3684
+ adaptOut(2,1) = _ <: _,0; // The left channel only is kept
3685
3685
  adaptOut(2,2) = _,_;
3686
3686
  adaptorIns(F) = adaptIn(outputs(F),${effectJSON.inputs},${effectJSON.outputs});
3687
3687
  adaptorOuts = adaptOut(${effectJSON.inputs},${effectJSON.outputs});
@@ -3693,11 +3693,11 @@ const dependencies = {
3693
3693
  try {
3694
3694
  this.effectFactory = await compiler.createPolyDSPFactory(name, effectCode, args + " -inpl");
3695
3695
  } catch (e) {
3696
- console.log(e);
3696
+ console.warn(e);
3697
3697
  }
3698
3698
  }
3699
3699
  } catch (e) {
3700
- console.log(e);
3700
+ console.warn(e);
3701
3701
  this.voiceFactory = await compiler.createPolyDSPFactory(name, dspCodeAux, args);
3702
3702
  }
3703
3703
  if (this.voiceFactory) {