@grame/faustwasm 0.0.65 → 0.0.66
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.d.ts +2 -2
- package/assets/standalone/faustwasm/index.js +4 -4
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.d.ts +2 -2
- package/dist/cjs-bundle/index.js +4 -4
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.d.ts +2 -2
- package/dist/esm-bundle/index.js +4 -4
- package/dist/esm-bundle/index.js.map +2 -2
- package/package.json +2 -2
- package/src/FaustCmajor.ts +6 -6
- package/test/faustlive-wasm/faustwasm/index.d.ts +2 -2
- package/test/faustlive-wasm/faustwasm/index.js +4 -4
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
|
@@ -1007,8 +1007,8 @@ export interface IFaustCmajor {
|
|
|
1007
1007
|
compile(name: string, code: string, args: string): string;
|
|
1008
1008
|
}
|
|
1009
1009
|
export declare class FaustCmajor implements IFaustCmajor {
|
|
1010
|
-
private
|
|
1011
|
-
constructor(
|
|
1010
|
+
private fLibFaust;
|
|
1011
|
+
constructor(libfaust: LibFaust);
|
|
1012
1012
|
compile(name: string, code: string, args: string): string;
|
|
1013
1013
|
}
|
|
1014
1014
|
export interface WavEncoderOptions {
|
package/dist/esm-bundle/index.js
CHANGED
|
@@ -8741,12 +8741,12 @@ var FaustSvgDiagrams_default = FaustSvgDiagrams;
|
|
|
8741
8741
|
|
|
8742
8742
|
// src/FaustCmajor.ts
|
|
8743
8743
|
var FaustCmajor = class {
|
|
8744
|
-
constructor(
|
|
8745
|
-
this.
|
|
8744
|
+
constructor(libfaust) {
|
|
8745
|
+
this.fLibFaust = libfaust;
|
|
8746
8746
|
}
|
|
8747
8747
|
compile(name, code, args) {
|
|
8748
|
-
const fs = this.
|
|
8749
|
-
const success = this.
|
|
8748
|
+
const fs = this.fLibFaust.fs();
|
|
8749
|
+
const success = this.fLibFaust.generateAuxFiles(name, code, `-lang cmajor-hybrid -cn ${name} -o ${name}.cmajor`);
|
|
8750
8750
|
return success ? fs.readFile(`${name}.cmajor`, { encoding: "utf8" }) : "";
|
|
8751
8751
|
}
|
|
8752
8752
|
};
|