c@243: #ifndef _SEGMENT_H
c@243: #define _SEGMENT_H
c@243: 
c@245: #ifdef __cplusplus
c@245: extern "C" {
c@245: #endif
c@245: 
c@243: /*
c@243:  *  segment.h
c@243:  *
c@243:  *  Created by Mark Levy on 06/04/2006.
c@309:  *  Copyright 2006 Centre for Digital Music, Queen Mary, University of London.
c@309: 
c@309:     This program is free software; you can redistribute it and/or
c@309:     modify it under the terms of the GNU General Public License as
c@309:     published by the Free Software Foundation; either version 2 of the
c@309:     License, or (at your option) any later version.  See the file
c@309:     COPYING included with this distribution for more information.
c@243:  *
c@243:  */
c@243: 
c@243: typedef struct segment_t
c@243: {
c@243: 	long start;			/* in samples */
c@243: 	long end;
c@243: 	int type;
c@243: } segment_t;
c@243: 
c@243: typedef struct segmentation_t
c@243: {
c@243: 	int nsegs;			/* number of segments */
c@243: 	int nsegtypes;		/* number of segment types, so possible types are {0,1,...,nsegtypes-1} */
c@243: 	int samplerate;
c@243: 	segment_t* segments;
c@243: } segmentation_t;
c@243: 
c@243: typedef enum 
c@243: { 
c@243: 	FEATURE_TYPE_UNKNOWN = 0, 
c@243: 	FEATURE_TYPE_CONSTQ = 1, 
c@251: 	FEATURE_TYPE_CHROMA = 2,
c@251: 	FEATURE_TYPE_MFCC = 3
c@243: } feature_types;
c@243: 
c@245: #ifdef __cplusplus
c@245: }
c@243: #endif
c@243: 
c@245: #endif
c@245: