[pyddr-discuss] Some useful scripts
Joe Wreschnig
piman at debian.org
Tue Feb 3 14:21:00 EST 2004
On Tue, 2004-02-03 at 10:23, Andrea Landaker wrote:
> Greetings, and thanks for a wonderful DDR program! I've tried lots of them,
> but I like pyDance the best. :-)
>
> Just thought I'd share some scripts that I've found useful when adding new
> songs to my collection. In each case, you should run them from your .pydance
> directory (or wherever you keep your songs). I wrote these scripts for
> Linux, but you could probably run them under cygwin, too. Maybe someone has
> already submitted something like this, but I couldn't find it. :-)
>
> If you've got a bunch of MP3s in your collection that you want to convert to
> OGGs, you can use this script to convert them all quickly (I haven't noticed
> any timing issues or problems with doing this). This will both convert the
> audio files and change the filename in the step file.
>
> find -name "*.dwi" -exec perl -pi -e 's/\.mp3/\.ogg/g' '{}' \;
This isn't technically needed, since (from what I can tell) DWI doesn't
use that information anyway, and I know pydance doesn't. It just looks
for music files in the same directory.
> find -name "*.sm" -exec perl -pi -e 's/\.mp3/\.ogg/g' '{}' \;
> mp32ogg --delete .
>
> Many times people will include both a DWI and an SM file with the same steps
> for the same song, and it shows up twice in pyDance. This little script
> deletes all the DWI files where there is an SM file with the same name:
>
> find -type f -name "*.sm" -print0 | sed -e 's/\.sm/\.dwi/g' | xargs -0
> --verbose -i ls -Q "{}" 2> /dev/null | xargs --verbose -p -n 1 rm
Thanks! I've added this one to the FAQ.
--
Joe Wreschnig <piman at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://icculus.org/pipermail/pyddr-discuss/attachments/20040203/c5be553c/attachment.pgp>
More information about the pyddr-discuss
mailing list