SNDC_SLIDER

NAME
SYNOPSIS
PROCESSING

NAME

slider - mix 2 input buffers according to a specified gain profile.

SYNOPSIS

Inputs:

input0 [BUFFER] [REQUIRED]: input #0.

input1 [BUFFER] [REQUIRED]: input #1.

slider [BUFFER|FLOAT] [REQUIRED]: slider, from 0 to 1.

profile [BUFFER] [OPTIONAL]: mix profile, see PROCESSING for a description of the default.

Outputs:

out [BUFFER]: output buffer.

PROCESSING

Computes
profile(slider) * input0 + profile(1 - slider) * input1

It’s essentially a way to smoothly fade between two buffers.

The default gain profile is similar to what is expected on a DJ mixing deck, ie for a slider from 0 to 0.5, input0 is constant to 1 and input1 increases linearly, then from 0.5 to 1 input1 is constant while input0 decreases linearly.

The following graph shows the default gain profile:

^
1 |-----------
| \
| \
| \
| \
| \
0 +----------+----------+->
0.5 1