~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to plugins/doublechorus/doublechorusmodel.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-08-12 11:16:41 UTC
  • mto: (1.1.9) (10.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20110812111641-72iatqb9jomjejko
ImportĀ upstreamĀ versionĀ 2.0~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//===========================================================================
 
2
//
 
3
//    doublechorusmodel
 
4
//
 
5
//    Version 0.0.1
 
6
//
 
7
//
 
8
//
 
9
//
 
10
//  Copyright (c) 2006 Nil Geisweiller
 
11
//
 
12
//
 
13
//
 
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.
 
18
//
 
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.
 
23
//
 
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
//===========================================================================
 
29
 
 
30
#ifndef __DOUBLECHORUSMODEL_H
 
31
#define __DOUBLECHORUSMODEL_H
 
32
 
 
33
#include "simplechorusmodel.h"
 
34
#include "../../muse/ladspa.h"
 
35
 
 
36
#define NBRPARAM 7
 
37
 
 
38
class SimpleChorusModel;
 
39
 
 
40
class DoubleChorusModel {
 
41
  SimpleChorusModel* _simpleChorus1;
 
42
  SimpleChorusModel* _simpleChorus2;
 
43
 
 
44
  float _dryWet; //0.0 : dry, 1.0 : wet
 
45
  
 
46
 public:
 
47
  LADSPA_Data* port[NBRPARAM + 4];
 
48
  float param[NBRPARAM];
 
49
  
 
50
  DoubleChorusModel(unsigned long samplerate);
 
51
  ~DoubleChorusModel();
 
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);
 
61
  float getPan1();
 
62
  float getLFOFreq1();
 
63
  float getDepth1();
 
64
  float getPan2();
 
65
  float getLFOFreq2();
 
66
  float getDepth2();
 
67
  float getDryWet();
 
68
 
 
69
  void activate();
 
70
};
 
71
 
 
72
#endif