History

./python/demos/demo_timestretch{,_online}.py: fix usage string

Paul Brossier committed 10 years ago

Commit eeb45381 parent 07364a52 files · +2 −2Browse files

Showing the changes to python (2 of 2 files). Show all

Unified · Split

2 files
  1. python/demos/demo_timestretch.py +1 −1
  2. python/demos/demo_timestretch_online.py +1 −1
python/demos/demo_timestretch.py+1−1
@@ -17,7 +17,7 @@ hop_s = win_s / 8 # 87.5 % overlap · 16 unmodified lines
17warmup = win_s // hop_s - 117warmup = win_s // hop_s - 1
18 18
19if len(sys.argv) < 3:19if len(sys.argv) < 3:
20 print("Usage: %s <source_filename> <output_filename> <rate> [samplerate]".format(sys.argv[0]))20 print("Usage: {:s} <source_filename> <output_filename> <rate> [samplerate]".format(sys.argv[0]))
21 print("""Examples:21 print("""Examples:
22 # twice faster22 # twice faster
23 {0} track_01.mp3 track_01_faster.wav 2.023 {0} track_01.mp3 track_01_faster.wav 2.0
python/demos/demo_timestretch_online.py+1−1
@@ -17,7 +17,7 @@ hop_s = win_s / 8 # 87.5 % overlap · 16 unmodified lines
17warmup = win_s // hop_s - 117warmup = win_s // hop_s - 1
18 18
19if len(sys.argv) < 3:19if len(sys.argv) < 3:
20 print("Usage: %s <source_filename> <output_filename> <rate> [samplerate]".format(sys.argv[0]))20 print("Usage: {:s} <source_filename> <output_filename> <rate> [samplerate]".format(sys.argv[0]))
21 print("""Examples:21 print("""Examples:
22 # twice faster22 # twice faster
23 {0} track_01.mp3 track_01_faster.wav 2.023 {0} track_01.mp3 track_01_faster.wav 2.0

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t