Changeset bd973b0


Ignore:
Timestamp:
Mar 26, 2017, 5:49:11 PM (7 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:
b31a91c
Parents:
7b711b3
Message:

src/onset/onset.c: improve default parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onset.c

    r7b711b3 rbd973b0  
    296296    aubio_onset_set_delay (o, 4.6 * o->hop_size);
    297297    aubio_onset_set_threshold (o, 0.15);
    298     o->apply_compression = 1;
    299     o->lambda_compression = 1.;
     298    aubio_onset_set_awhitening(o, 1);
     299    aubio_onset_set_compression (o, 1.);
    300300  } else if (strcmp (onset_mode, "phase") == 0) {
    301301    o->apply_compression = 0;
    302     aubio_onset_set_adaptive_whitening (o, 0);
     302    aubio_onset_set_awhitening (o, 0);
    303303  } else if (strcmp (onset_mode, "mkl") == 0) {
    304304    aubio_onset_set_threshold (o, 0.05);
     305    aubio_onset_set_awhitening(o, 1);
     306    aubio_onset_set_compression (o, 0.02);
    305307  } else if (strcmp (onset_mode, "kl") == 0) {
    306308    aubio_onset_set_threshold (o, 0.35);
     309    aubio_onset_set_awhitening(o, 1);
     310    aubio_onset_set_compression (o, 0.02);
    307311  } else if (strcmp (onset_mode, "specflux") == 0) {
    308     aubio_onset_set_threshold (o, 0.4);
     312    aubio_onset_set_threshold (o, 0.25);
     313    aubio_onset_set_awhitening(o, 1);
     314    aubio_onset_set_compression (o, 20.);
    309315  } else if (strcmp (onset_mode, "specdiff") == 0) {
    310316  } else {
Note: See TracChangeset for help on using the changeset viewer.