Exit   

graj


Smart Bash script driving SoX player - treat for audiophiles working on text konsole. Allow to play audio files and subsets of files from playlists and directories in any order!
Supported formats are: wav, aiff, flac, mp3, ogg and text lists like m3u and cue - no matter under what operating system were created.

Micro manual


Installation

Download tarball graj-0.84.tar.gz to disk and check it's hash sum by typying command:
md5sum graj-0.84.tar.gz
graj-0.84.tar.gz 95f6713906ab09a29eb4caf26df038b1
If md5 sum is identical like in line above than unpack this tarball:
tar -xf graj-0.84.tar.gz
Next enter to just created directory and copy graj script to eg. /usr/local/bin:
cd graj-0.84
sudo cp graj /usr/local/bin
It is important to copy this script into somewhere place included in PATH environment variable - type command:
echo $PATH
to print possible locations.


Configuration

If you use default ALSA sound device - nothing is needed to configure script and you can start using it. Otherwise create ~/.graj.cfg configuration file and write sound system and sound device definitions into it - eg. for 4Front Technologies OSS drivers and the 2'nd sound device wanted to play:
DRV=oss         
DEV=/dev/dsp1

If you want to play audio files recursively from subdirectories add the line below:
REK=on          


Examples of using

To play all files in current directory simply type command:
graj

To play 7'th, 2'nd, 3'th and 4'th file from list1.m3u and next whole list2.m3u reverse order:
graj list1.m3u 7 2-4 list2.m3u 0-1

To play song.wav twice - the 2'nd play on other sound device:
graj song.wav DEV=hw:2,0 song.wav


Integration with Midnight Commander

Very popular manager is able to play graj script's supported files by hitting ENTER or mouse (double) clicking! It requires proper entries in MC's configuration file (eg. ~/.config/mc/mc.ext in Slackware Linux). There is mc.ext file from my Linux ready to use in downloadable tarball.


Notes

The license of using this graj script and downloadable package is free of charge for non commercial targets only! More informations are included in downloadable tarball.


Links

SoX home page: sox.sourceforge.net  
GNU Bash home page: www.gnu.org/software/bash

∗∗∗