@grame/faustwasm 0.0.60 → 0.0.61

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.
Files changed (44) hide show
  1. package/assets/standalone/faustwasm/index.js +5 -5
  2. package/assets/standalone/faustwasm/index.js.map +2 -2
  3. package/dist/cjs/index.js +5 -5
  4. package/dist/cjs/index.js.map +2 -2
  5. package/dist/cjs-bundle/index.js +5 -5
  6. package/dist/cjs-bundle/index.js.map +2 -2
  7. package/dist/esm/index.js +5 -5
  8. package/dist/esm/index.js.map +2 -2
  9. package/dist/esm-bundle/index.js +5 -5
  10. package/dist/esm-bundle/index.js.map +2 -2
  11. package/package.json +1 -1
  12. package/src/FaustDspGenerator.ts +6 -6
  13. package/test/bug/bug.html +84 -0
  14. package/test/bug/bug.js +216 -0
  15. package/test/bug/bug.json +124 -0
  16. package/test/bug/bug.wasm +0 -0
  17. package/test/bug/bug_effect.json +95 -0
  18. package/test/bug/bug_effect.wasm +0 -0
  19. package/test/bug/faust-ui/index.css +416 -0
  20. package/test/bug/faust-ui/index.css.map +1 -0
  21. package/test/bug/faust-ui/index.d.ts +1 -0
  22. package/test/bug/faust-ui/index.js +3476 -0
  23. package/test/bug/faust-ui/index.js.map +1 -0
  24. package/test/bug/faustwasm/index.d.ts +1294 -0
  25. package/test/bug/faustwasm/index.js +3874 -0
  26. package/test/bug/faustwasm/index.js.map +7 -0
  27. package/test/bug/mixerModule.wasm +0 -0
  28. package/test/faustlive-wasm/faustwasm/index.js +5 -5
  29. package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
  30. package/test/guitar/faust-ui/index.css +416 -0
  31. package/test/guitar/faust-ui/index.css.map +1 -0
  32. package/test/guitar/faust-ui/index.d.ts +1 -0
  33. package/test/guitar/faust-ui/index.js +3476 -0
  34. package/test/guitar/faust-ui/index.js.map +1 -0
  35. package/test/guitar/faustwasm/index.d.ts +1294 -0
  36. package/test/guitar/faustwasm/index.js +3874 -0
  37. package/test/guitar/faustwasm/index.js.map +7 -0
  38. package/test/guitar/guitar.js +227 -0
  39. package/test/guitar/guitar.json +327 -0
  40. package/test/guitar/guitar.wasm +0 -0
  41. package/test/guitar/icon.png +0 -0
  42. package/test/guitar/index.html +86 -0
  43. package/test/guitar/manifest.json +15 -0
  44. package/test/guitar/service-worker.js +35 -0
@@ -9673,7 +9673,7 @@ const dependencies = {
9673
9673
  // Voice output is forced to 2, when DSP is stereo or effect has 2 ins or 2 outs,
9674
9674
  // so that the effect can process the 2 channels of the voice
9675
9675
  adaptOut(1,1,1) = _;
9676
- adaptOut(1,1,2) = _ <: _,_;
9676
+ adaptOut(1,1,2) = _ <: _,0; // The left channel only is kept
9677
9677
  adaptOut(1,2,1) = _ <: _,_;
9678
9678
  adaptOut(1,2,2) = _ <: _,_;
9679
9679
  adaptOut(2,1,1) = _,_;
@@ -9688,7 +9688,7 @@ const dependencies = {
9688
9688
  const effectCode = `
9689
9689
  // Inputs
9690
9690
  adaptIn(1,1,1) = _;
9691
- adaptIn(1,1,2) = _,*(0) :> _; // The voice output was duplicated, so only one channel has to be kept
9691
+ adaptIn(1,1,2) = _,_ :> _;
9692
9692
  adaptIn(1,2,1) = _,_;
9693
9693
  adaptIn(1,2,2) = _,_;
9694
9694
  adaptIn(2,1,1) = _,_ :> _;
@@ -9696,9 +9696,9 @@ const dependencies = {
9696
9696
  adaptIn(2,2,1) = _,_;
9697
9697
  adaptIn(2,2,2) = _,_;
9698
9698
  // Outputs
9699
- adaptOut(1,1) = _ <: _,*(0); // The left channel is kept, but the right one has to be cleared
9699
+ adaptOut(1,1) = _ <: _,0; // The left channel only is kept
9700
9700
  adaptOut(1,2) = _,_;
9701
- adaptOut(2,1) = _ <: _,*(0); // The left channel is kept, but the right one has to be cleared
9701
+ adaptOut(2,1) = _ <: _,0; // The left channel only is kept
9702
9702
  adaptOut(2,2) = _,_;
9703
9703
  adaptorIns(F) = adaptIn(outputs(F),${effectJSON.inputs},${effectJSON.outputs});
9704
9704
  adaptorOuts = adaptOut(${effectJSON.inputs},${effectJSON.outputs});
@@ -9714,7 +9714,7 @@ const dependencies = {
9714
9714
  }
9715
9715
  }
9716
9716
  } catch (e) {
9717
- console.log(e);
9717
+ console.warn(e);
9718
9718
  this.voiceFactory = await compiler.createPolyDSPFactory(name, dspCodeAux, args);
9719
9719
  }
9720
9720
  if (this.voiceFactory) {