Ignore:
Timestamp:
Sep 8, 2007, 7:05:15 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:
45134c5
Parents:
f14a78d
Message:

aubiomfcc.c: get hi/lowfreq after common_init, delete mfcc object before common_del

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    rf14a78d r38837b1  
    8383  // params
    8484  uint_t n_filters = 11;
    85   smpl_t lowfreq = 500.;
    86   smpl_t highfreq = 2000.;
    8785  examples_common_init(argc,argv);
     86  smpl_t lowfreq = 0.;
     87  smpl_t highfreq = samplerate;
    8888  mfcc_out = new_fvec(n_filters,channels);
    8989 
     
    9494  //process
    9595  examples_common_process(aubio_process,process_print);
     96 
     97  //destroying mfcc
     98  del_aubio_mfcc(mfcc);
     99  del_fvec(mfcc_out);
     100
    96101  examples_common_del();
    97102  debug("End of program.\n");
    98103  fflush(stderr);
    99104 
    100   //destroying mfcc
    101   del_aubio_mfcc(mfcc);
    102   del_fvec(mfcc_out);
    103  
    104105  return 0;
    105106}
Note: See TracChangeset for help on using the changeset viewer.