Changeset b4f5967 for src/tempo/tempo.c


Ignore:
Timestamp:
Oct 15, 2009, 5:09:34 PM (15 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:
cd77c15
Parents:
27fa522
Message:

src/onset: use a string to set onset mode, keeping onset types enum private, update everywhere onsets are used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tempo/tempo.c

    r27fa522 rb4f5967  
    9999
    100100/* Allocate memory for an tempo detection */
    101 aubio_tempo_t * new_aubio_tempo (aubio_onsetdetection_type type_onset,
     101aubio_tempo_t * new_aubio_tempo (char_t * onset_mode,
    102102    uint_t buf_size, uint_t hop_size, uint_t channels)
    103103{
     
    114114  o->pv       = new_aubio_pvoc(buf_size, hop_size, channels);
    115115  o->pp       = new_aubio_peakpicker(o->threshold);
    116   o->od       = new_aubio_onsetdetection(type_onset,buf_size,channels);
     116  o->od       = new_aubio_onsetdetection(onset_mode,buf_size,channels);
    117117  o->of       = new_fvec(1, channels);
    118118  o->bt       = new_aubio_beattracking(o->winlen,channels);
Note: See TracChangeset for help on using the changeset viewer.