ofxPDSP
|
Linearly fades between A/B inputs. More...
#include <LinearCrossfader.h>
Public Member Functions | |
LinearCrossfader (const LinearCrossfader &other) | |
LinearCrossfader & | operator= (const LinearCrossfader &other) |
float | meter_fade () |
meters the fader position between 0.0f and 1.0f. This method is thread safe. | |
Patchable & | in_A () |
Sets "A" as selected input and returns this module ready to be patched. This is the default input. This is the channel at 0.0f position. | |
Patchable & | in_B () |
Sets "B" as selected input and returns this module ready to be patched. This is the channel at 1.0f fade position. | |
Patchable & | in_fade () |
Sets "fade" as selected input and returns this module ready to be patched. This input is clampled to [0.0f 1.0f] range, at 0.0f only the first signal pass, at 1.0f only the second signal pass, the signal are crossfaded for all the values in between. At 0.0f and 1.0f the muted signal is not even processed. | |
Patchable & | out_signal () |
Sets "signal" as selected output and returns this Unit ready to be patched. This is the default output. This is the crossfader output. | |
Public Member Functions inherited from pdsp::Patchable | |
void | resetInputToDefault () |
resets the selected input to the default. | |
void | resetOutputToDefault () |
resets the selected output to the default. | |
Patchable & | in (const char *tag) |
sets the selected input to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More... | |
Patchable & | out (const char *tag) |
sets the selected output to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More... | |
void | disconnectIn () |
disconnects all the outputs connected to the selected input, then resets the selected input to the default. | |
void | disconnectOut () |
disconnects all the inputs connected to the selected output, then resets the selected output to the default. | |
void | disconnectAll () |
disconnects all the inputs and outputs to their connected outputs and inputs. Also resets the selected input and output to the default. | |
InputNode & | getSelectedInput () |
returns the selected input, you can patch a Patchable or OutputNode to it with the >> operator. | |
OutputNode & | getSelectedOutput () |
returns the selected output, you can patch it to another Patchable or InputNode with the >> operator. | |
std::vector< std::string > | getInputsList () |
returns a vector of the valid input tags | |
std::vector< std::string > | getOutputsList () |
returns a vector of the valid input tags | |
Additional Inherited Members | |
Protected Member Functions inherited from pdsp::Patchable | |
void | addOutput (const char *tag, OutputNode &output) |
method to add outputs when constructing a Unit More... | |
void | addInput (const char *tag, InputNode &input) |
method to add inputs when constructing a Unit More... | |
void | addModuleOutput (const char *tag, Patchable &unit) |
method to add outputs when constructing a module More... | |
void | addModuleInput (const char *tag, Patchable &unit) |
method to add outputs when constructing a module More... | |
Linearly fades between A/B inputs.