Changeset 862d78f


Ignore:
Timestamp:
Nov 21, 2007, 12:02:28 PM (17 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:
c7f32b1
Parents:
fabb7cd
Message:

utils.c, utils.py: add specflux onset function

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/utils.c

    rfabb7cd r862d78f  
    174174                                else if (strcmp(optarg,"kl") == 0)
    175175                                        type_onset = aubio_onset_kl;
     176                                else if (strcmp(optarg,"specflux") == 0)
     177                                        type_onset = aubio_onset_specflux;
    176178                                else {
    177179                                        errmsg("unknown onset type.\n");
  • python/aubio/task/utils.py

    rfabb7cd r862d78f  
    1717        elif nvalue == 'mkl'           :
    1818                 return aubio_onset_mkl
     19        elif nvalue == 'specflux'      :
     20                 return aubio_onset_specflux
    1921        elif nvalue == 'dual'          :
    2022                 return 'dual'
    2123        else:
    2224                 import sys
    23                  print "unknown onset detection function selected"
     25                 print "unknown onset detection function selected: %s" % nvalue
    2426                 sys.exit(1)
    2527
Note: See TracChangeset for help on using the changeset viewer.