infinity-player

infinite jukebox clone using librosa
git clone https://git.ce9e.org/infinity-player.git

commit
cda5d53b65094798f9f98cbc89610c684ac9b4c7
parent
b9998c25c62960d25d44599f562502614a0b181d
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2017-10-20 18:11
cli help texts

Diffstat

M player.py 12 +++++++++---

1 files changed, 9 insertions, 3 deletions


diff --git a/player.py b/player.py

@@ -1,3 +1,5 @@
   -1     1 "Play an infinite remix of your favorite songs."
   -1     2 
    1     3 from random import random
    2     4 import argparse
    3     5 import gzip
@@ -157,10 +159,14 @@ def plot(R):
  157   159 
  158   160 
  159   161 def parse_args():
  160    -1     parser = argparse.ArgumentParser()
   -1   162     parser = argparse.ArgumentParser(description=__doc__)
  161   163     parser.add_argument('filename')
  162    -1     parser.add_argument('-t', '--threshold', type=float, default=0.5)
  163    -1     parser.add_argument('-f', '--force', action='store_true')
   -1   164     parser.add_argument(
   -1   165         '-t', '--threshold', type=float, default=0.5, help='Between 0 and 1. '
   -1   166         'A higher value will result in fewer but better jumps. (Default: 0.5)')
   -1   167     parser.add_argument(
   -1   168         '-f', '--force', action='store_true',
   -1   169         help='Ignore previously saved analysis data.')
  164   170     parser.add_argument('-P', '--plot', action='store_true')
  165   171     return parser.parse_args()
  166   172