comparison xtract/libxtract.h @ 115:6c5ece9cba3a

- Added to pd example the ability to differentiate between different argv types (XTRACT_FLOAT, XTRACT_INT) and pass the correct data type to the xtract[]() function - Added xtract_flatness_db() details to descriptors.c - Fixes to tonality and xtract_subbands descriptors - Added Pd examples for 'subband mean' and tonality calculated using subbands
author Jamie Bullock <jamie@postlude.co.uk>
date Sat, 16 Feb 2008 20:13:05 +0000
parents f5040ed4e555
children efb1c1ae2ba8
comparison
equal deleted inserted replaced
114:f5040ed4e555 115:6c5ece9cba3a
66 * 66 *
67 * Defines a very simple API that provides access to the functions in the library 67 * Defines a very simple API that provides access to the functions in the library
68 * @{ 68 * @{
69 */ 69 */
70 70
71 #define XTRACT_FEATURES 59 71 #define XTRACT_FEATURES 60
72 72
73 /** \brief Enumeration of features, elements are used as indixes to an array of pointers to feature extracton functions */ 73 /** \brief Enumeration of features, elements are used as indixes to an array of pointers to feature extracton functions */
74 enum xtract_features_ { 74 enum xtract_features_ {
75 XTRACT_MEAN, 75 XTRACT_MEAN,
76 XTRACT_VARIANCE, 76 XTRACT_VARIANCE,
200 XTRACT_HERTZ = 2, 200 XTRACT_HERTZ = 2,
201 XTRACT_ANY_AMPLITUDE_HERTZ, 201 XTRACT_ANY_AMPLITUDE_HERTZ,
202 XTRACT_DBFS, 202 XTRACT_DBFS,
203 XTRACT_DBFS_HERTZ, 203 XTRACT_DBFS_HERTZ,
204 XTRACT_PERCENT, 204 XTRACT_PERCENT,
205 XTRACT_BINS,
205 XTRACT_SONE 206 XTRACT_SONE
206 } xtract_unit_t; 207 } xtract_unit_t;
207 208
208 /** \brief Boolean */ 209 /** \brief Boolean */
209 typedef enum { 210 typedef enum {