annotate src/libxtract.c @ 45:e8f4c56de591

Added new features: sum, highest_value, crest and noisiness
author Jamie Bullock <jamie@postlude.co.uk>
date Wed, 20 Dec 2006 15:34:56 +0000
parents 4a36f70a76e9
children 435be4a78aac
rev   line source
jamie@1 1 /* libxtract feature extraction library
jamie@1 2 *
jamie@1 3 * Copyright (C) 2006 Jamie Bullock
jamie@1 4 *
jamie@1 5 * This program is free software; you can redistribute it and/or modify
jamie@1 6 * it under the terms of the GNU General Public License as published by
jamie@1 7 * the Free Software Foundation; either version 2 of the License, or
jamie@1 8 * (at your option) any later version.
jamie@1 9 *
jamie@1 10 * This program is distributed in the hope that it will be useful,
jamie@1 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jamie@1 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
jamie@1 13 * GNU General Public License for more details.
jamie@1 14 *
jamie@1 15 * You should have received a copy of the GNU General Public License
jamie@1 16 * along with this program; if not, write to the Free Software
jamie@1 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
jamie@1 18 * USA.
jamie@1 19 */
jamie@1 20
jamie@26 21
jamie@1 22 #include "xtract/libxtract.h"
jamie@10 23 #define XTRACT
jamie@1 24
jamie@43 25 int(*xtract[])(const float *, const int, const void *, float *) = {
jamie@1 26 /* xtract_scalar.h */
jamie@1 27 xtract_mean,
jamie@1 28 xtract_variance,
jamie@1 29 xtract_standard_deviation,
jamie@1 30 xtract_average_deviation,
jamie@1 31 xtract_skewness,
jamie@1 32 xtract_kurtosis,
jamie@11 33 xtract_centroid,
jamie@1 34 xtract_irregularity_k,
jamie@1 35 xtract_irregularity_j,
jamie@1 36 xtract_tristimulus_1,
jamie@1 37 xtract_tristimulus_2,
jamie@1 38 xtract_tristimulus_3,
jamie@1 39 xtract_smoothness,
jamie@1 40 xtract_spread,
jamie@1 41 xtract_zcr,
jamie@1 42 xtract_rolloff,
jamie@1 43 xtract_loudness,
jamie@1 44 xtract_flatness,
jamie@1 45 xtract_tonality,
jamie@1 46 xtract_crest,
jamie@1 47 xtract_noisiness,
jamie@1 48 xtract_rms_amplitude,
jamie@1 49 xtract_inharmonicity,
jamie@1 50 xtract_power,
jamie@1 51 xtract_odd_even_ratio,
jamie@1 52 xtract_sharpness,
jamie@1 53 xtract_slope,
jamie@45 54 xtract_lowest_value,
jamie@45 55 xtract_highest_value,
jamie@45 56 xtract_sum,
jamie@1 57 xtract_hps,
jamie@10 58 xtract_f0,
jamie@43 59 xtract_failsafe_f0,
jamie@30 60 /* xtract_delta.h */
jamie@1 61 xtract_flux,
jamie@1 62 xtract_attack_time,
jamie@1 63 xtract_decay_time,
jamie@30 64 xtract_delta_feature,
jamie@30 65 /* xtract_vector.h */
jamie@30 66 xtract_autocorrelation,
jamie@30 67 xtract_amdf,
jamie@30 68 xtract_asdf,
jamie@30 69 xtract_bark_coefficients,
jamie@30 70 xtract_peaks,
jamie@30 71 xtract_magnitude_spectrum,
jamie@30 72 xtract_autocorrelation_fft,
jamie@30 73 xtract_mfcc,
jamie@38 74 xtract_dct,
jamie@38 75 xtract_harmonics
jamie@1 76 };
jamie@10 77
jamie@26 78 char *xtract_help_strings[] = {
jamie@26 79 "xtract_mean",
jamie@26 80 "xtract_variance",
jamie@26 81 "xtract_standard_deviation",
jamie@26 82 "xtract_average_deviation",
jamie@26 83 "xtract_skewness",
jamie@26 84 "xtract_kurtosis",
jamie@26 85 "xtract_centroid",
jamie@26 86 "xtract_irregularity_k",
jamie@26 87 "xtract_irregularity_j",
jamie@26 88 "xtract_tristimulus_1",
jamie@26 89 "xtract_tristimulus_2",
jamie@26 90 "xtract_tristimulus_3",
jamie@26 91 "xtract_smoothness",
jamie@26 92 "xtract_spread",
jamie@26 93 "xtract_zcr",
jamie@26 94 "xtract_rolloff",
jamie@26 95 "xtract_loudness",
jamie@26 96 "xtract_flatness",
jamie@26 97 "xtract_tonality",
jamie@26 98 "xtract_crest",
jamie@26 99 "xtract_noisiness",
jamie@26 100 "xtract_rms_amplitude",
jamie@26 101 "xtract_inharmonicity",
jamie@26 102 "xtract_power",
jamie@26 103 "xtract_odd_even_ratio",
jamie@26 104 "xtract_sharpness",
jamie@26 105 "xtract_slope",
jamie@45 106 "xtract_lowest_value",
jamie@45 107 "xtract_highest_value",
jamie@45 108 "xtract_sum",
jamie@26 109 "xtract_hps",
jamie@26 110 "xtract_f0",
jamie@43 111 "xtract_failsafe_f0",
jamie@26 112 "xtract_flux",
jamie@26 113 "xtract_attack_time",
jamie@26 114 "xtract_decay_time",
jamie@34 115 "xtract_delta_feature",
jamie@30 116 "xtract_autocorrelation",
jamie@30 117 "xtract_amdf",
jamie@30 118 "xtract_asdf",
jamie@30 119 "xtract_bark_coefficients",
jamie@30 120 "xtract_peaks",
jamie@30 121 "xtract_magnitude_spectrum",
jamie@30 122 "xtract_autocorrelation_fft",
jamie@30 123 "xtract_mfcc",
jamie@38 124 "xtract_dct",
jamie@38 125 "xtract_harmonics"
jamie@30 126 };