Ignore:
Timestamp:
Mar 3, 2013, 7:37:43 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
9547247
Parents:
26775a3
Message:

tests/src/spectral/: improve examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/spectral/test-specdesc.c

    r26775a3 r6938a20  
    1 
    2 #define AUBIO_UNSTABLE 1
    3 
    41#include <aubio.h>
    52
    6 int
    7 main ()
     3int main ()
    84{
    9   uint_t win_s = 1024;          /* window size */
    10   cvec_t *in = new_cvec (win_s);      /* input buffer */
    11   fvec_t *out = new_fvec (1); /* input buffer */
     5  uint_t win_s = 1024; // window size
     6  cvec_t *in = new_cvec (win_s); // input buffer
     7  fvec_t *out = new_fvec (1); // output spectral descriptor
    128
    139  aubio_specdesc_t *o;
    14  
     10
    1511  o = new_aubio_specdesc ("energy", win_s);
    1612  aubio_specdesc_do (o, in, out);
Note: See TracChangeset for help on using the changeset viewer.