X-Git-Url: http://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=bin%2Fmfade;fp=bin%2Fmfade;h=61a68f305d166944c8cb6e3ece4a1b361db23cb2;hp=0000000000000000000000000000000000000000;hb=3b6737cd15bf7dab6595cdaade2bf4b3a1f530a5;hpb=ec7480efdd506097843e12353a43e1e4a0e43645 diff --git a/bin/mfade b/bin/mfade new file mode 100755 index 0000000..61a68f3 --- /dev/null +++ b/bin/mfade @@ -0,0 +1,146 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# Copyright (c) 2009,2010,2012,2019 kaliko +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +""" +DOC: + heavily borrowed from perl script mpdtoys and converted to python. + mpdtoys © 2007 Joey Hess + http://kitenet.net/~joey/code/mpdtoys +""" + +import argparse +import sys + +from time import sleep +from os.path import basename + +import musicpd + + +VERSION = '0.2' +DESC = """Fade in/out to over