/* PointProcess_and_Sound.h
 *
 * Copyright (C) 1992-2003 Paul Boersma
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/*
 * pb 2002/03/08
 * pb 2002/07/16 GPL
 * pb 2003/05/17 more shimmer measurements
 */

#ifndef _PointProcess_h_
	#include "PointProcess.h"
#endif
#ifndef _Sound_h_
	#include "Sound.h"
#endif

Sound PointProcess_to_Sound (PointProcess me, double samplingFrequency,
	double adaptFactor, double adaptTime, long interpolationDepth);
/*
	Function:
		create a time signal out of a point process;
		return NULL if out of memory.
	Preconditions:
		samplingFrequency > 0.0;
	Arguments:
		"adaptFactor" defaults to 1.
		"adaptTime" defaults to 0.
		"interpolationDepth" is the number of samples for sinxx interpolation in each direction.
*/

int PointProcess_playPart (PointProcess me, double tmin, double tmax);
int PointProcess_play (PointProcess me);
int PointProcess_hum (PointProcess me, double tmin, double tmax);
Sound PointProcess_to_Sound_hum (PointProcess me);

double PointProcess_Sound_getShimmer_local (PointProcess me, Sound thee,
	double tmin, double tmax, double pmin, double pmax);
double PointProcess_Sound_getShimmer_local_dB (PointProcess me, Sound thee,
	double tmin, double tmax, double pmin, double pmax);
double PointProcess_Sound_getShimmer_apq3 (PointProcess me, Sound thee,
	double tmin, double tmax, double pmin, double pmax);
double PointProcess_Sound_getShimmer_apq5 (PointProcess me, Sound thee,
	double tmin, double tmax, double pmin, double pmax);
double PointProcess_Sound_getShimmer_apq11 (PointProcess me, Sound thee,
	double tmin, double tmax, double pmin, double pmax);
double PointProcess_Sound_getShimmer_dda (PointProcess me, Sound thee,
	double tmin, double tmax, double pmin, double pmax);
void PointProcess_Sound_getShimmer_multi (PointProcess me, Sound thee, double tmin, double tmax, double pmin, double pmax,
	double *local, double *local_dB, double *apq3, double *apq5, double *apq11, double *dda);

/* End of file PointProcess_and_Sound.h */
