Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Mixers

Source of truth: the doc comments on each module struct in patches-modules/src/ define the canonical port names, parameter ranges, and behaviour. This page is kept in sync with those comments.


Sum — Unweighted mono sum

Sums N mono inputs into one mono output with no level control.

module mix : Sum(channels: 4)

Inputs

PortDescription
in[0]in[n-1]Mono inputs

Outputs

PortDescription
outSum of all inputs

Mixer — Mono mixer with sends and mute/solo

N-channel mono mixer. Each channel has level CV, two auxiliary send buses, and mute/solo. If any channel is soloed, only soloed (non-muted) channels contribute to the output.

module mix : Mixer(channels: 4)

Parameters (all indexed per channel)

ParameterTypeDefaultDescription
level[n]float1.0Channel gain (0–1)
send_a[n]float0.0Send A amount (0–1)
send_b[n]float0.0Send B amount (0–1)
mute[n]boolfalseMute this channel
solo[n]boolfalseSolo this channel

Inputs

PortDescription
in[0]in[n-1]Mono audio inputs
level_cv[0]level_cv[n-1]Per-channel level CV (added to level)
send_a_cv[0]send_a_cv[n-1]Per-channel send A CV
send_b_cv[0]send_b_cv[n-1]Per-channel send B CV
return_aReturn input added to main output
return_bReturn input added to main output

Outputs

PortDescription
outMain mono mix
send_aSend A bus output
send_bSend B bus output

StereoMixer — Stereo mixer with pan, sends and mute/solo

N-channel stereo mixer. Each channel has level, pan, two send buses, and mute/solo.

module mix : StereoMixer(channels: 4)

Parameters (all indexed per channel)

ParameterTypeDefaultDescription
level[n]float1.0Channel gain (0–1)
pan[n]float0.0Pan (−1 = full left, +1 = full right)
send_a[n]float0.0Send A amount (0–1)
send_b[n]float0.0Send B amount (0–1)
mute[n]boolfalseMute this channel
solo[n]boolfalseSolo this channel

Inputs

PortDescription
in[0]in[n-1]Mono audio inputs
level_cv[0]level_cv[n-1]Per-channel level CV
pan_cv[0]pan_cv[n-1]Per-channel pan CV
send_a_cv[0]send_a_cv[n-1]Per-channel send A CV
send_b_cv[0]send_b_cv[n-1]Per-channel send B CV
return_aSend A stereo return
return_bSend B stereo return

Outputs

PortDescription
outMain stereo output
send_aSend A stereo bus
send_bSend B stereo bus

PolySum — Unweighted poly sum

Sums N poly inputs voice-by-voice with no level control.

module mix : PolySum(channels: 2)

Inputs

PortDescription
in[0]in[n-1]Poly inputs

Outputs

PortDescription
outPer-voice sum (poly)

PolyMixer — Poly mixer with level and mute/solo

N-channel poly mixer with per-channel level, mute, and solo. Level CV inputs are mono (applied uniformly across all voices of that channel).

module mix : PolyMixer(channels: 2)

Parameters (indexed per channel)

ParameterTypeDefaultDescription
level[n]float1.0Channel gain (0–1)
mute[n]boolfalseMute this channel
solo[n]boolfalseSolo this channel

Inputs

PortDescription
in[0]in[n-1]Poly audio inputs
level_cv[0]level_cv[n-1]Per-channel level CV (mono)

Outputs

PortDescription
outPer-voice sum (poly)

StereoPolyMixer — Stereo poly mixer with pan and mute/solo

N-channel stereo poly mixer. Outputs two poly cables (left and right). Level and pan CV inputs are mono.

module mix : StereoPolyMixer(channels: 2)

Parameters (indexed per channel)

ParameterTypeDefaultDescription
level[n]float1.0Channel gain (0–1)
pan[n]float0.0Pan (−1 = full left, +1 = full right)
mute[n]boolfalseMute this channel
solo[n]boolfalseSolo this channel

Inputs

PortDescription
in[0]in[n-1]Poly audio inputs
level_cv[0]level_cv[n-1]Per-channel level CV (mono)
pan_cv[0]pan_cv[n-1]Per-channel pan CV (mono)

Outputs

PortDescription
out_leftPer-voice left output (poly)
out_rightPer-voice right output (poly)

PolyToMono — Collapse poly to mono

Sums all active voices of a poly cable into a single mono signal.

Inputs

PortDescription
inPoly input

Outputs

PortDescription
outMono sum of all voices

MonoToPoly — Broadcast mono to all voices

Copies a mono signal into every voice slot of a poly cable.

Inputs

PortDescription
inMono input

Outputs

PortDescription
outPoly cable (same value in every voice)

StereoSum — Unweighted stereo sum

Sums N stereo inputs into one stereo output, no level control. Useful for collapsing voice or bus outputs into a single stereo path.

module mix : StereoSum(channels: 3)

Inputs

PortDescription
in[0]in[n-1]Stereo inputs

Outputs

PortDescription
outStereo sum