# 
#
# Audioflow startup script v0.3 - lun sep 13 19:59:07 ART 2004
#
# This script will start your al-Jwarizmi patches
#
# You can tweak this as wished, but you should know the defaults correspond to
# an already working installation
#
#

PATCH="audioflow"
BINDIR=/usr/local/src/pd/bin/pd # pd main binary
EXTDIR=/usr/local/src/pd/extra # pd externals dir
PATCHDIR=/usr/local/patches/audioflow # pd patches dir
LOGDIR=$PATCHDIR/logs # pd output logs dir

PATHS="-path $PATCHDIR -path $PATCHDIR/abstractions -path $EXTDIR"
LIBS="-lib pdogg -lib playlist -lib linuxjoystick -lib Gem"
EXTRAARGS="-alsa -mididev 2 -audiodev 2 -rt -blocksize 64 -channels 2" # pd startup options

echo "--------------------------" >> $LOGDIR/$PATCH
echo `date` >> $LOGDIR/$PATCH
echo "--------------------------" >> $LOGDIR/$PATCH

$BINDIR $PATHS $EXTRAARGS $LIBS $EXTRAARGS $PATCHDIR/main.pd 2>> $LOGDIR/$PATCH & tail -f $LOGDIR/$PATCH
