comparison dsp/segmentation/segment.h @ 18:8e90a56b4b5f

* merge in segmentation code from soundbite plugin/library repository
author cannam
date Wed, 09 Jan 2008 10:46:25 +0000
parents
children 8bdbda7fb893
comparison
equal deleted inserted replaced
17:a120ac7b26b2 18:8e90a56b4b5f
1 #ifndef _SEGMENT_H
2 #define _SEGMENT_H
3
4 /*
5 * segment.h
6 * soundbite
7 *
8 * Created by Mark Levy on 06/04/2006.
9 * Copyright 2006 Centre for Digital Music, Queen Mary, University of London. All rights reserved.
10 *
11 */
12
13 typedef struct segment_t
14 {
15 long start; /* in samples */
16 long end;
17 int type;
18 } segment_t;
19
20 typedef struct segmentation_t
21 {
22 int nsegs; /* number of segments */
23 int nsegtypes; /* number of segment types, so possible types are {0,1,...,nsegtypes-1} */
24 int samplerate;
25 segment_t* segments;
26 } segmentation_t;
27
28 typedef enum
29 {
30 FEATURE_TYPE_UNKNOWN = 0,
31 FEATURE_TYPE_CONSTQ = 1,
32 FEATURE_TYPE_CHROMA
33 } feature_types;
34
35 #endif
36