Csound Csound-dev Csound-tekno Search About

Re: Filenames - *.orc|*.sco|*.xxx

Date1999-05-18 04:33
From"Job M. van Zuijlen"
SubjectRe: Filenames - *.orc|*.sco|*.xxx
One way to accomplish this without changing csound (smart programs are
dangerous, I think) is to call csound with a batch (.bat) file that
contains the desired csound command line.  For example, I have a file
called cs.bat, which contains:

	csound -o %1.wav -W %1.orc %1.sco

Calling "cs foo" will bind 'foo' to %1, run csound with foo.sco and
foo.orc and write the result to a .wav file called foo.wav.  

This is also useful if you have various favorite parameter settings,
just create different batch files.  Possibilities are endless.  Almost
like Unix ;-)

Job van Zuijlen

Anders Andersson wrote:
> 
> Hola!
> 
> Wouldn't it be possible to check if the user only specify one filename
> ("foo") at the commandline, and then try to load "foo.orc" and "foo.sco"
> respectively?
> If so, then one could even use "foo" as the default output-filename.
> "foo.aiff", "foo.wav" etc etc..
> 
> This would save alot of typing for some, but still be compatible with the
> "old" way to enter orc and sco names!
>