CLAM-Development
1.4.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Processing
Analysis
SMSAnalysisConfig.hxx
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2001-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
22
#ifndef _SMSAnalysisConfig_
23
#define _SMSAnalysisConfig_
24
25
#include "
DataTypes.hxx
"
26
#include "
ProcessingConfig.hxx
"
27
#include "
SpectralAnalysisConfig.hxx
"
28
#include "
SpectralPeakDetectConfig.hxx
"
29
#include "
FundFreqDetectConfig.hxx
"
30
#include "
SinTrackingConfig.hxx
"
31
#include "
SynthSineSpectrumConfig.hxx
"
32
33
namespace
CLAM {
34
35
class
EWindowType;
36
37
class
SMSAnalysisConfig
:
public
ProcessingConfig
38
{
39
40
friend
class
SMSAnalysis
;
41
42
DYNAMIC_TYPE_USING_INTERFACE
(
SMSAnalysisConfig
,8,
ProcessingConfig
);
44
DYN_ATTRIBUTE
(0,
public
,
SpectralAnalysisConfig
, SinSpectralAnalysis);
45
DYN_ATTRIBUTE
(1,
public
,
SpectralAnalysisConfig
, ResSpectralAnalysis);
46
47
DYN_ATTRIBUTE
(2,
public
,
SpectralPeakDetectConfig
, PeakDetect);
48
DYN_ATTRIBUTE
(3,
public
,
FundFreqDetectConfig
,
FundFreqDetect
);
49
DYN_ATTRIBUTE
(4,
public
,
SinTrackingConfig
,
SinTracking
);
52
DYN_ATTRIBUTE
(5,
protected
,
int
, prSamplingRate);
53
DYN_ATTRIBUTE
(6,
protected
,
int
, prFFTSize);
54
DYN_ATTRIBUTE
(7,
public
,
SynthSineSpectrumConfig
,
SynthSineSpectrum
);
55
56
57
//Config shortcuts
58
public
:
60
void
SetSinWindowSize
(
TSize
w);
61
TSize
GetSinWindowSize
()
const
;
63
void
SetSinWindowType
(
const
EWindowType
& t);
64
const
EWindowType
&
GetSinWindowType
()
const
;
66
void
SetSinZeroPadding
(
int
z);
67
int
GetSinZeroPadding
()
const
;
69
void
SetResWindowSize
(
TSize
w);
70
TSize
GetResWindowSize
()
const
;
72
void
SetResWindowType
(
const
EWindowType
& t);
73
const
EWindowType
&
GetResWindowType
()
const
;
75
void
SetResZeroPadding
(
int
z);
76
int
GetResZeroPadding
()
const
;
78
void
SetHopSize
(
TSize
h);
79
TSize
GetHopSize
()
const
;
80
82
void
SetSamplingRate
(
TData
sr);
83
TData
GetSamplingRate
()
const
;
84
86
TSize
GetInitialOffset
()
const
;
87
88
TSize
GetHopsInBiggerWindow
()
const
;
89
90
private
:
91
92
93
void
DefaultInit();
94
void
DefaultValues();
95
97
TInt32
PowerOfTwo(
TInt32
size);
98
};
99
100
}
101
102
#endif
103
Generated by
1.8.1