@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 ADDED
@@ -0,0 +1 @@
1
+ FREQ = 800;
package/README.md CHANGED
@@ -283,6 +283,8 @@ This level takes a Faust Wasm instance to build an audio node. [AudioWorklet](ht
283
283
 
284
284
  **Warning**: AudioWorklet is a recent technology and may not be supported by all the browsers. Check the [compatibility](https://developer.mozilla.org/fr/docs/Web/API/AudioWorklet) chart.
285
285
 
286
+ The audio node API documentation can be [accessed here](https://github.com/search?q=repo%3Agrame-cncm%2Ffaustwasm%20IFaustBaseWebAudioDsp&type=code).
287
+
286
288
  Note that ScriptProcessor is marked as [deprecated](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode) but it's the only audio architecture available in older Safari versions. Both monophonic (generators, effects...) or polyphonic (instruments) nodes can be created. It is described in `FaustScriptProcessorNode.ts` file.
287
289
 
288
290
  Created audio nodes have a `start` and `stop` methods. When started (which is done by default), they are processing audio buffers. You may have to explicitly stop them to save CPU (and start then again when needed), if for instance several nodes are created at init time before actual use.
@@ -481,10 +481,10 @@ export declare class Soundfile {
481
481
  getHEAPFloat64(): Float64Array;
482
482
  }
483
483
  /**
484
- * DSP implementation: mimic the C++ 'dsp' class:
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
  */