Ignore:
Timestamp:
Aug 12, 2015, 4:15:39 PM (9 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:
df7be43
Parents:
a90e9d4
Message:

examples/: add time format option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioquiet.c

    ra90e9d4 r340cb93  
    3939void process_print (void) {
    4040  int curblocks = (blocks - 4) > 0 ? blocks - 4 : 0;
    41   if (issilence == -1) {
    42     outmsg("NOISY: %f\n",curblocks*hop_size/(float)samplerate);
    43   } else if (issilence == 2) {
    44     outmsg("QUIET: %f\n",curblocks*hop_size/(float)samplerate);
     41  if (issilence == -1 || issilence == 2) {
     42    if (issilence == -1) {
     43      outmsg ("NOISY: ");
     44    } else { // if (issilence == 2) {
     45      outmsg ("QUIET: ");
     46    }
     47    print_time (curblocks * hop_size);
     48    outmsg ("\n");
    4549  }
    4650}
Note: See TracChangeset for help on using the changeset viewer.