src/FaustSawtooth.cpp
static dsp* createDSPSequencer(dsp* dsp1, dsp* dsp2,
                               std::string& error,
                               Layout layout = Layout::kTabGroup,
                               const std::string& label = "Sequencer")
{
    if (dsp1->getNumOutputs() != dsp2->getNumInputs()) {
        std::stringstream error_aux;
        error_aux << "Connection error int dsp_sequencer : the number of outputs ("
                  << dsp1->getNumOutputs() << ") of A "
                  << "must be equal to the number of inputs (" << dsp2->getNumInputs() << ") of B" << std::endl;
        error = error_aux.str();
        return nullptr;
    } else {
        return new dsp_sequencer(dsp1, dsp2, 4096, layout, label);
    }
}
// DSP algebra API
/*
 Each operation takes two DSP and a optional Layout and Label parameters, returns the combined DSPs, or null if failure with an error message.
 */
DSP algebra API
Each operation takes two DSP and a optional Layout and Label parameters, returns the combined DSPs, or null if failure with an error message.
DSP algebra API Each operation takes two DSP and a optional Layout and Label parameters returns the combined DSPs or null if failure with an error message .
static dsp* createDSPSequencer(dsp* dsp1, dsp* dsp2,
                               std::string& error,
                               Layout layout = Layout::kTabGroup,
                               const std::string& label = "Sequencer")
{
    if (dsp1->getNumOutputs() != dsp2->getNumInputs()) {
        std::stringstream error_aux;
        error_aux << "Connection error int dsp_sequencer : the number of outputs ("
                  << dsp1->getNumOutputs() << ") of A "
                  << "must be equal to the number of inputs (" << dsp2->getNumInputs() << ") of B" << std::endl;
        error = error_aux.str();
        return nullptr;
    } else {
        return new dsp_sequencer(dsp1, dsp2, 4096, layout, label);
    }
}
static dsp * createDSPSequencer ( dsp * dsp1 , dsp * dsp2 , std :: string & error , Layout layout = Layout :: kTabGroup , const std :: string & label = " " ) { if ( dsp1 -> getNumOutputs ( ) != dsp2 -> getNumInputs ( ) ) { std :: stringstream error_aux ; error_aux << " " << dsp1 -> getNumOutputs ( ) << " " << " " << dsp2 -> getNumInputs ( ) << " " << std :: endl ; error = error_aux . str ( ) ; return nullptr ; } else { return new dsp_sequencer ( dsp1 , dsp2 , 4096 , layout , label ) ; } }
DSP algebra API
Each operation takes two DSP and a optional Layout and Label parameters, returns the combined DSPs, or null if failure with an error message.
DSP algebra API Each operation takes two DSP and a optional Layout and Label parameters returns the combined DSPs or null if failure with an error message .