@mohayonao/operator

simple operator

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@mohayonao/operator
100.1.47 years ago7 years agoMinified + gzip package size for @mohayonao/operator in KB

Readme

OPERATOR
Build Status NPM Version License
simple operator

Installation

Node.js
npm install @mohayonao/operator

Browser

API

Operator

  • constructor(audioContext: AudioContext)

Instance attribute

  • context: AudioContext
  • type: string
  • frequency: AudioParam
  • detune: AudioParam
  • gain: AudioParam
  • onended: function

Instance methods

  • connect(destination: AudioNode): void
  • disconnect(): void
  • start(when: number): void
  • stop(when: number): void
  • setPeriodicWave(periodicWave: PeriodicWave): void
  • setEnvelope(envelope: any, target: string = 'gain'): void
  • getEnvelope(target: string = 'gain'): void

AudioGraph

operator

See Also

License

MIT