- commit
- cc4a251aa7e40ba0f71df200ee11d6a1e44dac20
- parent
- eba36ac8db0b4fa49ab7fd11ffa8db44b623d1de
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-07-04 10:05
rm plot
Diffstat
| M | player.py | 13 | ------------- |
1 files changed, 0 insertions, 13 deletions
diff --git a/player.py b/player.py
@@ -144,15 +144,6 @@ def play(buffers, sample_rate, jumps): 144 144 i = 0 145 145 146 146147 -1 def plot(R):148 -1 import librosa.display149 -1 import matplotlib.pyplot as plt150 -1151 -1 plt.figure()152 -1 librosa.display.specshow(R)153 -1 plt.show()154 -1155 -1156 147 def parse_args(): 157 148 parser = argparse.ArgumentParser(description=__doc__) 158 149 parser.add_argument('filename') @@ -162,7 +153,6 @@ def parse_args(): 162 153 parser.add_argument( 163 154 '-f', '--force', action='store_true', 164 155 help='Ignore previously saved analysis data.')165 -1 parser.add_argument('-P', '--plot', action='store_true')166 156 return parser.parse_args() 167 157 168 158 @@ -180,9 +170,6 @@ def main(): 180 170 jump_count, len(buffers) 181 171 )) 182 172183 -1 if args.plot:184 -1 plot(R)185 -1186 173 print('Playing… (Press Ctrl-C to stop)') 187 174 play(buffers, sample_rate, jumps) 188 175