./python/demos/demo_timestretch{,_online}.py: fix usage string
authorPaul Brossier <piem@piem.org>
Thu, 18 Aug 2016 15:23:19 +0000 (17:23 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 18 Aug 2016 15:23:19 +0000 (17:23 +0200)
python/demos/demo_timestretch.py
python/demos/demo_timestretch_online.py

index 8569a44..136dbd9 100755 (executable)
@@ -17,7 +17,7 @@ hop_s = win_s / 8 # 87.5 % overlap
 warmup = win_s // hop_s - 1
 
 if len(sys.argv) < 3:
-    print("Usage: %s <source_filename> <output_filename> <rate> [samplerate]".format(sys.argv[0]))
+    print("Usage: {:s} <source_filename> <output_filename> <rate> [samplerate]".format(sys.argv[0]))
     print("""Examples:
     # twice faster
     {0} track_01.mp3 track_01_faster.wav 2.0
index e682e8e..d2e22d5 100755 (executable)
@@ -17,7 +17,7 @@ hop_s = win_s / 8 # 87.5 % overlap
 warmup = win_s // hop_s - 1
 
 if len(sys.argv) < 3:
-    print("Usage: %s <source_filename> <output_filename> <rate> [samplerate]".format(sys.argv[0]))
+    print("Usage: {:s} <source_filename> <output_filename> <rate> [samplerate]".format(sys.argv[0]))
     print("""Examples:
     # twice faster
     {0} track_01.mp3 track_01_faster.wav 2.0