Changeset 075bc57


Ignore:
Timestamp:
Nov 24, 2018, 6:30:17 PM (13 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
832b0f6
Parents:
be83390
Message:

[tests] wrap long lines in test-tempo.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/tempo/test-tempo.c

    rbe83390 r075bc57  
    1616      err = 0;
    1717    }
    18     PRINT_MSG("usage: %s <source_path> [samplerate] [win_size] [hop_size]\n", argv[0]);
     18    PRINT_MSG("usage: %s <source_path> [samplerate] [win_size] [hop_size]\n",
     19        argv[0]);
    1920    return err;
    2021  }
     
    2829
    2930  char_t *source_path = argv[1];
    30   aubio_source_t * source = new_aubio_source(source_path, samplerate, hop_size);
     31  aubio_source_t * source = new_aubio_source(source_path, samplerate,
     32      hop_size);
    3133  if (!source) { err = 1; goto beach; }
    3234
     
    3840
    3941  // create tempo object
    40   aubio_tempo_t * o = new_aubio_tempo("default", win_size, hop_size, samplerate);
     42  aubio_tempo_t * o = new_aubio_tempo("default", win_size, hop_size,
     43      samplerate);
    4144
    4245  if (!o) { err = 1; goto beach_tempo; }
     
    4952    // do something with the beats
    5053    if (out->data[0] != 0) {
    51       PRINT_MSG("beat at %.3fms, %.3fs, frame %d, %.2fbpm with confidence %.2f\n",
     54      PRINT_MSG("beat at %.3fms, %.3fs, frame %d, %.2f bpm "
     55          "with confidence %.2f\n",
    5256          aubio_tempo_get_last_ms(o), aubio_tempo_get_last_s(o),
    53           aubio_tempo_get_last(o), aubio_tempo_get_bpm(o), aubio_tempo_get_confidence(o));
     57          aubio_tempo_get_last(o), aubio_tempo_get_bpm(o),
     58          aubio_tempo_get_confidence(o));
    5459    }
    5560    n_frames += read;
Note: See TracChangeset for help on using the changeset viewer.