Changeset 8c7f80d for examples


Ignore:
Timestamp:
Apr 8, 2013, 7:02:00 PM (12 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:
58c24e1
Parents:
0e75589
Message:

examples/aubiomfcc.c: simplify process_print

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubiomfcc.c

    r0e75589 r8c7f80d  
    6161
    6262static void process_print (void) {
    63       /* output times in seconds
    64          write extracted mfccs
    65       */
    66      
    67       uint_t coef_cnt;
    68       if (sink_uri == NULL) {
    69         outmsg("%f\t",frames*overlap_size/(float)samplerate);
    70         for (coef_cnt = 0; coef_cnt < n_coefs; coef_cnt++) {
    71             outmsg("%f ", fvec_read_sample (mfcc_out, coef_cnt) );
    72         }
    73         outmsg("\n");
    74       }
     63  /* output times in seconds and extracted mfccs */
     64  if (sink_uri == NULL) {
     65    outmsg("%f\t",frames*overlap_size/(float)samplerate);
     66    fvec_print(mfcc_out);
     67  }
    7568}
    7669
Note: See TracChangeset for help on using the changeset viewer.