diff 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
line wrap: on
line diff
--- a/xtract/libxtract.h	Fri Mar 07 22:14:55 2014 +0000
+++ b/xtract/libxtract.h	Tue Mar 11 18:14:45 2014 +0000
@@ -71,7 +71,7 @@
   * @{
   */
 
-#define XTRACT_FEATURES 60
+#define XTRACT_FEATURES 61
     
 /** \brief Enumeration of features, elements are used as indixes to an array of pointers to feature extracton functions */
 enum xtract_features_ {
@@ -117,6 +117,7 @@
     XTRACT_F0,
     XTRACT_FAILSAFE_F0,
     XTRACT_WAVELET_F0,
+    XTRACT_MIDICENT,
     XTRACT_LNORM,
     XTRACT_FLUX,
     XTRACT_ATTACK_TIME,
@@ -208,7 +209,8 @@
     XTRACT_DBFS_HERTZ,
     XTRACT_PERCENT,
     XTRACT_BINS,
-    XTRACT_SONE
+    XTRACT_SONE,
+    XTRACT_MIDI_CENT
 } xtract_unit_t;
 
 /** \brief Boolean */