Пример #1
0
void ofxPDSPStereoFader::patch(){
    addModuleInput("0", amp0);
    addModuleInput("1", amp1);
    addModuleOutput("0", amp0);
    addModuleOutput("1", amp1);
    value >> dBtoLin >> amp0.in_mod();
             dBtoLin >> amp1.in_mod();
}
Пример #2
0
void pdsp::StereoConvolver::patch(){
    
    addModuleInput( "0",  channel1 );
    addModuleInput( "1",  channel2 );    
    
    addModuleOutput( "0",  channel1 );
    addModuleOutput( "1",  channel2 );    
    
}
Пример #3
0
void pdsp::CombFilter::patch(){
    
    addModuleInput( "signal",  delay.in_signal() );
    addModuleInput( "pitch",  p2f );    
    addModuleInput("fb", delay.in_feedback() );
    addModuleInput("damping", delay.in_damping() );
    
    addModuleOutput("signal", delay.out_signal() );

    p2f >> f2ms >> delay.in_time();
    
}
Пример #4
0
void pdsp::TriggeredGrain::patch(){

    addModuleInput("position", grain.in_start());
    addModuleInput("length", window.in_length() );
    addModuleInput("pitch", grain.in_pitch() );
    addModuleInput("select", grain.in_select() );
    
    addModuleInput("trig", trigger_in );
    
    addModuleInput("position_jitter", posJitterAmt.in_mod());
    addModuleInput("pitch_jitter", pitchJitterAmt.in_mod());
    addModuleInput("direction", grain.in_direction());        
    addModuleOutput("signal", window);
    addModuleOutput("jitter", jitter);

    grain >> window;
    
    trigger_in >> grain.in_trig();
    trigger_in >> window.in_trig();
    trigger_in >> jitter;
    
    jitter >> posJitterAmt >> grain.in_start();
    jitter >> pitchJitterAmt >> grain.in_pitch();
    

}
Пример #5
0
void pdsp::HighShelfEQ::patch(){
 
    addModuleInput("0", eq0);
    addModuleInput("1", eq1);
    addModuleOutput("0", eq0);
    addModuleOutput("1", eq1);
    
    addModuleInput("freq", freq);
    addModuleInput("Q", Q);
    addModuleInput("gain", gain);
    
    freq.set(10000.0f);
    Q.set(0.707f);
    gain.set(0.0f);
    
    freq >> eq0.in_freq();
    freq >> eq1.in_freq();
    Q >> eq0.in_Q();
    Q >> eq1.in_Q();
    gain >> eq0.in_gain();
    gain >> eq1.in_gain();
    
}
Пример #6
0
void ofxPDSPMonoFader::patch(){
    addModuleInput("signal", amp);
    addModuleOutput("signal", amp);
    value >> dBtoLin >> amp.in_mod();
}