@grame/faustwasm 0.0.65 → 0.0.67
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/TODO.md +5 -0
- package/assets/standalone/faustwasm/index.d.ts +6 -4
- package/assets/standalone/faustwasm/index.js +4 -4
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/dist/cjs/index.d.ts +6 -4
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.d.ts +6 -4
- package/dist/cjs-bundle/index.js +4 -4
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +6 -4
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.d.ts +6 -4
- 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/src/types.ts +5 -4
- package/test/faustlive-wasm/faustwasm/index.d.ts +6 -4
- package/test/faustlive-wasm/faustwasm/index.js +4 -4
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
- package/test/tp0.dsp +17 -0
- package/test/tp0.dsp.json +30 -0
- package/test/tp0_local.dsp +5 -0
|
@@ -131,6 +131,7 @@ export interface FaustUIInputItem {
|
|
|
131
131
|
type: FaustUIInputType;
|
|
132
132
|
label: string;
|
|
133
133
|
address: string;
|
|
134
|
+
url: string;
|
|
134
135
|
index: number;
|
|
135
136
|
init?: number;
|
|
136
137
|
min?: number;
|
|
@@ -158,7 +159,7 @@ export interface FaustUIMeta {
|
|
|
158
159
|
}
|
|
159
160
|
export type FaustUIGroupType = "vgroup" | "hgroup" | "tgroup";
|
|
160
161
|
export type FaustUIOutputType = "hbargraph" | "vbargraph";
|
|
161
|
-
export type FaustUIInputType = "vslider" | "hslider" | "button" | "checkbox" | "nentry";
|
|
162
|
+
export type FaustUIInputType = "vslider" | "hslider" | "button" | "checkbox" | "nentry" | "soundfile";
|
|
162
163
|
export interface FaustUIGroup {
|
|
163
164
|
type: FaustUIGroupType;
|
|
164
165
|
label: string;
|
|
@@ -774,7 +775,8 @@ export interface FaustFFTAudioWorkletProcessorOptions {
|
|
|
774
775
|
}
|
|
775
776
|
export declare const getFaustFFTAudioWorkletProcessor: (dependencies: FaustFFTAudioWorkletProcessorDependencies, faustData: FaustFFTData, register?: boolean) => {
|
|
776
777
|
new (options: AudioWorkletNodeOptions): AudioWorkletProcessor;
|
|
777
|
-
|
|
778
|
+
/** Generated from the current window function */
|
|
779
|
+
prototype: AudioWorkletProcessor;
|
|
778
780
|
parameterDescriptors: AudioParamDescriptor[];
|
|
779
781
|
};
|
|
780
782
|
export interface ILibFaust extends LibFaustWasm {
|
|
@@ -1007,8 +1009,8 @@ export interface IFaustCmajor {
|
|
|
1007
1009
|
compile(name: string, code: string, args: string): string;
|
|
1008
1010
|
}
|
|
1009
1011
|
export declare class FaustCmajor implements IFaustCmajor {
|
|
1010
|
-
private
|
|
1011
|
-
constructor(
|
|
1012
|
+
private fLibFaust;
|
|
1013
|
+
constructor(libfaust: LibFaust);
|
|
1012
1014
|
compile(name: string, code: string, args: string): string;
|
|
1013
1015
|
}
|
|
1014
1016
|
export interface WavEncoderOptions {
|
package/dist/cjs-bundle/index.js
CHANGED
|
@@ -8779,12 +8779,12 @@ this.fAudioMixingHalf: ${this.fAudioMixingHalf}`;
|
|
|
8779
8779
|
|
|
8780
8780
|
// src/FaustCmajor.ts
|
|
8781
8781
|
var FaustCmajor = class {
|
|
8782
|
-
constructor(
|
|
8783
|
-
this.
|
|
8782
|
+
constructor(libfaust) {
|
|
8783
|
+
this.fLibFaust = libfaust;
|
|
8784
8784
|
}
|
|
8785
8785
|
compile(name, code, args) {
|
|
8786
|
-
const fs = this.
|
|
8787
|
-
const success = this.
|
|
8786
|
+
const fs = this.fLibFaust.fs();
|
|
8787
|
+
const success = this.fLibFaust.generateAuxFiles(name, code, `-lang cmajor-hybrid -cn ${name} -o ${name}.cmajor`);
|
|
8788
8788
|
return success ? fs.readFile(`${name}.cmajor`, { encoding: "utf8" }) : "";
|
|
8789
8789
|
}
|
|
8790
8790
|
};
|