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
1717 warmup = win_s // hop_s - 1
1818
1919 if 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]))
2121 print("""Examples:
2222 # twice faster
2323 {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
1717 warmup = win_s // hop_s - 1
1818
1919 if 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]))
2121 print("""Examples:
2222 # twice faster
2323 {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