History

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

Paul Brossier committed 18 years ago

Commit 862d78f1 parent fabb7cd2 files · +5 −1Browse files

Showing the changes to python (1 of 2 files). Show all

Unified · Split

python/aubio/task/utils.py+3−1
@@ -16,11 +16,13 @@ def get_onset_mode(nvalue): · 15 unmodified lines
16 return aubio_onset_kl16 return aubio_onset_kl
17 elif nvalue == 'mkl' :17 elif nvalue == 'mkl' :
18 return aubio_onset_mkl18 return aubio_onset_mkl
19 elif nvalue == 'specflux' :
20 return aubio_onset_specflux
19 elif nvalue == 'dual' :21 elif nvalue == 'dual' :
20 return 'dual'22 return 'dual'
21 else:23 else:
22 import sys24 import sys
23 print "unknown onset detection function selected"25 print "unknown onset detection function selected: %s" % nvalue
24 sys.exit(1)26 sys.exit(1)
25 27
26def get_pitch_mode(nvalue):28def get_pitch_mode(nvalue):

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t