@grame/faustwasm 0.0.26 → 0.0.28
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/README.md +6 -6
- package/assets/standalone/faustwasm/index.d.ts +17 -17
- package/assets/standalone/faustwasm/index.js +29 -12
- package/assets/standalone/faustwasm/index.js.map +3 -3
- package/dist/cjs/index.d.ts +17 -17
- package/dist/cjs/index.js +29 -12
- package/dist/cjs/index.js.map +3 -3
- package/dist/cjs-bundle/index.d.ts +17 -17
- package/dist/cjs-bundle/index.js +66 -41
- package/dist/cjs-bundle/index.js.map +3 -3
- package/dist/esm/index.d.ts +17 -17
- package/dist/esm/index.js +29 -12
- package/dist/esm/index.js.map +3 -3
- package/dist/esm-bundle/index.d.ts +17 -17
- package/dist/esm-bundle/index.js +70 -41
- package/dist/esm-bundle/index.js.map +3 -3
- package/package.json +4 -2
- package/test/faustlive-wasm/faustwasm/index.d.ts +17 -17
- package/test/faustlive-wasm/faustwasm/index.js +29 -12
- package/test/faustlive-wasm/faustwasm/index.js.map +3 -3
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/// <reference types="emscripten" />
|
|
4
4
|
/// <reference types="node" />
|
|
5
5
|
|
|
6
|
-
export
|
|
6
|
+
export type FaustModuleFactory = EmscriptenModuleFactory<FaustModule>;
|
|
7
7
|
export interface FaustModule extends EmscriptenModule {
|
|
8
8
|
ccall: typeof ccall;
|
|
9
9
|
cwrap: typeof cwrap;
|
|
@@ -22,7 +22,7 @@ export interface FaustModule extends EmscriptenModule {
|
|
|
22
22
|
FS: typeof FS;
|
|
23
23
|
libFaustWasm: new () => LibFaustWasm;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type FaustInfoType = "help" | "version" | "libdir" | "includedir" | "archdir" | "dspdir" | "pathslist";
|
|
26
26
|
export interface IntVector {
|
|
27
27
|
size(): number;
|
|
28
28
|
get(i: number): number;
|
|
@@ -125,8 +125,8 @@ export interface FaustDspMeta {
|
|
|
125
125
|
}[];
|
|
126
126
|
ui: FaustUIDescriptor;
|
|
127
127
|
}
|
|
128
|
-
export
|
|
129
|
-
export
|
|
128
|
+
export type FaustUIDescriptor = FaustUIGroup[];
|
|
129
|
+
export type FaustUIItem = FaustUIInputItem | FaustUIOutputItem | FaustUIGroup;
|
|
130
130
|
export interface FaustUIInputItem {
|
|
131
131
|
type: FaustUIInputType;
|
|
132
132
|
label: string;
|
|
@@ -156,15 +156,15 @@ export interface FaustUIMeta {
|
|
|
156
156
|
hidden?: string;
|
|
157
157
|
[key: string]: string | undefined;
|
|
158
158
|
}
|
|
159
|
-
export
|
|
160
|
-
export
|
|
161
|
-
export
|
|
159
|
+
export type FaustUIGroupType = "vgroup" | "hgroup" | "tgroup";
|
|
160
|
+
export type FaustUIOutputType = "hbargraph" | "vbargraph";
|
|
161
|
+
export type FaustUIInputType = "vslider" | "hslider" | "button" | "checkbox" | "nentry";
|
|
162
162
|
export interface FaustUIGroup {
|
|
163
163
|
type: FaustUIGroupType;
|
|
164
164
|
label: string;
|
|
165
165
|
items: FaustUIItem[];
|
|
166
166
|
}
|
|
167
|
-
export
|
|
167
|
+
export type FaustUIType = FaustUIGroupType | FaustUIOutputType | FaustUIInputType;
|
|
168
168
|
export interface AudioParamDescriptor {
|
|
169
169
|
automationRate?: AutomationRate;
|
|
170
170
|
defaultValue?: number;
|
|
@@ -198,12 +198,12 @@ export interface InterfaceFFT {
|
|
|
198
198
|
export declare const InterfaceFFT: {
|
|
199
199
|
new (size: number): InterfaceFFT;
|
|
200
200
|
};
|
|
201
|
-
export
|
|
202
|
-
export
|
|
201
|
+
export type TWindowFunction = (index: number, length: number, ...args: any[]) => number;
|
|
202
|
+
export type Writeable<T> = {
|
|
203
203
|
-readonly [P in keyof T]: T[P];
|
|
204
204
|
};
|
|
205
|
-
export
|
|
206
|
-
export
|
|
205
|
+
export type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array;
|
|
206
|
+
export type TypedArrayConstructor = typeof Int8Array | typeof Uint8Array | typeof Int16Array | typeof Uint16Array | typeof Int32Array | typeof Uint32Array | typeof Uint8ClampedArray | typeof Float32Array | typeof Float64Array;
|
|
207
207
|
export declare const FFTUtils: {
|
|
208
208
|
/** Inject window functions as array, no need to add rectangular (no windowing) */
|
|
209
209
|
windowFunctions?: TWindowFunction[];
|
|
@@ -366,14 +366,14 @@ export declare class FaustWasmInstantiator {
|
|
|
366
366
|
static createAsyncPolyDSPInstance(voiceFactory: LooseFaustDspFactory, mixerModule: WebAssembly.Module, voices: number, effectFactory?: LooseFaustDspFactory): Promise<FaustPolyDspInstance>;
|
|
367
367
|
static createSyncPolyDSPInstance(voiceFactory: LooseFaustDspFactory, mixerModule: WebAssembly.Module, voices: number, effectFactory?: LooseFaustDspFactory): FaustPolyDspInstance;
|
|
368
368
|
}
|
|
369
|
-
export
|
|
370
|
-
export
|
|
371
|
-
export
|
|
369
|
+
export type OutputParamHandler = (path: string, value: number) => void;
|
|
370
|
+
export type ComputeHandler = (buffer_size: number) => void;
|
|
371
|
+
export type PlotHandler = (plotted: Float32Array[] | Float64Array[], index: number, events?: {
|
|
372
372
|
type: string;
|
|
373
373
|
data: any;
|
|
374
374
|
}[]) => void;
|
|
375
|
-
export
|
|
376
|
-
export
|
|
375
|
+
export type MetadataHandler = (key: string, value: string) => void;
|
|
376
|
+
export type UIHandler = (item: FaustUIItem) => void;
|
|
377
377
|
/**
|
|
378
378
|
* DSP implementation: mimic the C++ 'dsp' class:
|
|
379
379
|
* - adding MIDI control: metadata are decoded and incoming MIDI messages will control the associated controllers
|