From: kaliko Date: Tue, 8 Dec 2009 00:18:04 +0000 (+0000) Subject: * rename fadio and remove useless dev/debug log. X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=0aadd940e70ee66a6b627e672c25ebb5538086bf;p=mpd-goodies.git * rename fadio and remove useless dev/debug log. --- diff --git a/fadio.py b/mfade similarity index 97% rename from fadio.py rename to mfade index 1053e40..22d2f3a 100755 --- a/fadio.py +++ b/mfade @@ -33,7 +33,7 @@ from lib.mpdutils import mconnect USAGE = """Usage: -fadio.py [time [min|max]] +mfade [time [min|max]] * time in seconds * min|max in percentag @@ -61,8 +61,7 @@ class Sleep(object): self.cli.disconnect() def _consume_sopt(self): - """ - """ + """""" options = sys.argv if len(sys.argv) >1 and sys.argv[1] in ['-h', '--help']: print USAGE @@ -103,6 +102,7 @@ class Sleep(object): sleep(1) def fade(self): + """""" span = float(self.volum - self.mpd_vol) step = span / float(60 * self.tempo) print step @@ -112,7 +112,6 @@ class Sleep(object): print 'Warning: external volume change, aborting!' break vol += step - print step, int(vol) self.cli.setvol(int(vol)) if abs(vol - self.volum) < 1: self.cli.setvol(self.volum)