Mercurial > hg > python-tutorial-ssw2012-output
changeset 7:1ef0ce23bf78
Write tempo estimator main program
author | Chris Cannam |
---|---|
date | Mon, 08 Oct 2012 15:08:30 +0100 |
parents | 05fe04002c59 |
children | 99038dfea9e5 |
files | estimate_tempo.py |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/estimate_tempo.py Mon Oct 08 15:08:30 2012 +0100 @@ -0,0 +1,13 @@ + +import tempo_estimator as est + +import sys + +filename = sys.argv[1] + +print "Estimating tempo of", filename + +tempo = est.estimate_tempo_of_file(filename) + +print "Tempo is", tempo +