Class ProcessorModule

This subclass is for using AudioWorkletNode as sound source.

Hierarchy (View Summary)

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 connects AudioNodes.

    Parameters

    • source: AudioNode

      This argument is AudioNode as sound source.

    Returns void

  • This method re-initials modules.

    Parameters

    • context: AudioContext

      This argument is in order to use Web Audio API.

    Returns void

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "analyser"

      This argument selects module.

    Returns Analyser

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "recorder"

      This argument selects module.

    Returns Recorder

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "autopanner"

      This argument selects module.

    Returns Autopanner

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "bitcrusher"

      This argument selects module.

    Returns BitCrusher

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "chorus"

      This argument selects module.

    Returns Chorus

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "compressor"

      This argument selects module.

    Returns Compressor

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "delay"

      This argument selects module.

    Returns Delay

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "envelopegenerator"

      This argument selects module.

    Returns EnvelopeGenerator

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "equalizer"

      This argument selects module.

    Returns Equalizer

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "filter"

      This argument selects module.

    Returns Filter

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "flanger"

      This argument selects module.

    Returns Flanger

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "fuzz"

      This argument selects module.

    Returns Fuzz

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "listener"

      This argument selects module.

    Returns Listener

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "noisegate"

      This argument selects module.

    Returns NoiseGate

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "noisesuppressor"

      This argument selects module.

    Returns NoiseSuppressor

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "overdrive"

      This argument selects module.

    Returns OverDrive

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "panner"

      This argument selects module.

    Returns Panner

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "phaser"

      This argument selects module.

    Returns Phaser

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "pitchshifter"

      This argument selects module.

    Returns PitchShifter

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "preamp"

      This argument selects module.

    Returns Preamp

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "reverb"

      This argument selects module.

    Returns Reverb

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "ringmodulator"

      This argument selects module.

    Returns Ringmodulator

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "stereo"

      This argument selects module.

    Returns Stereo

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "tremolo"

      This argument selects module.

    Returns Tremolo

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "vocalcanceler"

      This argument selects module.

    Returns VocalCanceler

  • This method gets instance of Module (Analyser, Recorder, Effector ... etc).

    Parameters

    • moduleName: "wah"

      This argument selects module.

    Returns Wah

  • This method sets event handler that is invoked on receiving message.

    Parameters

    • callback: (event: MessageEvent) => void

      This argument is invoked on receiving message.

    Returns ProcessorModule

    Return value is for method chain.

  • This method sets event handler that is invoked on receiving message that cannot be deserialized.

    Parameters

    • callback: (event: MessageEvent) => void

      This argument is invoked on receiving message that cannot be deserialized.

    Returns ProcessorModule

    Return value is for method chain.

  • This method adds module for AudioWorklet and creates instance of AudioWorkletNode.

    Parameters

    • moduleURL: string

      This argument is string that contains URL of file (.js) with module to add.

    • Optionaloptions: WorkletOptions

      This argument is one of 'omit', 'same-origin', 'include'. The default value is 'same-origin'.

    Returns Promise<void>

    Return value is Promise that addModule returns.

  • This method sets registered processor name and options for AudioWorkletNode constructor.

    Parameters

    • processorName: string

      This argument is name of AudioWorkletProcessor.

    • Optionaloptions: AudioWorkletNodeOptions

      This argument is object based on AudioWorkletNodeOptions dictionary.

    Returns ProcessorModule

    Return value is for method chain.