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

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

by peiman :: Rate this Message:

Reply to Author | View in Thread

Hi,

I had in mind for example to make a CSD that time stretches every file in a given directory. The problems that arise are this:

1- the length of the out-file needs to be variable according to the file's length.
2- the files can be specified as *.aiff in a given folder (on unix) but how can csound understand this and repeat the process for every file?
3- the output file needs to be generically renamed.

I was thinking of using csound~ to build a simple application with max/msp, but after thinking I realize it wouldn't be that simple as the only way to do it is for max to: access the CSD, recognize and change particular variables and save the CSD as a temporary file for each render (I might give it a try). It would be nice if csound opcodes could be integrated into a shell script (I guess they can, I just don't know how!). So far I cannot work out how to call csound api from within python (on os x).

Thanks
Peiman
Peiman


     
Victor Lazzarini wrote:
You might not need to do that. Can you give an
example of what you want to do?

>
>
> Thanks Andres,
> Do you know an online article or tutorial about using the
> api with python?
>
> Best
> Peiman
>
>
> Andres Cabrera wrote:
> >
> > Hi,
> > You could use the csound api from python, and pass the
> > filenames and  other parameters as macros using
> >
> > --omacro:XXX=YYY
> >
> > Cheers,
> > Andrés
> >
> > peiman wrote:
> >> Hello,
> >>
> >> I was wondering if there is any way to batch process
> several audio-files >> with the same csound code? I have
> been studying the manual all day and >> cannot think of a
> way to do this. Would it for instance be possible to >>
> add >> an extra argument to the standard csound terminal
> command that will >> replace
> >> a particular variable defined in the score or orchestra
> (i.e. a file >> name)?
> >>
> >> Many Thanks
> >> Peiman
> >>
> >
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to
> > csound-unsubscribe@lists.bath.ac.uk
> >
>
> --
> View this message in context:
>
http://www.nabble.com/Batch-processing-audio-files-with-csound(-)-tf4040859.html#a11479974
> Sent from the Csound - General mailing list archive at
> Nabble.com.
>
> --
> Send bugs reports to this list.
> To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk
--
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

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