triolet.dsp

base class for triolet DSP

Usage no npm install needed!

<script type="module">
  import trioletDsp from 'https://cdn.skypack.dev/triolet.dsp';
</script>

README

triolet.dsp

NPM Version License

base class for triolet DSP

Installation

$ npm install triolet.dsp

API

TrioletDSP

  • constructor()

Instance attributes

  • triolet: Triolet (required)
  • sampleRate: number (implicit readonly)
  • bufferLength: number (implicit readonly)

Instance methods

  • setup(opts: object): void
  • start(): void
  • stop(): void
  • sendToAPI(...args: any): void
  • recvFromAPI(data: object): void
  • process(bufL: Float32Array, bufR: Float32Array): void

Triolet Interface

interface Triolet {
  dsp: TrioletDSP;
  sendToAPI(...args: any) => void;
}

License

MIT