1
//===========================================================================
10
// Copyright (c) 2006 Nil Geisweiller
14
// This program is free software; you can redistribute it and/or
15
// modify it under the terms of the GNU General Public License
16
// as published by the Free Software Foundation; either version 2
17
// of the License, or (at your option) any later version.
19
// This program is distributed in the hope that it will be useful,
20
// but WITHOUT ANY WARRANTY; without even the implied warranty of
21
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
// GNU General Public License for more details.
24
// You should have received a copy of the GNU General Public License
25
// along with this program; if not, write to the Free Software
26
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27
// 02111-1307, USA or point your web browser to http://www.gnu.org.
28
//===========================================================================
30
#ifndef __DOUBLECHORUSMODEL_H
31
#define __DOUBLECHORUSMODEL_H
33
#include "simplechorusmodel.h"
34
#include "../../muse/ladspa.h"
38
class SimpleChorusModel;
40
class DoubleChorusModel {
41
SimpleChorusModel* _simpleChorus1;
42
SimpleChorusModel* _simpleChorus2;
44
float _dryWet; //0.0 : dry, 1.0 : wet
47
LADSPA_Data* port[NBRPARAM + 4];
48
float param[NBRPARAM];
50
DoubleChorusModel(unsigned long samplerate);
52
void processMix(long numsamples);
53
void processReplace(long numsamples);
54
void setPan1(float value);
55
void setLFOFreq1(float value);
56
void setDepth1(float value);
57
void setPan2(float value);
58
void setLFOFreq2(float value);
59
void setDepth2(float value);
60
void setDryWet(float value);