@grame/faustwasm 0.11.0 → 0.11.2

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.
@@ -432,17 +432,6 @@ export type SensorEventHandlers = {
432
432
  y: SensorEventHandler[];
433
433
  z: SensorEventHandler[];
434
434
  };
435
- /**
436
- * Interface for MIDI output handler, used in Faust WebAudio nodes
437
- * to handle MIDI events like control changes, pitch wheel changes,
438
- * key on and key off events.
439
- */
440
- export interface MidiOutputHandler {
441
- ctrlChange(chan: number, ctrl: number, value: number): void;
442
- pitchWheel(chan: number, value: number): void;
443
- keyOn(channel: number, pitch: number, velocity: number): void;
444
- keyOff(channel: number, pitch: number, velocity: number): void;
445
- }
446
435
  /** Definition of the AudioBufferItem type */
447
436
  export interface AudioBufferItem {
448
437
  pathName: string;
@@ -585,18 +574,6 @@ export interface IFaustBaseWebAudioDsp {
585
574
  * @return the current output handler
586
575
  */
587
576
  getComputeHandler(): ComputeHandler | null;
588
- /**
589
- * Set the MIDI output handler, to be called in the 'compute' method with MIDI messages.
590
- * @param handler - the MIDI output handler
591
- * @return void
592
- */
593
- setMidiOutputHandler(handler: MidiOutputHandler | null): void;
594
- /**
595
- * Get the MIDI output handler.
596
- *
597
- * @return the current MIDI output handler
598
- */
599
- getMidiOutputHandler(): MidiOutputHandler | null;
600
577
  /**
601
578
  * Set the plot handler, to be called in the 'compute' method with various info (see PlotHandler type).
602
579
  *
@@ -783,7 +760,6 @@ export interface IFaustPolyWebAudioNode extends IFaustPolyWebAudioDsp, AudioNode
783
760
  export declare class FaustBaseWebAudioDsp implements IFaustBaseWebAudioDsp {
784
761
  protected fOutputHandler: OutputParamHandler | null;
785
762
  protected fComputeHandler: ComputeHandler | null;
786
- protected fMidiOutputHandler: MidiOutputHandler | null;
787
763
  protected fPlotHandler: PlotHandler | null;
788
764
  protected fCachedEvents: {
789
765
  type: string;
@@ -890,8 +866,6 @@ export declare class FaustBaseWebAudioDsp implements IFaustBaseWebAudioDsp {
890
866
  callOutputParamHandler(path: string, value: number): void;
891
867
  setComputeHandler(handler: ComputeHandler | null): void;
892
868
  getComputeHandler(): ComputeHandler | null;
893
- setMidiOutputHandler(handler: MidiOutputHandler | null): void;
894
- getMidiOutputHandler(): MidiOutputHandler | null;
895
869
  setPlotHandler(handler: PlotHandler | null): void;
896
870
  getPlotHandler(): PlotHandler | null;
897
871
  getNumInputs(): number;
@@ -1246,8 +1220,6 @@ export declare class FaustOfflineProcessor<Poly extends boolean = false> {
1246
1220
  callOutputParamHandler(path: string, value: number): void;
1247
1221
  setComputeHandler(handler: ComputeHandler): void;
1248
1222
  getComputeHandler(): ComputeHandler | null;
1249
- setMidiOutputHandler(handler: MidiOutputHandler | null): void;
1250
- getMidiOutputHandler(): MidiOutputHandler | null;
1251
1223
  setPlotHandler(handler: PlotHandler): void;
1252
1224
  getPlotHandler(): PlotHandler | null;
1253
1225
  getNumInputs(): number;
@@ -1334,7 +1306,7 @@ export interface WavEncoderOptions {
1334
1306
  * Code from https://github.com/mohayonao/wav-encoder
1335
1307
  */
1336
1308
  export declare class WavEncoder {
1337
- static encode(audioBuffer: Float32Array[], options: WavEncoderOptions): ArrayBuffer;
1309
+ static encode(audioBuffer: Float32Array[], options: WavEncoderOptions): ArrayBuffer | SharedArrayBuffer;
1338
1310
  private static writeHeader;
1339
1311
  private static writeData;
1340
1312
  }
@@ -1427,7 +1399,6 @@ export declare class FaustAudioWorkletNode<Poly extends boolean = false> extends
1427
1399
  protected fInputsItems: string[];
1428
1400
  protected fOutputHandler: OutputParamHandler | null;
1429
1401
  protected fComputeHandler: ComputeHandler | null;
1430
- protected fMidiOutputHandler: MidiOutputHandler | null;
1431
1402
  protected fPlotHandler: PlotHandler | null;
1432
1403
  protected fUICallback: UIHandler;
1433
1404
  protected fDescriptor: FaustUIInputItem[];
@@ -1444,8 +1415,6 @@ export declare class FaustAudioWorkletNode<Poly extends boolean = false> extends
1444
1415
  callOutputParamHandler(path: string, value: number): void;
1445
1416
  setComputeHandler(handler: ComputeHandler | null): void;
1446
1417
  getComputeHandler(): ComputeHandler | null;
1447
- setMidiOutputHandler(handler: MidiOutputHandler | null): void;
1448
- getMidiOutputHandler(): MidiOutputHandler | null;
1449
1418
  setPlotHandler(handler: PlotHandler | null): void;
1450
1419
  getPlotHandler(): PlotHandler | null;
1451
1420
  setupWamEventHandler(): void;
@@ -1520,8 +1489,6 @@ export declare class FaustScriptProcessorNode<Poly extends boolean = false> exte
1520
1489
  getComputeHandler(): ComputeHandler | null;
1521
1490
  setPlotHandler(handler: PlotHandler): void;
1522
1491
  getPlotHandler(): PlotHandler | null;
1523
- setMidiOutputHandler(handler: MidiOutputHandler | null): void;
1524
- getMidiOutputHandler(): MidiOutputHandler | null;
1525
1492
  getNumInputs(): number;
1526
1493
  getNumOutputs(): number;
1527
1494
  metadata(handler: MetadataHandler): void;