comparison xtract/libxtract.h @ 205:f6fcf3bec020

Add xtract_midicent() convenience function to convert from frequency to MIDI cent
author Jamie Bullock <jamie@jamiebullock.com>
date Tue, 11 Mar 2014 18:14:45 +0000
parents 302eab34dc88
children 44401945d850
comparison
equal deleted inserted replaced
204:f262144347e7 205:f6fcf3bec020
69 * 69 *
70 * Defines a very simple API that provides access to the functions in the library 70 * Defines a very simple API that provides access to the functions in the library
71 * @{ 71 * @{
72 */ 72 */
73 73
74 #define XTRACT_FEATURES 60 74 #define XTRACT_FEATURES 61
75 75
76 /** \brief Enumeration of features, elements are used as indixes to an array of pointers to feature extracton functions */ 76 /** \brief Enumeration of features, elements are used as indixes to an array of pointers to feature extracton functions */
77 enum xtract_features_ { 77 enum xtract_features_ {
78 XTRACT_MEAN, 78 XTRACT_MEAN,
79 XTRACT_VARIANCE, 79 XTRACT_VARIANCE,
115 XTRACT_NONZERO_COUNT, 115 XTRACT_NONZERO_COUNT,
116 XTRACT_HPS, 116 XTRACT_HPS,
117 XTRACT_F0, 117 XTRACT_F0,
118 XTRACT_FAILSAFE_F0, 118 XTRACT_FAILSAFE_F0,
119 XTRACT_WAVELET_F0, 119 XTRACT_WAVELET_F0,
120 XTRACT_MIDICENT,
120 XTRACT_LNORM, 121 XTRACT_LNORM,
121 XTRACT_FLUX, 122 XTRACT_FLUX,
122 XTRACT_ATTACK_TIME, 123 XTRACT_ATTACK_TIME,
123 XTRACT_DECAY_TIME, 124 XTRACT_DECAY_TIME,
124 XTRACT_DIFFERENCE_VECTOR, 125 XTRACT_DIFFERENCE_VECTOR,
206 XTRACT_ANY_AMPLITUDE_HERTZ, 207 XTRACT_ANY_AMPLITUDE_HERTZ,
207 XTRACT_DBFS, 208 XTRACT_DBFS,
208 XTRACT_DBFS_HERTZ, 209 XTRACT_DBFS_HERTZ,
209 XTRACT_PERCENT, 210 XTRACT_PERCENT,
210 XTRACT_BINS, 211 XTRACT_BINS,
211 XTRACT_SONE 212 XTRACT_SONE,
213 XTRACT_MIDI_CENT
212 } xtract_unit_t; 214 } xtract_unit_t;
213 215
214 /** \brief Boolean */ 216 /** \brief Boolean */
215 typedef enum { 217 typedef enum {
216 XTRACT_FALSE, 218 XTRACT_FALSE,