Changeset cdfad6fd


Ignore:
Timestamp:
Jul 21, 2006, 8:10:23 PM (18 years ago)
Author:
Paul Brossier <piem@altern.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:
40536fa
Parents:
17fbb7a
Message:

complete test-mfft memory freeing, comment out printfs
complete test-mfft memory freeing, comment out printfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/tests/test-mfft.c

    r17fbb7a rcdfad6fd  
    11
    2 #include "aubio.h"
     2#include <aubio.h>
    33
    44int main(){
    55        /* allocate some memory */
    66        uint_t win_s      = 4096;                       /* window size        */
    7         uint_t channels   = 1000;                       /* number of channels */
     7        uint_t channels   = 100;                        /* number of channels */
    88        fvec_t * in       = new_fvec (win_s, channels); /* input buffer       */
    99        cvec_t * fftgrain = new_cvec (win_s, channels); /* fft norm and phase */
     
    1212        aubio_mfft_t * fft = new_aubio_mfft(win_s,channels);
    1313        /* fill input with some data */
    14         printf("initialised\n");
     14        //printf("initialised\n");
    1515        /* execute stft */
    1616        aubio_mfft_do (fft,in,fftgrain);
    17         printf("computed forward\n");
     17        //printf("computed forward\n");
    1818        /* execute inverse fourier transform */
    1919        aubio_mfft_rdo(fft,fftgrain,out);
    20         printf("computed backard\n");
     20        //printf("computed backard\n");
    2121        del_aubio_mfft(fft);
    2222        del_fvec(in);
    2323        del_cvec(fftgrain);
    2424        del_fvec(out);
    25         printf("memory freed\n");
     25        //printf("memory freed\n");
     26        aubio_cleanup();
    2627        return 0;
    2728}
Note: See TracChangeset for help on using the changeset viewer.