src/: more moving and splitting
authorPaul Brossier <piem@piem.org>
Sat, 24 Nov 2007 21:00:20 +0000 (22:00 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 24 Nov 2007 21:00:20 +0000 (22:00 +0100)
30 files changed:
src/Makefile.am
src/aubio.h
src/onset/onset.c
src/onset/onsetdetection.c
src/onset/peakpick.c
src/pitch/pitchdetection.c
src/pitch/pitchfcomb.c
src/pitch/pitchyinfft.c
src/spectral/fft.c [moved from src/fft.c with 99% similarity]
src/spectral/fft.h [moved from src/fft.h with 100% similarity]
src/spectral/filterbank.c [moved from src/filterbank.c with 99% similarity]
src/spectral/filterbank.h [moved from src/filterbank.h with 100% similarity]
src/spectral/mfcc.c [moved from src/mfcc.c with 97% similarity]
src/spectral/mfcc.h [moved from src/mfcc.h with 97% similarity]
src/spectral/phasevoc.c [moved from src/phasevoc.c with 98% similarity]
src/spectral/phasevoc.h [moved from src/phasevoc.h with 100% similarity]
src/spectral/tss.c [moved from src/tss.c with 99% similarity]
src/spectral/tss.h [moved from src/tss.h with 100% similarity]
src/tempo/beattracking.c
src/tempo/tempo.c
src/temporal/biquad.c [moved from src/biquad.c with 98% similarity]
src/temporal/biquad.h [moved from src/biquad.h with 100% similarity]
src/temporal/filter.c [moved from src/filter.c with 99% similarity]
src/temporal/filter.h [moved from src/filter.h with 100% similarity]
src/temporal/resample.c [moved from src/resample.c with 98% similarity]
src/temporal/resample.h [moved from src/resample.h with 100% similarity]
src/utils/hist.c [moved from src/hist.c with 98% similarity]
src/utils/hist.h [moved from src/hist.h with 100% similarity]
src/utils/scale.c [moved from src/scale.c with 98% similarity]
src/utils/scale.h [moved from src/scale.h with 100% similarity]

index f29dd3bd284a6a5836d820a1f2706f5d189b411f..7afd4d40bbd6d52e5cb4d679de73b4a75ba4510f 100644 (file)
@@ -1,17 +1,19 @@
 noinst_HEADERS = aubio_priv.h
 pkginclude_HEADERS = aubio.h \
        types.h \
-       phasevoc.h \
-       mathutils.h \
-       fft.h \
-       sample.h \
        fvec.h \
        cvec.h \
-       hist.h \
-       scale.h \
-       resample.h \
-       tss.h \
-       biquad.h \
+       mathutils.h \
+       utils/hist.h \
+       utils/scale.h \
+       temporal/resample.h \
+       temporal/biquad.h \
+       temporal/filter.h \
+       spectral/filterbank.h \
+       spectral/mfcc.c \
+       spectral/phasevoc.h \
+       spectral/fft.h \
+       spectral/tss.h \
        pitch/pitchdetection.h \
        pitch/pitchmcomb.h \
        pitch/pitchyin.h \
@@ -22,36 +24,39 @@ pkginclude_HEADERS = aubio.h \
        onset/onsetdetection.h \
        onset/peakpick.h \
        tempo/tempo.h \
-       tempo/beattracking.h \
-       filter.h \
-       filterbank.h \
-       mfcc.h
+       tempo/beattracking.h
 
 nodist_pkginclude_HEADERS = config.h
 
 lib_LTLIBRARIES = libaubio.la 
 libaubio_la_SOURCES = aubio.h \
        types.h \
-       phasevoc.c \
-       phasevoc.h \
-       mathutils.c \
-       mathutils.h \
-       fft.c \
-       fft.h \
        fvec.c \
        fvec.h \
        cvec.c \
        cvec.h \
-       hist.c \
-       hist.h \
-       scale.c \
-       scale.h \
-       resample.c \
-       resample.h \
-       tss.c \
-       tss.h \
-       biquad.c \
-       biquad.h \
+       mathutils.c \
+       mathutils.h \
+       utils/hist.c \
+       utils/hist.h \
+       utils/scale.c \
+       utils/scale.h \
+       temporal/resample.c \
+       temporal/resample.h \
+       temporal/biquad.c \
+       temporal/biquad.h \
+       temporal/filter.c \
+       temporal/filter.h \
+       spectral/filterbank.c \
+       spectral/filterbank.h \
+       spectral/mfcc.h \
+       spectral/mfcc.c \
+       spectral/phasevoc.c \
+       spectral/phasevoc.h \
+       spectral/fft.c \
+       spectral/fft.h \
+       spectral/tss.c \
+       spectral/tss.h \
        pitch/pitchdetection.c \
        pitch/pitchdetection.h \
        pitch/pitchmcomb.c \
@@ -73,13 +78,7 @@ libaubio_la_SOURCES = aubio.h \
        tempo/tempo.c \
        tempo/tempo.h \
        tempo/beattracking.c \
-       tempo/beattracking.h \
-       filter.c \
-       filter.h \
-       filterbank.c \
-       filterbank.h \
-       mfcc.h \
-       mfcc.c 
+       tempo/beattracking.h
 
 AM_CFLAGS = @AUBIO_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
 libaubio_la_LIBADD = @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LTLIBOBJS@
index 73af8bbff608ab706e150fa2778566842f0b4028..4515606bc181d16436151814b442dc2405270659 100644 (file)
@@ -59,15 +59,15 @@ extern "C" {
 /* in this order */
 #include "types.h"
 #include "sample.h"
-#include "fft.h"
-#include "phasevoc.h"
+#include "spectral/fft.h"
+#include "spectral/phasevoc.h"
 #include "mathutils.h"
-#include "scale.h"
-#include "hist.h"
-#include "tss.h"
-#include "resample.h"
-#include "biquad.h"
-#include "filter.h"
+#include "utils/scale.h"
+#include "utils/hist.h"
+#include "spectral/tss.h"
+#include "temporal/resample.h"
+#include "temporal/biquad.h"
+#include "temporal/filter.h"
 #include "pitch/pitchdetection.h"
 #include "pitch/pitchmcomb.h"
 #include "pitch/pitchyin.h"
@@ -79,8 +79,8 @@ extern "C" {
 #include "onset/peakpick.h"
 #include "tempo/beattracking.h"
 #include "tempo/tempo.h"
-#include "filterbank.h"
-#include "mfcc.h"
+#include "spectral/filterbank.h"
+#include "spectral/mfcc.h"
 
 #ifdef __cplusplus
 } /* extern "C" */
index e4bc5dde52244abbd7f6f6e6968586fa46f42f48..084f8de755c19685e211aab7e4f5069279244261 100644 (file)
 #include "aubio_priv.h"
 #include "sample.h"
 #include "onset/onsetdetection.h"
-#include "phasevoc.h"
-#include "peakpick.h"
+#include "spectral/phasevoc.h"
+#include "onset/peakpick.h"
 #include "mathutils.h"
-#include "onset.h"
+#include "onset/onset.h"
 
 /** structure to store object state */
 struct _aubio_onset_t {
index 2e4b1baeccab8dab1d00f5fa9e4d738223aa644d..0dd52cf124f40236e5cacd02704ee985e5765556 100644 (file)
@@ -19,9 +19,9 @@
 
 #include "aubio_priv.h"
 #include "sample.h"
-#include "fft.h"
+#include "spectral/fft.h"
 #include "mathutils.h"
-#include "hist.h"
+#include "utils/hist.h"
 #include "onset/onsetdetection.h"
 
 
index 9f128e8798e6bba9616f9c5d20ea75c579ec5216..f9c93369d0f3b4d33fc644e46ce3d7016dbbe13e 100644 (file)
@@ -20,8 +20,8 @@
 #include "aubio_priv.h"
 #include "sample.h"
 #include "mathutils.h"
-#include "biquad.h"
-#include "peakpick.h"
+#include "temporal/biquad.h"
+#include "onset/peakpick.h"
 
 /* peak picking parameters, default values in brackets
  *
index 18cc89bc2ae678631007d2b2e1c3769e0f3b718c..c51a187412072599ffffe28342e272cd7864aa15 100644 (file)
 
 #include "aubio_priv.h"
 #include "sample.h"
-#include "phasevoc.h"
+#include "spectral/phasevoc.h"
 #include "mathutils.h"
-#include "filter.h"
+#include "temporal/filter.h"
 #include "pitch/pitchmcomb.h"
 #include "pitch/pitchyin.h"
 #include "pitch/pitchfcomb.h"
 #include "pitch/pitchschmitt.h"
 #include "pitch/pitchyinfft.h"
-#include "pitchdetection.h"
+#include "pitch/pitchdetection.h"
 
 typedef smpl_t (*aubio_pitchdetection_func_t)
   (aubio_pitchdetection_t *p, fvec_t * ibuf);
index e894b2bc8cc7a7eccdc2a74fbfdcff1bebb921cc..e6c884496fa6805531cb41c28b1215d9dbfbcaf8 100644 (file)
@@ -20,7 +20,7 @@
 #include "aubio_priv.h"
 #include "sample.h"
 #include "mathutils.h"
-#include "fft.h"
+#include "spectral/fft.h"
 #include "pitch/pitchfcomb.h"
 
 #define MAX_PEAKS 8
index e81b490c9492e16dac54fdb7424335f615ac622e..12d1051db5ab5af2bd29c8bf5118d214b2d3607a 100644 (file)
@@ -19,7 +19,7 @@
 #include "aubio_priv.h"
 #include "sample.h"
 #include "mathutils.h"
-#include "fft.h"
+#include "spectral/fft.h"
 #include "pitch/pitchyinfft.h"
 
 /** pitch yinfft structure */
similarity index 99%
rename from src/fft.c
rename to src/spectral/fft.c
index 3521febabf670381c1ad936ba37c790a35831044..8bff6ac192d6c4b9afcade2689b169b04255a1d8 100644 (file)
--- a/src/fft.c
@@ -21,7 +21,7 @@
 #include "fvec.h"
 #include "cvec.h"
 #include "mathutils.h"
-#include "fft.h"
+#include "spectral/fft.h"
 
 #if FFTW3F_SUPPORT
 #define fftw_malloc            fftwf_malloc
similarity index 100%
rename from src/fft.h
rename to src/spectral/fft.h
similarity index 99%
rename from src/filterbank.c
rename to src/spectral/filterbank.c
index c009e21e8d7afdfa34c07c5a71e36e6876acf2ae..aa1336bfc384e1a64fa964a2c4dc959f88b72ff1 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "aubio_priv.h"
 #include "sample.h"
-#include "filterbank.h"
+#include "spectral/filterbank.h"
 #include "mathutils.h"
 
 #define VERY_SMALL_NUMBER 2e-42
similarity index 100%
rename from src/filterbank.h
rename to src/spectral/filterbank.h
similarity index 97%
rename from src/mfcc.c
rename to src/spectral/mfcc.c
index 2420d8037e4a12e6a48f88623e8f249a3771ec73..a7ac9d59a631a4ef077e7709cdab312c2b1eeb5f 100644 (file)
 
 #include "aubio_priv.h"
 #include "sample.h"
-#include "fft.h"
-#include "filterbank.h"
-#include "mfcc.h"
-#include "math.h"
+#include "spectral/fft.h"
+#include "spectral/filterbank.h"
+#include "spectral/mfcc.h"
 
 /** Internal structure for mfcc object **/
 
similarity index 97%
rename from src/mfcc.h
rename to src/spectral/mfcc.h
index 6acc6cd232c64371087a4b343b61bcf4c0028cc1..0c873c5414127d883eb6dd86fd4b07ce3687cb53 100644 (file)
@@ -29,9 +29,6 @@
 extern "C" {
 #endif
 
-#include "sample.h"
-#include "filterbank.h"
-
 typedef struct aubio_mfcc_t_ aubio_mfcc_t;
 
 /** create mfcc object
similarity index 98%
rename from src/phasevoc.c
rename to src/spectral/phasevoc.c
index b04b106f94a7becb18ccb82a1ba628f75d757a92..d7ee16892619e9cda5b3377c013607f65fa312fc 100644 (file)
@@ -20,9 +20,9 @@
 #include "aubio_priv.h"
 #include "fvec.h"
 #include "cvec.h"
-#include "fft.h"
 #include "mathutils.h"
-#include "phasevoc.h"
+#include "spectral/fft.h"
+#include "spectral/phasevoc.h"
 
 /** phasevocoder internal object */
 struct _aubio_pvoc_t {
similarity index 100%
rename from src/phasevoc.h
rename to src/spectral/phasevoc.h
similarity index 99%
rename from src/tss.c
rename to src/spectral/tss.c
index da5a585f80997a1cceb0641aee7d317cd7ccc781..0cbe2de35d7811758f591c1f7d8547575eca9eb7 100644 (file)
--- a/src/tss.c
@@ -22,7 +22,7 @@
 #include "aubio_priv.h"
 #include "sample.h"
 #include "mathutils.h"
-#include "tss.h"
+#include "spectral/tss.h"
 
 struct _aubio_tss_t 
 {
similarity index 100%
rename from src/tss.h
rename to src/spectral/tss.h
index e67a6082c1a01fc8224d7c1fade0a5d7504aa1ce..7066e1c5e5f2597830ecef46e9f9f0e4e3441f7e 100644 (file)
@@ -20,7 +20,7 @@
 #include "aubio_priv.h"
 #include "sample.h"
 #include "mathutils.h"
-#include "beattracking.h"
+#include "tempo/beattracking.h"
 
 uint_t fvec_gettimesig(smpl_t * acf, uint_t acflen, uint_t gp);
 void aubio_beattracking_checkstate(aubio_beattracking_t * bt);
index 1794bae32bdc3ae20b4091bb204c8979972758df..6408ba66e1ec2075c9b74e5210a4a1ea70aa06f5 100644 (file)
 #include "sample.h"
 #include "onset/onsetdetection.h"
 #include "tempo/beattracking.h"
-#include "phasevoc.h"
+#include "spectral/phasevoc.h"
 #include "onset/peakpick.h"
 #include "mathutils.h"
-#include "tempo.h"
+#include "tempo/tempo.h"
 
 /* structure to store object state */
 struct _aubio_tempo_t {
similarity index 98%
rename from src/biquad.c
rename to src/temporal/biquad.c
index 327abfa18fb18e9201db1ad8f1d3848120dd0022..1775125f6aaba1cbeffb95313db45e8223b8fdcd 100644 (file)
@@ -20,7 +20,7 @@
 #include "aubio_priv.h"
 #include "sample.h"
 #include "mathutils.h"
-#include "biquad.h"
+#include "temporal/biquad.h"
 
 /** \note this file needs to be in double or more less precision would lead to large
  * errors in the output 
similarity index 100%
rename from src/biquad.h
rename to src/temporal/biquad.h
similarity index 99%
rename from src/filter.c
rename to src/temporal/filter.c
index 58c6191b48fb2a742c995ae640bd53c63f8d583d..f82cd1f017d37de35b8028e67f12fa447348630c 100644 (file)
@@ -24,7 +24,7 @@
 #include "aubio_priv.h"
 #include "sample.h"
 #include "mathutils.h"
-#include "filter.h"
+#include "temporal/filter.h"
 
 struct _aubio_filter_t {
   uint_t order;
similarity index 100%
rename from src/filter.h
rename to src/temporal/filter.h
similarity index 98%
rename from src/resample.c
rename to src/temporal/resample.c
index 8d9366ec58c555a69ff2b08394014035ca2bb59f..05d7a88d4a9263d0e9a17450a11c4c16a6f0890f 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "aubio_priv.h"
 #include "sample.h"
-#include "resample.h"
+#include "temporal/resample.h"
 
 struct _aubio_resampler_t {
        SRC_DATA  *proc;
similarity index 100%
rename from src/resample.h
rename to src/temporal/resample.h
similarity index 98%
rename from src/hist.c
rename to src/utils/hist.c
index e97287b411c40afc813399a463787c2dc011e19e..7337ec46b5ab2f10a9bed3deaa764ed35ddbdb45 100644 (file)
@@ -18,9 +18,9 @@
 
 #include "aubio_priv.h"
 #include "sample.h"
-#include "scale.h"
+#include "utils/scale.h"
 #include "mathutils.h" //vec_min vec_max
-#include "hist.h"
+#include "utils/hist.h"
 
 /********
  * Object Structure
similarity index 100%
rename from src/hist.h
rename to src/utils/hist.h
similarity index 98%
rename from src/scale.c
rename to src/utils/scale.c
index dff32b037b5440d6c9b5451a21da8ba516433c95..d348326e986e8237bc016161ea12660cc21ac5bf 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "aubio_priv.h"
 #include "sample.h"
-#include "scale.h"
+#include "utils/scale.h"
 
 struct _aubio_scale_t {
   smpl_t ilow;
similarity index 100%
rename from src/scale.h
rename to src/utils/scale.h