diff xtract/libxtract.h @ 54:9762d7e3d129

Fleshed out function descriptors.
author Jamie Bullock <jamie@postlude.co.uk>
date Thu, 11 Jan 2007 16:37:50 +0000
parents 45c585bb7996
children 4ea1a8838b14
line wrap: on
line diff
--- a/xtract/libxtract.h	Wed Jan 10 14:36:43 2007 +0000
+++ b/xtract/libxtract.h	Thu Jan 11 16:37:50 2007 +0000
@@ -105,7 +105,7 @@
     ASDF,
     BARK_COEFFICIENTS,
     PEAK_SPECTRUM,
-    MAGNITUDE_SPECTRUM,
+    SPECTRUM,
     AUTOCORRELATION_FFT,
     MFCC,
     DCT,
@@ -135,6 +135,14 @@
     FEATURE_NOT_IMPLEMENTED
 };
 
+/** \brief Enumeration of spectrum types */
+enum spectrum_ {
+    MAGNITUDE_SPECTRUM,
+    LOG_MAGNITUDE_SPECTRUM,
+    POWER_SPECTRUM,
+    LOG_POWER_SPECTRUM
+};
+
 /** \brief Enumeration of data types*/
 typedef enum type_ {
     FLOAT,
@@ -156,12 +164,27 @@
 
 /** \brief Enumeration of vector format types*/
 typedef enum vector_ {
-    MAGNITUDES,
-    FREQUENCIES,
-    FREQUENCIES_AND_MAGNITUDES,
+    /* N/2 magnitude/log-magnitude/power/log-power coeffs and N/2 frequencies */
+    SPECTRAL,     
+    /* N spectral amplitudes */
+    SPECTRAL_MAGNITUDES, 
+    /* N/2 magnitude/log-magnitude/power/log-power peak coeffs and N/2 
+     * frequencies */
+    SPECTRAL_PEAKS,
+    /* N spectral peak amplitudes */
+    SPECTRAL_PEAK_MAGNITUDES,
+    /* N/2 magnitude/log-magnitude/power/log-power harmonic peak coeffs and N/2 
+     * frequencies */
+    SPECTRAL_HARMONICS,
+    /* N spectral harmonic amplitudes */
+    SPECTRAL_HARMONICS_MAGNITUDES,
+    /* N spectral harmonic frequencies */
+    SPECTRAL_HARMONICS_FREQUENCIES,
+    ARBITRARY_SERIES,
+    AUDIO_SAMPLES,
+    MEL_COEFFS, 
     BARK_COEFFS,
-    MEL_COEFFS,
-    SAMPLES,
+    NO_DATA
 } t_vector;
 
 /** \brief Data structure containing useful information about functions provided by LibXtract. */