@grame/faustwasm 0.0.53 → 0.0.54
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 +18 -6
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/dist/cjs/index.js +18 -6
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.js +18 -6
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.js +18 -6
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.js +18 -6
- package/dist/esm-bundle/index.js.map +2 -2
- package/libfaust-wasm/libfaust-wasm.js +1 -1
- package/libfaust-wasm/libfaust-wasm.wasm +0 -0
- package/package.json +1 -1
- package/src/FaustDspGenerator.ts +11 -5
- package/test/faustlive-wasm/faustwasm/index.js +18 -6
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
package/dist/esm-bundle/index.js
CHANGED
|
@@ -8445,8 +8445,11 @@ this.fAudioMixingHalf: ${this.fAudioMixingHalf}`;
|
|
|
8445
8445
|
}
|
|
8446
8446
|
}
|
|
8447
8447
|
});
|
|
8448
|
-
if (this.fInstance.effectAPI)
|
|
8448
|
+
if (this.fInstance.effectAPI) {
|
|
8449
|
+
console.log("effectAPI.getNumInputs() = %d", this.fInstance.effectAPI.getNumInputs(this.fEffect));
|
|
8450
|
+
console.log("effectAPI.getNumOutputs() = %d", this.fInstance.effectAPI.getNumOutputs(this.fEffect));
|
|
8449
8451
|
this.fInstance.effectAPI.compute(this.fEffect, this.fBufferSize, this.fAudioOutputs, this.fAudioOutputs);
|
|
8452
|
+
}
|
|
8450
8453
|
this.updateOutputs();
|
|
8451
8454
|
if (output !== void 0) {
|
|
8452
8455
|
for (let chan = 0; chan < Math.min(this.getNumOutputs(), output.length); chan++) {
|
|
@@ -8464,7 +8467,11 @@ this.fAudioMixingHalf: ${this.fAudioMixingHalf}`;
|
|
|
8464
8467
|
return this.fInstance.voiceAPI.getNumInputs(0);
|
|
8465
8468
|
}
|
|
8466
8469
|
getNumOutputs() {
|
|
8467
|
-
|
|
8470
|
+
if (this.fInstance.effectAPI) {
|
|
8471
|
+
console.log("effectAPI.getNumOutputs() = %d", this.fInstance.effectAPI.getNumOutputs(this.fEffect));
|
|
8472
|
+
console.log("VOICE.getNumOutputs() = %d", this.fInstance.voiceAPI.getNumOutputs(0));
|
|
8473
|
+
}
|
|
8474
|
+
return this.fInstance.effectAPI ? this.fInstance.effectAPI.getNumOutputs(this.fEffect) : this.fInstance.voiceAPI.getNumOutputs(0);
|
|
8468
8475
|
}
|
|
8469
8476
|
static findPath(o, p) {
|
|
8470
8477
|
if (typeof o !== "object") {
|
|
@@ -9625,10 +9632,15 @@ var _FaustPolyDspGenerator = class {
|
|
|
9625
9632
|
this.effectFactory = null;
|
|
9626
9633
|
}
|
|
9627
9634
|
async compile(compiler, name, dspCode, args, effectCode = `
|
|
9628
|
-
adapt(1,1) = _;
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9635
|
+
adapt(1,1) = _;
|
|
9636
|
+
adapt(2,2) = _,_;
|
|
9637
|
+
adapt(1,2) = _ <: _,_;
|
|
9638
|
+
adapt(2,1) = _,_ :> _;
|
|
9639
|
+
adaptor(F,G) = adapt(outputs(F),inputs(G));
|
|
9640
|
+
dsp_code = environment{
|
|
9641
|
+
${dspCode}
|
|
9642
|
+
};
|
|
9643
|
+
process = adaptor(dsp_code.process, dsp_code.effect) : dsp_code.effect;`) {
|
|
9632
9644
|
this.voiceFactory = await compiler.createPolyDSPFactory(name, dspCode, args);
|
|
9633
9645
|
if (!this.voiceFactory)
|
|
9634
9646
|
return null;
|