@mohayonao/operator

simple operator

Stats

StarsIssuesVersionUpdatedCreatedSize
@mohayonao/operator
100.1.46 years ago6 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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.