Namespace: mixer

syngen.audio.mixer

Provides a mastering process and utilities for routing audio into it like a virtual mixing board. Implementations are encouraged to leverage this instead of the main audio destination directly.

Source:

Namespaces

auxiliary
send

Members

(static) master

Exposes the nodes and parameters associated with the mastering process. Here's an overview of its routing:

  • GainNode input
  • BiquadFilterNode highpass
  • BiquadFilterNode lowpass
  • DynamicsCompressorNode limiter
  • GainNode limiter makeup gain
  • GainNode output
  • AudioDestinationNode syngen.audio.context().destination
Properties:
Name Type Description
input function

Returns the master input GainNode.

output function

Returns the master output GainNode.

param Object

Useful parameters for tuning the mastering process.

Properties
Name Type Description
gain AudioParam
highpass Object
Properties
Name Type Description
frequency AudioParam
limiter Object
Properties
Name Type Description
attack AudioParam
gain AudioParam
knee AudioParam
ratio AudioParam
release AudioParam
threshold AudioParam
lowpass Object
Properties
Name Type Description
frequency AudioParam
Source:

Methods

(static) createBus() → {GainNode}

Creates a GainNode that's connected to the master input. Implementations can leverage buses to create submixes.

Source:
Returns:
Type
GainNode

(static) rebuildFilters()

Occasionally the master filters can enter an unstable or bad state. When this happens the entire mix can drop out to silence. This provides a solution for replacing them with stable filters. Implementations can proactively check for invalid states with an AnalyserNode or AudioWorkletNode. Beware that the nodes that caused the issue may also need reset.

Source: