jamie@1: /* libxtract feature extraction library jamie@1: * jamie@1: * Copyright (C) 2006 Jamie Bullock jamie@1: * jamie@1: * This program is free software; you can redistribute it and/or modify jamie@1: * it under the terms of the GNU General Public License as published by jamie@1: * the Free Software Foundation; either version 2 of the License, or jamie@1: * (at your option) any later version. jamie@1: * jamie@1: * This program is distributed in the hope that it will be useful, jamie@1: * but WITHOUT ANY WARRANTY; without even the implied warranty of jamie@1: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jamie@1: * GNU General Public License for more details. jamie@1: * jamie@1: * You should have received a copy of the GNU General Public License jamie@1: * along with this program; if not, write to the Free Software jamie@1: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, jamie@1: * USA. jamie@1: */ jamie@1: jamie@2: /** \file xtract_delta.h: declares functions that extract a feature as a single value or vector from more than one input vector */ jamie@1: jamie@1: #ifndef XTRACT_DELTA jamie@1: #define XTRACT_DELTA jamie@1: jamie@1: #ifdef __cplusplus jamie@1: extern "C" { jamie@1: #endif jamie@1: jamie@1: #include "xtract_types.h" jamie@1: jamie@2: /* \brief Extract spectral flux as defined by Gaƫl Richard (2006)*/ jamie@1: int xtract_flux(float *data, int N, void *argv , float *result); jamie@1: /*xtract_frame_tracker *xf */ jamie@1: jamie@2: /** \brief Extract attack Time */ jamie@1: int xtract_attack_time(float *data, int N, void *argv , float *result); jamie@1: /* xtract_amp_tracker *xa */ jamie@1: jamie@2: /** Extract temporal decrease */ jamie@1: int xtract_decay_time(float *data, int N, void *argv, float *result); jamie@1: /* xtract_amp_tracker *xa */ jamie@1: jamie@1: jamie@2: /** \brief A generic function to calculate the delta of a feature over a given period (in frames) */ jamie@1: int xtract_delta_feature(float *data, int N, void *argv, float *result); jamie@1: /*xtract_frame_tracker *xf */ jamie@1: /*float frames*/ jamie@1: jamie@1: jamie@1: jamie@1: #ifdef __cplusplus jamie@1: } jamie@1: #endif jamie@1: jamie@1: #endif