Studio Yotsuba
Back to Node List

Audio Mix

audio_mix

Layers two sounds into one (played at the same time) - e.g. noise + a low boom = explosion. Inputs must share sample rate and channels. Where the sum gets too loud it is clamped to the limit and reported via a warning and the Clipped Samples port

Reviewed
Guide available

Input Ports

NameTypeDescription
Audio A
a
AudioBuffer
The sound itself (audio data). Wire audio ports together to pass the sound downstream
Audio B
b
AudioBuffer
The sound itself (audio data). Wire audio ports together to pass the sound downstream

Output Ports

NameTypeDescription
Audio
audio
AudioBuffer
The sound itself (audio data). Wire audio ports together to pass the sound downstream
Clipped Samples
clipped_samples
Int
How many samples hit the volume ceiling and were clamped. 0 = no clipping. If it keeps growing, lower Gain A/B or the oscillators' gain

Parameters

NameTypeDefaultRangeDescription / Options
Gain A
gain_a
Float
10–2 / step 0.01

Volume of input A in the mix. Balance A and B here; if the hard_clip warning appears, lower these until it stops (or keep a touch of clipping for punch)

Gain B
gain_b
Float
10–2 / step 0.01

Volume of input B in the mix (see Gain A)

Overview

Layers two sound effects into one. Combining layers such as tone and noise creates full-bodied SFX that a single waveform cannot produce.

Usage tips

  • A go-to SFX recipe is mixing audio_oscillator (a pitched waveform) with audio_oscillator(noise) to create impact or explosion textures.
  • Balance the layers with gain_a / gain_b. Chain Mix nodes for three or more inputs.

Related nodes

  • audio_oscillator — generates sounds to mix
  • audio_output — previews and exports WAV files

Layers two AudioBuffer values into one AudioBuffer.

Ports

Direction Port Type Description
Input a AudioBuffer Input A
Input b AudioBuffer Input B
Output audio AudioBuffer Mixed result
Output clipped_samples Int Number of samples limited to the -1..1 range

Parameters

  • gain_a: volume of input A
  • gain_b: volume of input B

Notes

v1 mixes audio with matching sample rates and channel counts. A format mismatch is an explicit error instead of silently dropping an input. The shorter input is zero-padded to the end of the longer one. Samples exceeding -1..1 after mixing are hard-clipped; clipped_samples reports the count and the gain controls show a warning. Soft clipping and normalization are not applied implicitly. Automatic resampling between different formats remains a future extension.

Back to Node List