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
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
オーディオA
a
AudioBuffer
音そのもの(オーディオデータ)です。この線を繋ぐと下流へ音が流れます
オーディオB
b
AudioBuffer
音そのもの(オーディオデータ)です。この線を繋ぐと下流へ音が流れます

Output Ports

NameTypeDescription
オーディオ
audio
AudioBuffer
音そのもの(オーディオデータ)です。この線を繋ぐと下流へ音が流れます
クリップ数
clipped_samples
Int
音量の上限に当たって頭打ちされたサンプル数です。0なら音割れなし。増え続けるようなら音量A/Bか各オシレータのgainを下げてください

Parameters

NameTypeDefaultRangeDescription / Options
音量A
gain_a
Float
10–2 / step 0.01

ミックス内での入力Aの音量です。AとBのバランスをここで取ります。hard_clip警告が出たら、ここを下げると音割れが消えます(打撃感を出すためにあえて少し残す手もあります)

音量B
gain_b
Float
10–2 / step 0.01

ミックス内での入力Bの音量です(使い方は音量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
Audio Mix — PixPipeline Node Reference