# BATD expects one or more directory names as arguments
#
# example: BATD 01 33 15  
#
# will run three complete directories through csound.
# BAT stands for batch
# D stands for the csound flag d (no display)
#
# BATD uses the batches MAKELIST to produce list of one subdirectory
#      and BBKING to visually separate the text output of the sequentially
#      running orchestras

foreach folder ($*)
cd ..
BATCH/MAKELIST $folder
cd $folder
../BATCH/CSD < $folder.dir
rm $folder.dir
cd ../BATCH
end

# jpg 4/94


