#ifndef _PitchTier_h_
#define _PitchTier_h_
/* PitchTier.h; Paul Boersma, May 16, 2002 */

#ifndef _RealTier_h_
	#include "RealTier.h"
#endif
#ifndef _Graphics_h_
	#include "Graphics.h"
#endif
#ifndef _Sound_h_
	#include "Sound.h"
#endif

/********** class PitchTier **********/

#define PitchTier_members RealTier_members
#define PitchTier_methods RealTier_methods
class_create (PitchTier, RealTier)

PitchTier PitchTier_create (double tmin, double tmax);
/*
	Postconditions:
		result -> xmin == tmin;
		result -> xmax == tmax;
		result -> points -> size == 0;
*/

Sound PitchTier_to_Sound (PitchTier me, double samplingFrequency,
	 double adaptFactor, double adaptTime, long interpolationDepth, int hum);
int PitchTier_playPart (PitchTier me, double tmin, double tmax, int hum);
int PitchTier_play (PitchTier me);
int PitchTier_hum (PitchTier me);

int PitchTier_shiftFrequencies (PitchTier me, double tmin, double tmax, double shift, int units);
void PitchTier_multiplyFrequencies (PitchTier me, double tmin, double tmax, double factor);

void PitchTier_draw (PitchTier me, Graphics g, double tmin, double tmax,
	double fmin, double fmax, int garnish);

PitchTier PointProcess_upto_PitchTier (PointProcess me, double frequency);
void PitchTier_stylize (PitchTier me, double frequencyResolution, int useSemitones);

int PitchTier_writeToPitchTierSpreadsheetFile (PitchTier me, MelderFile fs);
int PitchTier_writeToHeaderlessSpreadsheetFile (PitchTier me, MelderFile fs);

/* End of file PitchTier.h */
#endif
