Changeset b67e715 for examples


Ignore:
Timestamp:
Mar 26, 2017, 3:40:49 PM (8 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, sampler
Children:
b669066
Parents:
5f0ad50
Message:

examples/aubioonset.c: get parameters from created instances

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/aubioonset.c

    r5f0ad50 rb67e715  
    6363  examples_common_init(argc,argv);
    6464
    65   verbmsg ("using source: %s at %dHz\n", source_uri, samplerate);
    66   verbmsg ("onset method: %s, ", onset_method);
    67   verbmsg ("buffer_size: %d, ", buffer_size);
    68   verbmsg ("hop_size: %d, ", hop_size);
    69   verbmsg ("silence: %f, ", silence_threshold);
    70   verbmsg ("threshold: %f\n", onset_threshold);
    71 
    7265  o = new_aubio_onset (onset_method, buffer_size, hop_size, samplerate);
    7366  if (o == NULL) { ret = 1; goto beach; }
     
    7871  if (onset_minioi != 0.)
    7972    aubio_onset_set_minioi_s (o, onset_minioi);
     73
     74  verbmsg ("using source: %s at %dHz\n", source_uri, samplerate);
     75  verbmsg ("onset method: %s, ", onset_method);
     76  verbmsg ("buffer_size: %d, ", buffer_size);
     77  verbmsg ("hop_size: %d, ", hop_size);
     78  verbmsg ("silence: %f, ", aubio_onset_get_silence(o));
     79  verbmsg ("threshold: %f\n", aubio_onset_get_threshold(o));
    8080
    8181  onset = new_fvec (1);
Note: See TracChangeset for help on using the changeset viewer.