CLAM-Development  1.4.0
SegmentSMSMorphConfig.cxx
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2004 MUSIC TECHNOLOGY GROUP (MTG)
3  * UNIVERSITAT POMPEU FABRA
4  *
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  */
21 
23 
24 namespace CLAM
25 {
27  {
28  AddAll();
29  RemoveFileName();
30  UpdateData();
31  DefaultValues();
32  }
33 
35  {
36  BPF tmpBPF(2);
37  tmpBPF.SetValue(0,0);
38  tmpBPF.SetXValue(0,0);
39  tmpBPF.SetValue(1,1);
40  tmpBPF.SetXValue(1,1);
41  SetHybBPF(tmpBPF);
42 
43  SetInterpolateFrame(true);
44  SetHybSinFreq(GetHybBPF());
45  SetHybSinAmp(GetHybBPF());
46  SetHybPitch(GetHybSinFreq());
47 
48  SetHybResAmp(GetHybBPF());
49 
50  SetSynchronizeTime(tmpBPF);
51 
52  BPF defaultWeights;
53  defaultWeights.Insert( 0.0, 0.5 );
54  defaultWeights.Insert( 1.0, 0.5 );
55 
56  SetHybSinShapeW1( defaultWeights );
57  SetHybSinShapeW2( defaultWeights );
58 
59  SetHybResShapeW1( defaultWeights );
60  SetHybResShapeW2( defaultWeights );
61 
62  BPF defaultShapeWeights;
63  defaultShapeWeights.Insert( 0.0, 1.0 );
64  defaultShapeWeights.Insert( 1.0, 1.0 );
65 
66 
67  SetHybSinSpectralShape( defaultShapeWeights );
68  SetHybResSpectralShape( defaultShapeWeights );
69 
70  SetUseSpectralShapes ( false );
71 
72  SetSamplingRate(44100);
73  }
74 }
75