fix buffer size settings in new aubiocut
authorPaul Brossier <piem@altern.org>
Sat, 28 May 2005 21:48:06 +0000 (21:48 +0000)
committerPaul Brossier <piem@altern.org>
Sat, 28 May 2005 21:48:06 +0000 (21:48 +0000)
python/aubiocut

index a83038a..8242bf9 100755 (executable)
@@ -93,8 +93,8 @@ options, args = parse_args()
 
 filename   = options.filename
 samplerate = float(sndfile(filename).samplerate())
-hopsize    = options.hopsize
-bufsize    = options.bufsize
+hopsize    = float(options.hopsize)
+bufsize    = float(options.bufsize)
 threshold  = float(options.threshold)
 silence    = float(options.silence)
 mintol     = float(options.mintol)*samplerate/hopsize