1
/*************************************************************************/
3
/* Centre for Speech Technology Research */
4
/* (University of Edinburgh, UK) and */
6
/* Copyright (c) 2003 */
7
/* All Rights Reserved. */
9
/* Permission is hereby granted, free of charge, to use and distribute */
10
/* this software and its documentation without restriction, including */
11
/* without limitation the rights to use, copy, modify, merge, publish, */
12
/* distribute, sublicense, and/or sell copies of this work, and to */
13
/* permit persons to whom this work is furnished to do so, subject to */
14
/* the following conditions: */
16
/* 1. The code must retain the above copyright notice, this list of */
17
/* conditions and the following disclaimer. */
18
/* 2. Any modifications must be clearly marked as such. */
19
/* 3. Original authors' names are not deleted. */
20
/* 4. The authors' names are not used to endorse or promote products */
21
/* derived from this software without specific prior written */
24
/* THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK */
25
/* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */
26
/* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT */
27
/* SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE */
28
/* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */
29
/* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */
30
/* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
31
/* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */
34
/*************************************************************************/
36
/* Author : Korin Richmond */
37
/* Date : 25 Jan 2004 */
38
/* ------------------------------------------------------------------- */
39
/* signal processing functions to do with pitchmarks/f0 */
41
/*************************************************************************/
46
#include "sigpr/EST_pitchmark.h"
49
%include "EST_typemaps.i"
52
%import "EST_Features.i"
54
EST_Track pitchmark(EST_Wave &lx, EST_Features &op);
57
EST_Track pitchmark(EST_Wave &lx, int lx_lf, int lx_lo, int lx_hf,
58
int lx_ho, int df_lf, int df_lo, int mo, int debug=0);
61
void neg_zero_cross_pick(EST_Wave &lx, EST_Track &pm);
63
void pm_fill(EST_Track &pm, float new_end, float max, float min, float def);
64
void pm_min_check(EST_Track &pm, float min);
66
void pm_to_f0(EST_Track &pm, EST_Track &f0);
67
void pm_to_f0(EST_Track &pm, EST_Track &fz, float shift);