Class OneshotModule

This subclass is for playing one-shot audio

Hierarchy (view full)

Constructors

Properties

analyser: Analyser
autopanner: Autopanner
bitcrusher: BitCrusher
chorus: Chorus
compressor: Compressor
context: AudioContext
delay: Delay
envelopegenerator: EnvelopeGenerator
equalizer: Equalizer
filter: Filter
flanger: Flanger
fuzz: Fuzz
listener: Listener
mastervolume: GainNode
mixed: boolean = false
modules: Connectable[] = []
noisegate: NoiseGate
noisesuppressor: NoiseSuppressor
overdrive: OverDrive
panner: Panner
phaser: Phaser
pitchshifter: PitchShifter
preamp: Preamp
processor: AudioWorkletNode
recorder: Recorder
reverb: Reverb
ringmodulator: Ringmodulator
runningAnalyser: boolean = false
stereo: Stereo
tremolo: Tremolo
vocalcanceler: VocalCanceler
wah: Wah
NUMBER_OF_INPUTS = 2
NUMBER_OF_OUTPUTS = 2

Accessors

Methods

  • This method gets instance of AudioBuffer or array that contains the all of AudioBuffers. This method is overloaded for type interface and type check.

    Parameters

    • index: number

      This argument selects instance of AudioBuffer.

    Returns AudioBuffer

  • Returns AudioBuffer[]

  • This method re-initials modules.

    Parameters

    • context: AudioContext

      This argument is in order to use Web Audio API.

    Returns void

  • This method schedules playing audio.

    Parameters

    • OptionalstartTime: number

      This argument is start time. The default value is 0.

    • Optionalduration: number

      This argument is duration. The default value is 0.

    Returns OneshotModule

    Return value is for method chain.

  • This method resets settings.

    Parameters

    • index: number

      This argument selects target setting.

    • paramName: keyof OneshotSetting

      This argument is one-shot parameter name.

    • param: number | boolean

      This argument is one-shot parameter value.

    Returns OneshotModule

    Return value is for method chain.

  • This method creates instances of AudioBuffer by Ajax.

    Parameters

    • params: {
          resources: AudioBuffer[] | string[];
          settings: OneshotSettings;
          timeout?: number;
          errorCallback?(event: Error | ProgressEvent<EventTarget>, textStatus: OneshotErrorText): void;
          progressCallback?(event: ProgressEvent<EventTarget>): void;
          successCallback?(event: ProgressEvent<EventTarget>, buffers: AudioBuffer[]): void;
      }
      • resources: AudioBuffer[] | string[]
      • settings: OneshotSettings
      • Optionaltimeout?: number
      • errorCallback?:function
      • progressCallback?:function
      • successCallback?:function
        • Parameters

          • event: ProgressEvent<EventTarget>
          • buffers: AudioBuffer[]

          Returns void

    Returns OneshotModule