#ifndef _SPINET_h_
#define _SPINET_h_
/* David Weenink, 8 apr 1997 */

#ifndef _Sampled2_h_
	#include "Sampled2.h"
#endif
#ifndef _Graphics_h_
	#include "Graphics.h"
#endif

#define SPINET_members Sampled2_members			\
	long gamma			;						\
	double excitationErbProportion;				\
	double inhibitionErbProportion;				\
	double **y, **s;

#define SPINET_methods Sampled2_methods
class_create (SPINET, Sampled2)

SPINET SPINET_create (double tmin, double tmax, long nt, double dt, double t1,
	 double minimumFrequency, double maximumFrequency, long nFilters,
	 double excitationErbProportion, double inhibitionErbProportion);

void SPINET_spectralRepresentation (SPINET me, Graphics g, double fromTime, double toTime,
	double fromErb, double toErb, double minimum, double maximum, int enhanced,
	int garnish);
	
void SPINET_drawSpectrum (SPINET me, Graphics g, double time, double fromErb, double toErb,
	double minimum, double maximum, int enhanced, int garnish);
	
#endif /* _SPINET_h_ */
