GNU Radio C++ API
sine.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
3
FILE........: sine.h
4
AUTHOR......: David Rowe
5
DATE CREATED: 1/11/94
6
7
Header file for sinusoidal analysis and synthesis functions.
8
9
\*---------------------------------------------------------------------------*/
10
11
/*
12
Copyright (C) 2009 David Rowe
13
14
All rights reserved.
15
16
This program is free software; you can redistribute it and/or modify
17
it under the terms of the GNU Lesser General Public License version 2.1, as
18
published by the Free Software Foundation. This program is
19
distributed in the hope that it will be useful, but WITHOUT ANY
20
WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
22
License for more details.
23
24
You should have received a copy of the GNU Lesser General Public License
25
along with this program; if not, see <http://www.gnu.org/licenses/>.
26
*/
27
28
#ifndef __SINE__
29
#define __SINE__
30
31
#include "
defines.h
"
32
#include "
comp.h
"
33
34
void
make_analysis_window
(
float
w[],
COMP
W[]);
35
float
hpf
(
float
x,
float
states[]);
36
void
dft_speech
(
COMP
Sw[],
float
Sn[],
float
w[]);
37
void
two_stage_pitch_refinement
(
MODEL
*model,
COMP
Sw[]);
38
void
estimate_amplitudes
(
MODEL
*model,
COMP
Sw[],
COMP
W[]);
39
float
est_voicing_mbe
(
MODEL
*model,
COMP
Sw[],
COMP
W[],
COMP
Sw_[],
COMP
Ew[],
40
float
prev_Wo);
41
void
make_synthesis_window
(
float
Pn[]);
42
void
synthesise
(
float
Sn_[],
MODEL
*model,
float
Pn[],
int
shift);
43
44
#endif
gr-vocoder
lib
codec2
sine.h
Generated on Wed Jul 11 2012 23:41:34 for GNU Radio C++ API by
1.8.1.1