This is an old revision of the document!
Click here to return to the Multiplexers and Demultiplexers page
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.
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).
Name | ADSP-214xx(Sample) | ADSP-214xx(Block) | ADSP-215xx/ADSP-SC5xx(Sample) | ADSP-215xx/ADSP-SC5xx(Block) |
---|---|---|---|---|
Cross Fade | No | Yes | No | Yes |
Name | Type | Description |
---|---|---|
SourceSelect | Control | Controls the transition of data |
Input0 | Audio | Input channel 0 |
Input1 | Audio | Input channel 1 |
Name | Type | Description |
---|---|---|
Output0 | Control | Output channel 0 |
GUI Parameter Name | Default Value | Range | Function Description |
---|---|---|---|
Step | 12 | 1 to 23 | Step size for transition from one input to other input |
NumChannels | 2 | 20 | Number of input and output channels. Change in this value requires re-compilation |
Parameter Name | Description | ADSP-214xx/SC5xx/215xx |
---|---|---|
step | scaling of the inputs | Float |
step = 2^(-1/step)