@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/assets/standalone/faustwasm/index.js +6 -6
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.js +6 -6
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.js +6 -6
- package/dist/esm-bundle/index.js.map +2 -2
- package/package.json +1 -1
- package/src/FaustDspGenerator.ts +6 -6
- package/test/faustlive-wasm/faustwasm/index.js +6 -6
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
package/package.json
CHANGED
package/src/FaustDspGenerator.ts
CHANGED
|
@@ -414,7 +414,7 @@ export class FaustPolyDspGenerator implements IFaustPolyDspGenerator {
|
|
|
414
414
|
// Voice output is forced to 2, when DSP is stereo or effect has 2 ins or 2 outs,
|
|
415
415
|
// so that the effect can process the 2 channels of the voice
|
|
416
416
|
adaptOut(1,1,1) = _;
|
|
417
|
-
adaptOut(1,1,2) = _ <: _,
|
|
417
|
+
adaptOut(1,1,2) = _ <: _,0; // The left channel only is kept
|
|
418
418
|
adaptOut(1,2,1) = _ <: _,_;
|
|
419
419
|
adaptOut(1,2,2) = _ <: _,_;
|
|
420
420
|
adaptOut(2,1,1) = _,_;
|
|
@@ -429,7 +429,7 @@ export class FaustPolyDspGenerator implements IFaustPolyDspGenerator {
|
|
|
429
429
|
const effectCode = `
|
|
430
430
|
// Inputs
|
|
431
431
|
adaptIn(1,1,1) = _;
|
|
432
|
-
adaptIn(1,1,2) = _
|
|
432
|
+
adaptIn(1,1,2) = _,_ :> _;
|
|
433
433
|
adaptIn(1,2,1) = _,_;
|
|
434
434
|
adaptIn(1,2,2) = _,_;
|
|
435
435
|
adaptIn(2,1,1) = _,_ :> _;
|
|
@@ -437,9 +437,9 @@ export class FaustPolyDspGenerator implements IFaustPolyDspGenerator {
|
|
|
437
437
|
adaptIn(2,2,1) = _,_;
|
|
438
438
|
adaptIn(2,2,2) = _,_;
|
|
439
439
|
// Outputs
|
|
440
|
-
adaptOut(1,1) = _ <: _
|
|
440
|
+
adaptOut(1,1) = _ <: _,0; // The left channel only is kept
|
|
441
441
|
adaptOut(1,2) = _,_;
|
|
442
|
-
adaptOut(2,1) = _ <: _
|
|
442
|
+
adaptOut(2,1) = _ <: _,0; // The left channel only is kept
|
|
443
443
|
adaptOut(2,2) = _,_;
|
|
444
444
|
adaptorIns(F) = adaptIn(outputs(F),${effectJSON.inputs},${effectJSON.outputs});
|
|
445
445
|
adaptorOuts = adaptOut(${effectJSON.inputs},${effectJSON.outputs});
|
|
@@ -452,11 +452,11 @@ export class FaustPolyDspGenerator implements IFaustPolyDspGenerator {
|
|
|
452
452
|
// Effect is processing same buffers for inputs and outputs, so has to use -inpl option
|
|
453
453
|
this.effectFactory = await compiler.createPolyDSPFactory(name, effectCode, args + " -inpl");
|
|
454
454
|
} catch (e) {
|
|
455
|
-
console.
|
|
455
|
+
console.warn(e);
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
} catch (e) {
|
|
459
|
-
console.
|
|
459
|
+
console.warn(e);
|
|
460
460
|
this.voiceFactory = await compiler.createPolyDSPFactory(name, dspCodeAux, args);
|
|
461
461
|
}
|
|
462
462
|
|
|
@@ -3648,7 +3648,7 @@ var _FaustPolyDspGenerator = class {
|
|
|
3648
3648
|
// Voice output is forced to 2, when DSP is stereo or effect has 2 ins or 2 outs,
|
|
3649
3649
|
// so that the effect can process the 2 channels of the voice
|
|
3650
3650
|
adaptOut(1,1,1) = _;
|
|
3651
|
-
adaptOut(1,1,2) = _ <: _,
|
|
3651
|
+
adaptOut(1,1,2) = _ <: _,0; // The left channel only is kept
|
|
3652
3652
|
adaptOut(1,2,1) = _ <: _,_;
|
|
3653
3653
|
adaptOut(1,2,2) = _ <: _,_;
|
|
3654
3654
|
adaptOut(2,1,1) = _,_;
|
|
@@ -3663,7 +3663,7 @@ var _FaustPolyDspGenerator = class {
|
|
|
3663
3663
|
const effectCode = `
|
|
3664
3664
|
// Inputs
|
|
3665
3665
|
adaptIn(1,1,1) = _;
|
|
3666
|
-
adaptIn(1,1,2) = _
|
|
3666
|
+
adaptIn(1,1,2) = _,_ :> _;
|
|
3667
3667
|
adaptIn(1,2,1) = _,_;
|
|
3668
3668
|
adaptIn(1,2,2) = _,_;
|
|
3669
3669
|
adaptIn(2,1,1) = _,_ :> _;
|
|
@@ -3671,9 +3671,9 @@ var _FaustPolyDspGenerator = class {
|
|
|
3671
3671
|
adaptIn(2,2,1) = _,_;
|
|
3672
3672
|
adaptIn(2,2,2) = _,_;
|
|
3673
3673
|
// Outputs
|
|
3674
|
-
adaptOut(1,1) = _ <: _
|
|
3674
|
+
adaptOut(1,1) = _ <: _,0; // The left channel only is kept
|
|
3675
3675
|
adaptOut(1,2) = _,_;
|
|
3676
|
-
adaptOut(2,1) = _ <: _
|
|
3676
|
+
adaptOut(2,1) = _ <: _,0; // The left channel only is kept
|
|
3677
3677
|
adaptOut(2,2) = _,_;
|
|
3678
3678
|
adaptorIns(F) = adaptIn(outputs(F),${effectJSON.inputs},${effectJSON.outputs});
|
|
3679
3679
|
adaptorOuts = adaptOut(${effectJSON.inputs},${effectJSON.outputs});
|
|
@@ -3685,11 +3685,11 @@ var _FaustPolyDspGenerator = class {
|
|
|
3685
3685
|
try {
|
|
3686
3686
|
this.effectFactory = await compiler.createPolyDSPFactory(name, effectCode, args + " -inpl");
|
|
3687
3687
|
} catch (e) {
|
|
3688
|
-
console.
|
|
3688
|
+
console.warn(e);
|
|
3689
3689
|
}
|
|
3690
3690
|
}
|
|
3691
3691
|
} catch (e) {
|
|
3692
|
-
console.
|
|
3692
|
+
console.warn(e);
|
|
3693
3693
|
this.voiceFactory = await compiler.createPolyDSPFactory(name, dspCodeAux, args);
|
|
3694
3694
|
}
|
|
3695
3695
|
if (this.voiceFactory) {
|