@grame/faustwasm 0.2.1 → 0.2.3
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/LIB.dsp +1 -0
- package/README.md +2 -0
- package/assets/standalone/faustwasm/index.d.ts +14 -12
- package/assets/standalone/faustwasm/index.js +9 -2
- package/assets/standalone/faustwasm/index.js.map +2 -2
- package/dist/cjs/index.d.ts +14 -12
- package/dist/cjs/index.js +9 -2
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs-bundle/index.d.ts +14 -12
- package/dist/cjs-bundle/index.js +12 -5
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +14 -12
- package/dist/esm/index.js +9 -2
- package/dist/esm/index.js.map +2 -2
- package/dist/esm-bundle/index.d.ts +14 -12
- package/dist/esm-bundle/index.js +12 -5
- package/dist/esm-bundle/index.js.map +2 -2
- package/libfaust-wasm/libfaust-wasm.data +0 -0
- 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 +14 -4
- package/src/FaustWebAudioDsp.ts +13 -13
- package/test/faustlive-wasm/faustwasm/index.d.ts +14 -12
- package/test/faustlive-wasm/faustwasm/index.js +9 -2
- package/test/faustlive-wasm/faustwasm/index.js.map +2 -2
- package/test/mono.dsp +1 -0
|
@@ -488,10 +488,10 @@ export declare class Soundfile {
|
|
|
488
488
|
getHEAPFloat64(): Float64Array;
|
|
489
489
|
}
|
|
490
490
|
/**
|
|
491
|
-
* DSP implementation
|
|
491
|
+
* DSP implementation that mimic the C++ 'dsp' class:
|
|
492
492
|
* - adding MIDI control: metadata are decoded and incoming MIDI messages will control the associated controllers
|
|
493
493
|
* - an output handler can be set to treat produced output controllers (like 'bargraph')
|
|
494
|
-
* - regular controllers are handled using setParamValue/getParamValue
|
|
494
|
+
* - regular controllers are handled using setParamValue/getParamValue and getParams methods
|
|
495
495
|
*/
|
|
496
496
|
export interface IFaustBaseWebAudioDsp {
|
|
497
497
|
/**
|
|
@@ -603,12 +603,6 @@ export interface IFaustBaseWebAudioDsp {
|
|
|
603
603
|
* @return the DSP JSON description as object
|
|
604
604
|
*/
|
|
605
605
|
getMeta(): FaustDspMeta;
|
|
606
|
-
/**
|
|
607
|
-
* Get DSP JSON description with its UI and metadata.
|
|
608
|
-
*
|
|
609
|
-
* @return the DSP JSON description
|
|
610
|
-
*/
|
|
611
|
-
getJSON(): string;
|
|
612
606
|
/**
|
|
613
607
|
* Get DSP UI description.
|
|
614
608
|
*
|
|
@@ -621,6 +615,12 @@ export interface IFaustBaseWebAudioDsp {
|
|
|
621
615
|
* @return the DSP UI items description
|
|
622
616
|
*/
|
|
623
617
|
getDescriptors(): FaustUIInputItem[];
|
|
618
|
+
/**
|
|
619
|
+
* Get DSP JSON description with its UI and metadata.
|
|
620
|
+
*
|
|
621
|
+
* @return the DSP JSON description
|
|
622
|
+
*/
|
|
623
|
+
getJSON(): string;
|
|
624
624
|
/**
|
|
625
625
|
* Start the DSP.
|
|
626
626
|
*/
|
|
@@ -1400,9 +1400,10 @@ export interface IFaustMonoDspGenerator extends GeneratorSupportingSoundfiles {
|
|
|
1400
1400
|
* @param sampleRate - the sample rate in Hz
|
|
1401
1401
|
* @param bufferSize - the buffer size in frames
|
|
1402
1402
|
* @param factory - default is the compiled factory
|
|
1403
|
+
* @param context - if this exists, will be used to fetch soundfiles online
|
|
1403
1404
|
* @returns the compiled processor or 'null' if failure
|
|
1404
1405
|
*/
|
|
1405
|
-
createOfflineProcessor(sampleRate: number, bufferSize: number, factory?: LooseFaustDspFactory): Promise<IFaustMonoOfflineProcessor | null>;
|
|
1406
|
+
createOfflineProcessor(sampleRate: number, bufferSize: number, factory?: LooseFaustDspFactory, context?: BaseAudioContext): Promise<IFaustMonoOfflineProcessor | null>;
|
|
1406
1407
|
/**
|
|
1407
1408
|
* Get DSP JSON description with its UI and metadata as object.
|
|
1408
1409
|
*
|
|
@@ -1459,9 +1460,10 @@ export interface IFaustPolyDspGenerator extends GeneratorSupportingSoundfiles {
|
|
|
1459
1460
|
* @param voiceFactory - the Faust factory for voices, either obtained with a compiler (createDSPFactory) or loaded from files (loadDSPFactory)
|
|
1460
1461
|
* @param mixerModule - the wasm Mixer module (loaded from 'mixer32.wasm' or 'mixer64.wasm' files)
|
|
1461
1462
|
* @param effectFactory - the Faust factory for the effect, either obtained with a compiler (createDSPFactory) or loaded from files (loadDSPFactory)
|
|
1463
|
+
* @param context - if this exists, will be used to fetch soundfiles online
|
|
1462
1464
|
* @returns the compiled processor or 'null' if failure
|
|
1463
1465
|
*/
|
|
1464
|
-
createOfflineProcessor(sampleRate: number, bufferSize: number, voices: number, voiceFactory?: LooseFaustDspFactory, mixerModule?: WebAssembly.Module, effectFactory?: LooseFaustDspFactory | null,
|
|
1466
|
+
createOfflineProcessor(sampleRate: number, bufferSize: number, voices: number, voiceFactory?: LooseFaustDspFactory, mixerModule?: WebAssembly.Module, effectFactory?: LooseFaustDspFactory | null, context?: BaseAudioContext): Promise<IFaustPolyOfflineProcessor | null>;
|
|
1465
1467
|
/**
|
|
1466
1468
|
* Get DSP JSON description with its UI and metadata as object.
|
|
1467
1469
|
*
|
|
@@ -1496,7 +1498,7 @@ export declare class FaustMonoDspGenerator implements IFaustMonoDspGenerator {
|
|
|
1496
1498
|
prototype: AudioWorkletProcessor;
|
|
1497
1499
|
parameterDescriptors: AudioParamDescriptor[];
|
|
1498
1500
|
}>;
|
|
1499
|
-
createOfflineProcessor(sampleRate: number, bufferSize: number, factory?: LooseFaustDspFactory): Promise<FaustMonoOfflineProcessor>;
|
|
1501
|
+
createOfflineProcessor(sampleRate: number, bufferSize: number, factory?: LooseFaustDspFactory, context?: BaseAudioContext): Promise<FaustMonoOfflineProcessor>;
|
|
1500
1502
|
getMeta(): any;
|
|
1501
1503
|
getJSON(): string;
|
|
1502
1504
|
getUI(): any;
|
|
@@ -1518,7 +1520,7 @@ export declare class FaustPolyDspGenerator implements IFaustPolyDspGenerator {
|
|
|
1518
1520
|
prototype: AudioWorkletProcessor;
|
|
1519
1521
|
parameterDescriptors: AudioParamDescriptor[];
|
|
1520
1522
|
}>;
|
|
1521
|
-
createOfflineProcessor(sampleRate: number, bufferSize: number, voices: number, voiceFactory?: LooseFaustDspFactory, mixerModule?: WebAssembly.Module, effectFactory?: LooseFaustDspFactory | null): Promise<FaustPolyOfflineProcessor>;
|
|
1523
|
+
createOfflineProcessor(sampleRate: number, bufferSize: number, voices: number, voiceFactory?: LooseFaustDspFactory, mixerModule?: WebAssembly.Module, effectFactory?: LooseFaustDspFactory | null, context?: BaseAudioContext): Promise<FaustPolyOfflineProcessor>;
|
|
1522
1524
|
getMeta(): FaustDspMeta;
|
|
1523
1525
|
getJSON(): string;
|
|
1524
1526
|
getUI(): FaustUIDescriptor;
|