Changeset dddf1f5


Ignore:
Timestamp:
Nov 29, 2007, 5:34:18 PM (17 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
212da72
Parents:
66a1b955 (diff), 6c7d49b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge with main branch

Files:
11 added
2 deleted
14 edited
37 moved

Legend:

Unmodified
Added
Removed
  • doc/Makefile.am

    r66a1b955 rdddf1f5  
    2828        (echo PROJECT_NUMBER = $(PROJECT_NUMBER) ; cat $(srcdir)/examples.cfg)  | doxygen -
    2929
    30 %.sgml:
    31 
    32 %.1:    %.sgml
     30.sgml.1:
    3331        docbook-to-man $< > $*.1
    3432
    35 %.html: %.sgml
     33.sgml.html:
    3634        docbook2html $< && mv index.html $*.html
    3735
  • examples/Makefile.am

    r66a1b955 rdddf1f5  
    77        aubioonset \
    88        aubiotrack \
    9         aubionotes
     9        aubionotes \
     10        aubiomfcc
    1011
    1112noinst_PROGRAMS = \
     
    1920aubiotrack_SOURCES = aubiotrack.c utils.c
    2021aubioquiet_SOURCES = aubioquiet.c utils.c
     22aubiomfcc_SOURCES = aubiomfcc.c utils.c
    2123
    2224aubioonset_LDADD = @JACK_LIBS@
     
    2426aubiotrack_LDADD = @JACK_LIBS@
    2527aubioquiet_LDADD = @JACK_LIBS@
     28aubiomfcc_LDADD = @JACK_LIBS@
  • examples/utils.c

    r66a1b955 rdddf1f5  
    174174                                else if (strcmp(optarg,"kl") == 0)
    175175                                        type_onset = aubio_onset_kl;
     176                                else if (strcmp(optarg,"specflux") == 0)
     177                                        type_onset = aubio_onset_specflux;
    176178                                else {
    177179                                        errmsg("unknown onset type.\n");
  • ext/sndfileio.c

    r66a1b955 rdddf1f5  
    2323
    2424#include "aubio_priv.h"
    25 #include "sample.h"
     25#include "fvec.h"
    2626#include "sndfileio.h"
    2727#include "mathutils.h"
  • python/aubio/aubioclass.py

    r66a1b955 rdddf1f5  
    7474        aubio_onsetdetection(self.od,tc(),tf())
    7575    def __del__(self):
    76         aubio_onsetdetection_free(self.od)
     76        del_aubio_onsetdetection(self.od)
    7777
    7878class peakpick:
  • python/aubio/task/utils.py

    r66a1b955 rdddf1f5  
    1717        elif nvalue == 'mkl'           :
    1818                 return aubio_onset_mkl
     19        elif nvalue == 'specflux'      :
     20                 return aubio_onset_specflux
    1921        elif nvalue == 'dual'          :
    2022                 return 'dual'
    2123        else:
    2224                 import sys
    23                  print "unknown onset detection function selected"
     25                 print "unknown onset detection function selected: %s" % nvalue
    2426                 sys.exit(1)
    2527
  • src/Makefile.am

    r66a1b955 rdddf1f5  
    22pkginclude_HEADERS = aubio.h \
    33        types.h \
    4         phasevoc.h \
    5         mathutils.h \
    6         fft.h \
    7         sample.h \
    84        fvec.h \
    95        cvec.h \
    10         hist.h \
    11         scale.h \
    12         resample.h \
    13         onsetdetection.h \
    14         tss.h \
    15         peakpick.h \
    16         biquad.h \
    17         pitchdetection.h \
    18         pitchmcomb.h \
    19         pitchyin.h \
    20         pitchschmitt.h \
    21         pitchfcomb.h \
    22         pitchyinfft.h \
    23         beattracking.h \
    24         onset.h \
    25         tempo.h \
    26         filter.h
     6        mathutils.h \
     7        utils/hist.h \
     8        utils/scale.h \
     9        temporal/resample.h \
     10        temporal/biquad.h \
     11        temporal/filter.h \
     12        spectral/filterbank.h \
     13        spectral/mfcc.c \
     14        spectral/phasevoc.h \
     15        spectral/fft.h \
     16        spectral/tss.h \
     17        spectral/spectral_centroid.h \
     18        pitch/pitchdetection.h \
     19        pitch/pitchmcomb.h \
     20        pitch/pitchyin.h \
     21        pitch/pitchschmitt.h \
     22        pitch/pitchfcomb.h \
     23        pitch/pitchyinfft.h \
     24        onset/onset.h \
     25        onset/onsetdetection.h \
     26        onset/peakpick.h \
     27        tempo/tempo.h \
     28        tempo/beattracking.h
     29
    2730nodist_pkginclude_HEADERS = config.h
    2831
     
    3033libaubio_la_SOURCES = aubio.h \
    3134        types.h \
    32         phasevoc.c \
    33         phasevoc.h \
    34         mathutils.c \
    35         mathutils.h \
    36         fft.c \
    37         fft.h \
    3835        fvec.c \
    3936        fvec.h \
    4037        cvec.c \
    4138        cvec.h \
    42         hist.c \
    43         hist.h \
    44         scale.c \
    45         scale.h \
    46         resample.c \
    47         resample.h \
    48         onsetdetection.c \
    49         onsetdetection.h \
    50         tss.c \
    51         tss.h \
    52         peakpick.c \
    53         peakpick.h \
    54         biquad.c \
    55         biquad.h \
    56         pitchdetection.c \
    57         pitchdetection.h \
    58         pitchmcomb.c \
    59         pitchmcomb.h \
    60         pitchyin.c \
    61         pitchyin.h \
    62         pitchschmitt.c \
    63         pitchschmitt.h \
    64         pitchfcomb.c \
    65         pitchfcomb.h \
    66         pitchyinfft.c \
    67         pitchyinfft.h \
    68         beattracking.c \
    69         beattracking.h \
    70         onset.c \
    71         onset.h \
    72         tempo.c \
    73         tempo.h \
    74         filter.c \
    75         filter.h
     39        mathutils.c \
     40        mathutils.h \
     41        utils/hist.c \
     42        utils/hist.h \
     43        utils/scale.c \
     44        utils/scale.h \
     45        temporal/resample.c \
     46        temporal/resample.h \
     47        temporal/biquad.c \
     48        temporal/biquad.h \
     49        temporal/filter.c \
     50        temporal/filter.h \
     51        spectral/filterbank.c \
     52        spectral/filterbank.h \
     53        spectral/mfcc.h \
     54        spectral/mfcc.c \
     55        spectral/phasevoc.c \
     56        spectral/phasevoc.h \
     57        spectral/fft.c \
     58        spectral/fft.h \
     59        spectral/tss.c \
     60        spectral/tss.h \
     61        spectral/spectral_centroid.c \
     62        spectral/spectral_centroid.h \
     63        pitch/pitchdetection.c \
     64        pitch/pitchdetection.h \
     65        pitch/pitchmcomb.c \
     66        pitch/pitchmcomb.h \
     67        pitch/pitchyin.c \
     68        pitch/pitchyin.h \
     69        pitch/pitchschmitt.c \
     70        pitch/pitchschmitt.h \
     71        pitch/pitchfcomb.c \
     72        pitch/pitchfcomb.h \
     73        pitch/pitchyinfft.c \
     74        pitch/pitchyinfft.h \
     75        onset/onset.c \
     76        onset/onset.h \
     77        onset/onsetdetection.c \
     78        onset/onsetdetection.h \
     79        onset/peakpick.c \
     80        onset/peakpick.h \
     81        tempo/tempo.c \
     82        tempo/tempo.h \
     83        tempo/beattracking.c \
     84        tempo/beattracking.h
    7685
    7786AM_CFLAGS = @AUBIO_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
  • src/aubio.h

    r66a1b955 rdddf1f5  
    5959/* in this order */
    6060#include "types.h"
    61 #include "sample.h"
    62 #include "fft.h"
    63 #include "phasevoc.h"
     61#include "fvec.h"
     62#include "cvec.h"
    6463#include "mathutils.h"
    65 #include "scale.h"
    66 #include "hist.h"
    67 #include "onsetdetection.h"
    68 #include "tss.h"
    69 #include "resample.h"
    70 #include "peakpick.h"
    71 #include "biquad.h"
    72 #include "filter.h"
    73 #include "pitchdetection.h"
    74 #include "pitchmcomb.h"
    75 #include "pitchyin.h"
    76 #include "pitchyinfft.h"
    77 #include "pitchschmitt.h"
    78 #include "pitchfcomb.h"
    79 #include "beattracking.h"
    80 #include "onset.h"
    81 #include "tempo.h"
     64#include "utils/scale.h"
     65#include "utils/hist.h"
     66#include "spectral/tss.h"
     67#include "temporal/resample.h"
     68#include "temporal/biquad.h"
     69#include "temporal/filter.h"
     70#include "spectral/filterbank.h"
     71#include "spectral/mfcc.h"
     72#include "spectral/fft.h"
     73#include "spectral/phasevoc.h"
     74#include "spectral/spectral_centroid.h"
     75#include "pitch/pitchdetection.h"
     76#include "pitch/pitchmcomb.h"
     77#include "pitch/pitchyin.h"
     78#include "pitch/pitchyinfft.h"
     79#include "pitch/pitchschmitt.h"
     80#include "pitch/pitchfcomb.h"
     81#include "onset/onsetdetection.h"
     82#include "onset/onset.h"
     83#include "onset/peakpick.h"
     84#include "tempo/beattracking.h"
     85#include "tempo/tempo.h"
    8286
    8387#ifdef __cplusplus
  • src/fvec.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
     21#include "fvec.h"
    2222
    2323fvec_t * new_fvec( uint_t length, uint_t channels) {
  • src/mathutils.c

    r66a1b955 rdddf1f5  
    2121
    2222#include "aubio_priv.h"
    23 #include "sample.h"
     23#include "fvec.h"
    2424#include "mathutils.h"
    2525#include "config.h"
     
    227227  /* pre part of the buffer does not exist */
    228228  } else {
    229     for (k=0;k<length-pos+post+1;k++)
     229    for (k=0;k<length-pos+post;k++)
    230230      medar[k] = vec->data[0][k+pos-post];
    231     for (k=length-pos+post+1;k<win_length;k++)
     231    for (k=length-pos+post;k<win_length;k++)
    232232      medar[k] = 0.; /* 0-padding at the end */
    233233  }
     
    433433}
    434434
    435 smpl_t aubio_spectral_centroid(cvec_t * spectrum, smpl_t samplerate) {
    436   uint_t i=0, j;
    437   smpl_t sum = 0., sc = 0.;
    438   for ( j = 0; j < spectrum->length; j++ ) {
    439     sum += spectrum->norm[i][j];
    440   }
    441   if (sum == 0.) return 0.;
    442   for ( j = 0; j < spectrum->length; j++ ) {
    443     sc += (smpl_t)j * spectrum->norm[i][j];
    444   }
    445   return sc / sum * samplerate / (smpl_t)(spectrum->length);
    446 }
    447 
    448435void aubio_autocorr(fvec_t * input, fvec_t * output) {
    449436  uint_t i = 0, j = 0, length = input->length;
  • src/mathutils.h

    r66a1b955 rdddf1f5  
    209209smpl_t aubio_zero_crossing_rate(fvec_t * input);
    210210/**
    211  * spectrum centroid computed on a cvec
    212  */
    213 smpl_t aubio_spectral_centroid(cvec_t * input, smpl_t samplerate);
    214 /**
    215211 * clean up cached memory at the end of program
    216212 *
  • src/onset/onset.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
    22 #include "onsetdetection.h"
    23 #include "phasevoc.h"
    24 #include "peakpick.h"
     21#include "fvec.h"
     22#include "cvec.h"
     23#include "onset/onsetdetection.h"
     24#include "spectral/phasevoc.h"
     25#include "onset/peakpick.h"
    2526#include "mathutils.h"
    26 #include "onset.h"
     27#include "onset/onset.h"
    2728
    2829/** structure to store object state */
  • src/onset/onsetdetection.h

    r66a1b955 rdddf1f5  
    4747        aubio_onset_phase,          /**< phase fast */           
    4848        aubio_onset_kl,             /**< Kullback Liebler */
    49         aubio_onset_mkl             /**< modified Kullback Liebler */
     49        aubio_onset_mkl,            /**< modified Kullback Liebler */
     50        aubio_onset_specflux,       /**< spectral flux */
    5051} aubio_onsetdetection_type;
    5152
     
    137138*/
    138139void aubio_onsetdetection_mkl(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);
     140/** Spectral Flux
     141
     142  Simon Dixon, Onset Detection Revisited, in ``Proceedings of the 9th
     143  International Conference on Digital Audio Effects'' (DAFx-06), Montreal,
     144  Canada, 2006.
     145
     146  \param o onset detection object as returned by new_aubio_onsetdetection()
     147  \param fftgrain input spectral frame
     148  \param onset output onset detection function
     149
     150*/
     151void aubio_onsetdetection_specflux(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);
    139152/** execute onset detection function on a spectral frame
    140153
  • src/onset/peakpick.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
     21#include "fvec.h"
    2222#include "mathutils.h"
    23 #include "biquad.h"
    24 #include "peakpick.h"
     23#include "temporal/biquad.h"
     24#include "onset/peakpick.h"
    2525
    2626/* peak picking parameters, default values in brackets
  • src/pitch/pitchdetection.c

    r66a1b955 rdddf1f5  
    1818
    1919#include "aubio_priv.h"
    20 #include "sample.h"
    21 #include "phasevoc.h"
     20#include "fvec.h"
     21#include "cvec.h"
     22#include "spectral/phasevoc.h"
    2223#include "mathutils.h"
    23 #include "filter.h"
    24 #include "pitchmcomb.h"
    25 #include "pitchyin.h"
    26 #include "pitchfcomb.h"
    27 #include "pitchschmitt.h"
    28 #include "pitchyinfft.h"
    29 #include "pitchdetection.h"
     24#include "temporal/filter.h"
     25#include "pitch/pitchmcomb.h"
     26#include "pitch/pitchyin.h"
     27#include "pitch/pitchfcomb.h"
     28#include "pitch/pitchschmitt.h"
     29#include "pitch/pitchyinfft.h"
     30#include "pitch/pitchdetection.h"
    3031
    3132typedef smpl_t (*aubio_pitchdetection_func_t)
  • src/pitch/pitchfcomb.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
     21#include "fvec.h"
     22#include "cvec.h"
    2223#include "mathutils.h"
    23 #include "fft.h"
    24 #include "pitchfcomb.h"
     24#include "spectral/fft.h"
     25#include "pitch/pitchfcomb.h"
    2526
    2627#define MAX_PEAKS 8
  • src/pitch/pitchmcomb.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
     21#include "fvec.h"
     22#include "cvec.h"
    2223#include "mathutils.h"
    23 #include "pitchmcomb.h"
     24#include "pitch/pitchmcomb.h"
    2425
    2526#define CAND_SWAP(a,b) { register aubio_spectralcandidate_t *t=(a);(a)=(b);(b)=t; }
     
    192193  uint_t l;
    193194  uint_t d;
    194   uint_t curlen;
     195  uint_t curlen = 0;
    195196
    196197  smpl_t delta2;
     
    214215    candidate[l]->ebin=scaler*peaks[root_peak].ebin;
    215216    /* if less than N peaks available, curlen < N */
    216     curlen = (uint_t)FLOOR(length/(candidate[l]->ebin));
     217    if (candidate[l]->ebin != 0.)
     218      curlen = (uint_t)FLOOR(length/(candidate[l]->ebin));
    217219    curlen = (N < curlen )? N : curlen;
    218220    /* fill candidate[l]->ecomb[k] with (k+1)*candidate[l]->ebin */
     
    326328  aubio_pitchmcomb_t * p = AUBIO_NEW(aubio_pitchmcomb_t);
    327329  /* bug: should check if size / 8 > post+pre+1 */
    328   uint_t i;
     330  uint_t i, j;
    329331  uint_t spec_size;
    330332  p->spec_partition   = 4;
     
    353355  /* array of spectral peaks */
    354356  p->peaks      = AUBIO_ARRAY(aubio_spectralpeak_t,spec_size);
     357  for (i = 0; i < spec_size; i++) {
     358    p->peaks[i].bin = 0.;
     359    p->peaks[i].ebin = 0.;
     360    p->peaks[i].mag = 0.;
     361  }
    355362  /* array of pointers to spectral candidates */
    356363  p->candidates = AUBIO_ARRAY(aubio_spectralcandidate_t *,p->ncand);
     
    358365    p->candidates[i] = AUBIO_NEW(aubio_spectralcandidate_t);
    359366    p->candidates[i]->ecomb = AUBIO_ARRAY(smpl_t, spec_size);
     367    for (j=0; j < spec_size; j++) {
     368      p->candidates[i]->ecomb[j] = 0.;
     369    }
     370    p->candidates[i]->ene = 0.;
     371    p->candidates[i]->ebin = 0.;
     372    p->candidates[i]->len = 0.;
    360373  }
    361374  return p;
     
    367380  del_fvec(p->newmag);
    368381  del_fvec(p->scratch);
     382  del_fvec(p->theta);
    369383  del_fvec(p->scratch2);
    370384  AUBIO_FREE(p->peaks);
    371385  for (i=0;i<p->ncand;i++) {
     386    AUBIO_FREE(p->candidates[i]->ecomb);
    372387    AUBIO_FREE(p->candidates[i]);
    373388  }
  • src/pitch/pitchschmitt.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
    22 #include "pitchschmitt.h"
     21#include "fvec.h"
     22#include "pitch/pitchschmitt.h"
    2323
    2424smpl_t aubio_schmittS16LE (aubio_pitchschmitt_t *p, uint_t nframes, signed short int *indata);
  • src/pitch/pitchyinfft.c

    r66a1b955 rdddf1f5  
    1818
    1919#include "aubio_priv.h"
    20 #include "sample.h"
     20#include "fvec.h"
     21#include "cvec.h"
    2122#include "mathutils.h"
    22 #include "fft.h"
    23 #include "pitchyinfft.h"
     23#include "spectral/fft.h"
     24#include "pitch/pitchyinfft.h"
    2425
    2526/** pitch yinfft structure */
  • src/spectral/fft.c

    r66a1b955 rdddf1f5  
    2222#include "cvec.h"
    2323#include "mathutils.h"
    24 #include "fft.h"
     24#include "spectral/fft.h"
    2525
    2626#if FFTW3F_SUPPORT
  • src/spectral/phasevoc.c

    r66a1b955 rdddf1f5  
    2121#include "fvec.h"
    2222#include "cvec.h"
    23 #include "fft.h"
    2423#include "mathutils.h"
    25 #include "phasevoc.h"
     24#include "spectral/fft.h"
     25#include "spectral/phasevoc.h"
    2626
    2727/** phasevocoder internal object */
  • src/spectral/spectral_centroid.h

    r66a1b955 rdddf1f5  
    11/*
    2    Copyright (C) 2003-2007 Paul Brossier <piem@piem.org>
     2   Copyright (C) 2007 Paul Brossier
    33
    44   This program is free software; you can redistribute it and/or modify
     
    1818*/
    1919
    20 #ifndef _SAMPLE_H
    21 #define _SAMPLE_H
     20/** @file
     21 * compute spectrum centroid of a cvec object
     22 */
    2223
    23 #include "fvec.h"
    24 #include "cvec.h"
    25 
    26 #endif /* _SAMPLE_H */
     24/**
     25 * spectrum centroid computed on a cvec
     26 */
     27smpl_t aubio_spectral_centroid(cvec_t * input, smpl_t samplerate);
  • src/spectral/tss.c

    r66a1b955 rdddf1f5  
    2121
    2222#include "aubio_priv.h"
    23 #include "sample.h"
     23#include "fvec.h"
     24#include "cvec.h"
    2425#include "mathutils.h"
    25 #include "tss.h"
     26#include "spectral/tss.h"
    2627
    2728struct _aubio_tss_t
  • src/tempo/beattracking.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
     21#include "fvec.h"
    2222#include "mathutils.h"
    23 #include "beattracking.h"
     23#include "tempo/beattracking.h"
    2424
    2525uint_t fvec_gettimesig(smpl_t * acf, uint_t acflen, uint_t gp);
  • src/tempo/tempo.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
    22 #include "onsetdetection.h"
    23 #include "beattracking.h"
    24 #include "phasevoc.h"
    25 #include "peakpick.h"
     21#include "fvec.h"
     22#include "cvec.h"
     23#include "onset/onsetdetection.h"
     24#include "tempo/beattracking.h"
     25#include "spectral/phasevoc.h"
     26#include "onset/peakpick.h"
    2627#include "mathutils.h"
    27 #include "tempo.h"
     28#include "tempo/tempo.h"
    2829
    2930/* structure to store object state */
  • src/temporal/biquad.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
     21#include "fvec.h"
    2222#include "mathutils.h"
    23 #include "biquad.h"
     23#include "temporal/biquad.h"
    2424
    2525/** \note this file needs to be in double or more less precision would lead to large
  • src/temporal/filter.c

    r66a1b955 rdddf1f5  
    2323
    2424#include "aubio_priv.h"
    25 #include "sample.h"
     25#include "fvec.h"
    2626#include "mathutils.h"
    27 #include "filter.h"
     27#include "temporal/filter.h"
    2828
    2929struct _aubio_filter_t {
  • src/temporal/resample.c

    r66a1b955 rdddf1f5  
    2222
    2323#include "aubio_priv.h"
    24 #include "sample.h"
    25 #include "resample.h"
     24#include "fvec.h"
     25#include "temporal/resample.h"
    2626
    2727struct _aubio_resampler_t {
  • src/utils/hist.c

    r66a1b955 rdddf1f5  
    1818
    1919#include "aubio_priv.h"
    20 #include "sample.h"
    21 #include "scale.h"
     20#include "fvec.h"
     21#include "utils/scale.h"
    2222#include "mathutils.h" //vec_min vec_max
    23 #include "hist.h"
     23#include "utils/hist.h"
    2424
    2525/********
  • src/utils/scale.c

    r66a1b955 rdddf1f5  
    1919
    2020#include "aubio_priv.h"
    21 #include "sample.h"
    22 #include "scale.h"
     21#include "fvec.h"
     22#include "utils/scale.h"
    2323
    2424struct _aubio_scale_t {
  • swig/aubio.i

    r66a1b955 rdddf1f5  
    155155smpl_t aubio_spectral_centroid(cvec_t * spectrum, smpl_t samplerate);
    156156
     157/* filterbank */
     158aubio_filterbank_t * new_aubio_filterbank(uint_t win_s, uint_t channels);
     159aubio_filterbank_t * new_aubio_filterbank_mfcc(uint_t n_filters, uint_t win_s, uint_t samplerate, smpl_t freq_min, smpl_t freq_max);
     160void del_aubio_filterbank(aubio_filterbank_t * fb);
     161void aubio_filterbank_do(aubio_filterbank_t * fb, cvec_t * in, fvec_t *out);
     162fvec_t * aubio_filterbank_getchannel(aubio_filterbank_t * fb, uint_t channel);
     163
     164/* mfcc */
     165aubio_mfcc_t * new_aubio_mfcc (uint_t win_s, uint_t samplerate, uint_t n_filters, uint_t n_coefs, smpl_t lowfreq, smpl_t highfreq, uint_t channels);
     166void del_aubio_mfcc(aubio_mfcc_t *mf);
     167void aubio_mfcc_do(aubio_mfcc_t *mf, cvec_t *in, fvec_t *out);
     168
    157169/* scale */
    158170extern aubio_scale_t * new_aubio_scale(smpl_t flow, smpl_t fhig, smpl_t ilow, smpl_t ihig       );
     
    174186        aubio_onset_phase,
    175187        aubio_onset_kl,
    176         aubio_onset_mkl
     188        aubio_onset_mkl,
     189        aubio_onset_specflux,
    177190} aubio_onsetdetection_type;
    178191aubio_onsetdetection_t * new_aubio_onsetdetection(aubio_onsetdetection_type type, uint_t size, uint_t channels);
    179192void aubio_onsetdetection(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);
     193void del_aubio_onsetdetection(aubio_onsetdetection_t *o);
    180194
    181195/* should these still be exposed ? */
  • tests/python/examples/aubiopitch.py

    r66a1b955 rdddf1f5  
    5353    self.getOutput()
    5454    expected_output = open(os.path.join('examples','aubiopitch','yinfft'+'.'+os.path.basename(self.filename)+'.txt')).read()
     55    lines = 0
    5556    for line_out, line_exp in zip(self.output.split('\n'), expected_output.split('\n')):
    56       assert line_out == line_exp, line_exp + " vs. " + line_out
     57      try:
     58        assert line_exp == line_out, line_exp + " vs. " + line_out + " at line " + str(lines)
     59      except:
     60        open(os.path.join('examples','aubiopitch','yinfft'+'.'+os.path.basename(self.filename)+'.txt.out'),'w').write(self.output)
     61        raise
     62      lines += 1
    5763
    5864if __name__ == '__main__': unittest.main()
  • tests/src/test-tempo.c

    r66a1b955 rdddf1f5  
    1919            return 1;
    2020          }
    21           curtempoconf = aubio_beattracking_get_confidence(o);
     21          curtempoconf = aubio_tempo_get_confidence(o);
    2222          if (curtempoconf != 0.) {
    2323            fprintf(stdout,"%f\n",curtempo);
Note: See TracChangeset for help on using the changeset viewer.