Wiki

The most recent version of this page is a draft.DiffThis version (10 Feb 2021 12:46) was approved by Sanjeeva Reddy.

This is an old revision of the document!


Click here to return to the Multiplexers and Demultiplexers page

Cross Fade


Description

The Cross Fade block creates a smooth transition between two input signals. The volume of one signal is decreased while the other input signal level increases, creating a gradual switch (cross-fade) between the inputs.

Usage

The output signal is selected by setting a value on the input control pin (top orange pin) to the desired input's index, between 0.0 and 1.0. 0.0 selects the lower input pin2, 1.0 selects the upper input pin1, and 0.5 mixes 0.5 times pin1 with 0.5 times pin2, etc. When the control input value changes, a crossfade is initiated between the current output and the newly selected input signal. The cross-fade transition rate (slew rate) can be adjusted using the numerical control on the block, (the maximum SW Slew Rate value is 23, which is a very slow fade).

Targets Supported

NameADSP-214xx(Sample)ADSP-214xx(Block)ADSP-215xx/ADSP-SC5xx(Sample)ADSP-215xx/ADSP-SC5xx(Block)
Cross Fade No YesNo Yes


Pins

Input

NameTypeDescription
SourceSelectControlControls the transition of data
Input0AudioInput channel 0
Input1AudioInput channel 1

Output

NameTypeDescription
Output0ControlOutput channel 0


Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
Step121 to 23Step size for transition from one input to other input
NumChannels220Number of input and output channels. Change in this value requires re-compilation


DSP Parameters

Parameter NameDescriptionADSP-214xx/SC5xx/215xx
stepscaling of the inputsFloat


DSP Parameter Computation

step = 2^(-1/step)

/srv/wiki.analog.com/data/pages/resources/tools-software/sigmastudiov2/modules/muxesanddemuxes/crossfade.txt · Last modified: 05 Apr 2021 15:16 by John Joseph