@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.
@@ -3,7 +3,7 @@
3
3
  /// <reference types="emscripten" />
4
4
  /// <reference types="node" />
5
5
 
6
- export declare type FaustModuleFactory = EmscriptenModuleFactory<FaustModule>;
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 declare type FaustInfoType = "help" | "version" | "libdir" | "includedir" | "archdir" | "dspdir" | "pathslist";
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 declare type FaustUIDescriptor = FaustUIGroup[];
129
- export declare type FaustUIItem = FaustUIInputItem | FaustUIOutputItem | FaustUIGroup;
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 declare type FaustUIGroupType = "vgroup" | "hgroup" | "tgroup";
160
- export declare type FaustUIOutputType = "hbargraph" | "vbargraph";
161
- export declare type FaustUIInputType = "vslider" | "hslider" | "button" | "checkbox" | "nentry";
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 declare type FaustUIType = FaustUIGroupType | FaustUIOutputType | FaustUIInputType;
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 declare type TWindowFunction = (index: number, length: number, ...args: any[]) => number;
202
- export declare type Writeable<T> = {
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 declare type TypedArray = Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array;
206
- export declare type TypedArrayConstructor = typeof Int8Array | typeof Uint8Array | typeof Int16Array | typeof Uint16Array | typeof Int32Array | typeof Uint32Array | typeof Uint8ClampedArray | typeof Float32Array | typeof Float64Array;
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 declare type OutputParamHandler = (path: string, value: number) => void;
370
- export declare type ComputeHandler = (buffer_size: number) => void;
371
- export declare type PlotHandler = (plotted: Float32Array[] | Float64Array[], index: number, events?: {
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 declare type MetadataHandler = (key: string, value: string) => void;
376
- export declare type UIHandler = (item: FaustUIItem) => void;
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