« Return to Thread: Batch processing audio-files with csound(?)

Re: Batch processing audio-files with csound(?)

by sand-6 :: Rate this Message:

Reply to Author | View in Thread

On Sat, 2007-07-07 at 12:07 -0700, Jacob Joaquin wrote:
> I've optimized it a bit by following Andres Cabrera's suggestion using the
> --omacro flag.  This new command removes a few very unnecessary steps,
> including generating multiple files then deleting them.  It's also much
> easier to read.
>
>
> for i in `ls *.aif | sed 's/.aif//'` ; do csound -d -A
> --omacro:theFile=$i.aif -o$i.batch.aif batchfx2.csd ; done
>

That's neat, but you don't need to use "ls" or "sed" to trim the file
name...

for i in *.aif; do csound -d -A --omacro:theFile=$i -o${i%.*}.batch.aif
batchfx2.csd ; done

--
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@...

 « Return to Thread: Batch processing audio-files with csound(?)