Class MixerModule

This class is for mixing sound sources (instance of SoundModule subclass).

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 re-initials modules.

    Parameters

    • context: AudioContext

      This argument is in order to use Web Audio API.

    Returns void

  • This method gets or sets parameters for mixer module. This method is overloaded for type interface and type check.

    Parameters

    • params: "mastervolume"

      This argument is string if getter. Otherwise, setter.

    Returns number

    Return value is parameter for mixer module if getter. Otherwise, return value is for method chain.

  • Parameters

    Returns MixerModule

  • This method mixes sound sources (instance of SoundModule subclass).

    Parameters

    • sources: SoundModule[]

      This argument is array that contains sound sources.

    • Optionalgains: number[]

      This argument is array for each sound source volume.

    Returns MixerModule

    Return value is for method chain.