@grame/faustwasm 0.2.2 → 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 +8 -8
- package/assets/standalone/faustwasm/index.js.map +1 -1
- package/dist/cjs/index.d.ts +8 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs-bundle/index.d.ts +8 -8
- package/dist/cjs-bundle/index.js +3 -3
- package/dist/cjs-bundle/index.js.map +2 -2
- package/dist/esm/index.d.ts +8 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm-bundle/index.d.ts +8 -8
- package/dist/esm-bundle/index.js +3 -3
- 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/FaustWebAudioDsp.ts +13 -13
- package/test/faustlive-wasm/faustwasm/index.d.ts +8 -8
- package/test/faustlive-wasm/faustwasm/index.js.map +1 -1
- package/test/mono.dsp +1 -0
|
Binary file
|
package/package.json
CHANGED
package/src/FaustWebAudioDsp.ts
CHANGED
|
@@ -134,16 +134,16 @@ export class WasmAllocator {
|
|
|
134
134
|
export class Soundfile {
|
|
135
135
|
/** Maximum number of soundfile parts. */
|
|
136
136
|
static get MAX_SOUNDFILE_PARTS() { return 256; }
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
/** Maximum number of channels. */
|
|
139
139
|
static get MAX_CHAN() { return 64; }
|
|
140
|
-
|
|
140
|
+
|
|
141
141
|
/** Maximum buffer size in frames. */
|
|
142
142
|
static get BUFFER_SIZE() { return 1024; }
|
|
143
|
-
|
|
143
|
+
|
|
144
144
|
/** Default sample rate. */
|
|
145
145
|
static get SAMPLE_RATE() { return 44100; }
|
|
146
|
-
|
|
146
|
+
|
|
147
147
|
/** Pointer to the soundfile structure in wasm memory */
|
|
148
148
|
private readonly fPtr: number;
|
|
149
149
|
private readonly fBuffers: number;
|
|
@@ -332,10 +332,10 @@ export class Soundfile {
|
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
/**
|
|
335
|
-
* DSP implementation
|
|
335
|
+
* DSP implementation that mimic the C++ 'dsp' class:
|
|
336
336
|
* - adding MIDI control: metadata are decoded and incoming MIDI messages will control the associated controllers
|
|
337
337
|
* - an output handler can be set to treat produced output controllers (like 'bargraph')
|
|
338
|
-
* - regular controllers are handled using setParamValue/getParamValue
|
|
338
|
+
* - regular controllers are handled using setParamValue/getParamValue and getParams methods
|
|
339
339
|
*/
|
|
340
340
|
export interface IFaustBaseWebAudioDsp {
|
|
341
341
|
/**
|
|
@@ -464,13 +464,6 @@ export interface IFaustBaseWebAudioDsp {
|
|
|
464
464
|
*/
|
|
465
465
|
getMeta(): FaustDspMeta;
|
|
466
466
|
|
|
467
|
-
/**
|
|
468
|
-
* Get DSP JSON description with its UI and metadata.
|
|
469
|
-
*
|
|
470
|
-
* @return the DSP JSON description
|
|
471
|
-
*/
|
|
472
|
-
getJSON(): string;
|
|
473
|
-
|
|
474
467
|
/**
|
|
475
468
|
* Get DSP UI description.
|
|
476
469
|
*
|
|
@@ -485,6 +478,13 @@ export interface IFaustBaseWebAudioDsp {
|
|
|
485
478
|
*/
|
|
486
479
|
getDescriptors(): FaustUIInputItem[];
|
|
487
480
|
|
|
481
|
+
/**
|
|
482
|
+
* Get DSP JSON description with its UI and metadata.
|
|
483
|
+
*
|
|
484
|
+
* @return the DSP JSON description
|
|
485
|
+
*/
|
|
486
|
+
getJSON(): string;
|
|
487
|
+
|
|
488
488
|
/**
|
|
489
489
|
* Start the DSP.
|
|
490
490
|
*/
|
|
@@ -481,10 +481,10 @@ export declare class Soundfile {
|
|
|
481
481
|
getHEAPFloat64(): Float64Array;
|
|
482
482
|
}
|
|
483
483
|
/**
|
|
484
|
-
* DSP implementation
|
|
484
|
+
* DSP implementation that mimic the C++ 'dsp' class:
|
|
485
485
|
* - adding MIDI control: metadata are decoded and incoming MIDI messages will control the associated controllers
|
|
486
486
|
* - an output handler can be set to treat produced output controllers (like 'bargraph')
|
|
487
|
-
* - regular controllers are handled using setParamValue/getParamValue
|
|
487
|
+
* - regular controllers are handled using setParamValue/getParamValue and getParams methods
|
|
488
488
|
*/
|
|
489
489
|
export interface IFaustBaseWebAudioDsp {
|
|
490
490
|
/**
|
|
@@ -596,12 +596,6 @@ export interface IFaustBaseWebAudioDsp {
|
|
|
596
596
|
* @return the DSP JSON description as object
|
|
597
597
|
*/
|
|
598
598
|
getMeta(): FaustDspMeta;
|
|
599
|
-
/**
|
|
600
|
-
* Get DSP JSON description with its UI and metadata.
|
|
601
|
-
*
|
|
602
|
-
* @return the DSP JSON description
|
|
603
|
-
*/
|
|
604
|
-
getJSON(): string;
|
|
605
599
|
/**
|
|
606
600
|
* Get DSP UI description.
|
|
607
601
|
*
|
|
@@ -614,6 +608,12 @@ export interface IFaustBaseWebAudioDsp {
|
|
|
614
608
|
* @return the DSP UI items description
|
|
615
609
|
*/
|
|
616
610
|
getDescriptors(): FaustUIInputItem[];
|
|
611
|
+
/**
|
|
612
|
+
* Get DSP JSON description with its UI and metadata.
|
|
613
|
+
*
|
|
614
|
+
* @return the DSP JSON description
|
|
615
|
+
*/
|
|
616
|
+
getJSON(): string;
|
|
617
617
|
/**
|
|
618
618
|
* Start the DSP.
|
|
619
619
|
*/
|