/* PointProcess_and_Sound.h */
/* Paul Boersma, March 8, 2002 */

#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 (PointProcess me, Sound thee,
	double tmin, double tmax, double pmin, double pmax);
double PointProcess_Sound_getShimmer_vs (PointProcess me, Sound thee,
	double tmin, double tmax, double pmin, double pmax);
double PointProcess_Sound_getShimmer_apq (PointProcess me, Sound thee,
	double tmin, double tmax, double pmin, double pmax);

/* End of file PointProcess_and_Sound.h */
