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 a83038a354ac5624d2e49e9274d09b9ae049f1e1..8242bf9ddfb418a3894ff8642bc6513df4d50457 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