Ignore:
Timestamp:
Sep 16, 2007, 6:28:55 PM (13 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:
aa83433
Parents:
177f09a
Message:

aubiomfcc.c: remove call do dump_filterbank, move printf outside process loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    r177f09a raeb38cf  
    5454      aubio_mfcc_do(mfcc, fftgrain, mfcc_out);
    5555     
    56       uint_t coef_cnt;
    57       for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) {
    58           outmsg("%f ",mfcc_out->data[0][coef_cnt]);
    59       }
    60       outmsg("\n");
    61      
    6256      /* end of block loop */
    6357      pos = -1; /* so it will be zero next j loop */
     
    7670      uint_t coef_cnt;
    7771      if (output_filename == NULL) {
    78 //         if(frames >= 4) {
    79 //           outmsg("%f\t",(frames-4)*overlap_size/(float)samplerate);
    80 //         }
    81 //         else if (frames < 4) {
    82 //           outmsg("%f\t",0.);
    83 //         }
    84         //outmsg("%f ",mfcc_out->data[0][0]);
    85        
    86        
     72         if(frames >= 4) {
     73           outmsg("%f\t",(frames-4)*overlap_size/(float)samplerate);
     74         }
     75         else if (frames < 4) {
     76           outmsg("%f\t",0.);
     77         }
     78        for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) {
     79            outmsg("%f ",mfcc_out->data[0][coef_cnt]);
     80        }
     81        outmsg("\n");
    8782      }
    8883}
     
    9994  //populating the filter
    10095  mfcc = new_aubio_mfcc(buffer_size, samplerate, n_filters, n_coefs , lowfreq, highfreq, channels);
    101   dump_filterbank(mfcc);
    102  
    10396 
    10497  //process
Note: See TracChangeset for help on using the changeset viewer.