/* Sound_and_Spectrogram8.h */
/* Paul Boersma, June 5, 1995 */

#ifndef _Sound_h_
	#include "Sound.h"
#endif
#ifndef _Spectrogram8_h_
	#include "Spectrogram8.h"
#endif

Spectrogram8 Sound_to_Spectrogram8 (Sound me, double analysisWidth, double fmax,
	double timeOversampling, double frequencyOversampling, int windowType);
/*
	Function:
		Create a Sound spectrogram.
		Return NULL in case of failure (not enough memory). 
	Preconditions:
		nf >= 1;			// Number of frequency bands.
		dt > 0;			// Time step (seconds).
		analysisWidth > 0;	// Analysis window length (seconds).
		1 <= windowType = 6 (Gaussian, Hamming, Hanning, parabolic, triangular, rectangular) ;
	Postconditions:
		thy nx == int (my xmax / dt + 0.5)
		thy dx == dt;
		thy ymax == 0.5 * my samplingFrequency;	// Nyquist frequency.
		thy ny == nf;
		thy z [] [] contains the power spectrum density;
 */

/* End of Sound_and_Spectrogram8.h */
