This is an old revision of the document!
Table of Contents
Assorted Linux Scripts, Tools, Tips and Utilities
.
.
aj-snapshot - Store ALSA and JACK connections state
Download songs of an *.m3u File (mp3 collection)
Make a directory and then do this:
wget -O - http://djcj.org/audio/lam/lam-tracks-2010/lam10.m3u | while read i; do wget -c "$i"; done
(by Ken Restivo - 16. Mai 2011 22:06 - @lau-ml)
.
make a *.wav swing (?)
jackctl - jack control python script
http://www.akjmusic.com/software/
http://www.akjmusic.com/software/jackctl20110317.py
(by Aaron Krister Johnson, 28. Mai 2010 18:16 - @lau-ml)
.
a python script for making seamless loops in samples by cross fading
It uses sox and ecasound for processing and should work with wav, aiff and flac (maybe more).
planned (?): libsndfile support.
http://atte.dk/files/xfade_loop
(by Atte André Jensen, 11. Juni 2010 11:02 - @ lau-ml )
.
convert a Hydrogen drumkit into a SF2 soundfont
conversion examples with mplayer / mencoder
wav to mp3
for F in *.aac; do mplayer -ao pcm:file=$F.wav $F lame -h $F.wav $F.mp3; done
(by Julien Claassen , 25. Dezember 2010 02:37 - @ lau-ml )
.
#!/bin/bash # flac_to_mp3 for f in *.mp3; do lame -v "$f"; done
(James Morris,22. September 2010 11:20)
$ find . -name "*flac" -exec lame -V0 {} \;
(Roger, 22. September 2010 12:52)
Using MEncoder to create DVD-compliant files
convert DV files to DVD compliant
convert sound files with libsndfile
sndfile-convert
.
conversion examples with sox
.
conversion examples with ecasound
.
spaces to underscores
#! /bin/bash # # spaces2underscores.sh echo echo "This command changes all spaces in file names into underscores" echo " for ALL FILES IN THIS DIRECTORY !" echo " Type ENTER to continue or ^C to quit" read dummy for f in *; do oldname=`echo $f |sed 's/ /~/g'` newname=`echo $f |sed 's/ /_/g'` if [ $oldname != $newname ] then echo mv $f $newname mv "$f" $newname fi done
(Marc Groenewegen, 25. September 2010 08:49 )
.
.
Tips
use a proper python shell
(by Torben Hohn, 28. September 2010 01:16 )
ipython is there for quite some time.
and i recently discovered bpython
http://ipython.scipy.org/moin/
http://bpython-interpreter.org/
this is where the fun starts
also help() works nicely on instances.
doctests also pretty much kick ass.