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
1616 return aubio_onset_kl
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
2628 def 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