This commit is contained in:
Mark Hills 2011-12-11 19:04:21 +00:00
parent 7145c9ff34
commit c4fe8d7c9f
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ while getopts "fhn" OPT; do
done
shift $((OPTIND - 1))
if [ -n "$1" ]; then
if [ -z "$1" ]; then
usage >&2
exit 1
fi

2
bpm.c
View File

@ -276,7 +276,7 @@ int main(int argc, char *argv[])
nrg[len++] = v;
}
bpm = scan_for_bpm(nrg, len, 72.0, 168.0, 1200, 1200, fdiff);
bpm = scan_for_bpm(nrg, len, 72.0, 168.0, 1024, 1024, fdiff);
printf(format, bpm);
putc('\n', stdout);