Nyquist does not currently read mp3s. I would suggest that you use
Nyquist rather than Python to call a conversion program using Nyquist's
SYSTEM function. Then you can operate on the file and delete it, again
If you really want to call Nyquist from the command line, that's
possible, but the only arguments you can pass in are files to load, so
to pass arbitrary arguments, you need to write the arguments into
expressions in a file that can be loaded as XLISP source.
As for startup overhead, here's a measurement on my MacBook Pro starting
nyquist and loading a file that calls (EXIT). (Probably, the files are
cached so this is not a cold start).
On 7/14/11 3:56 PM, Alex Ryu wrote:
> I have two questions - first, is it possible to read mp3's in Nyquist?
> I have not found any documentation about it, so I suspect the answer
> is no, but here's hoping.
> Given that it's not - I need to process many mp3's - so many that I do
> not have the space to batch-convert them (using sox) to wav's. What I
> would like to do is (using python, on Windows)
> loop through the files, converting each one (calling sox from python),
> analyzing it using a Nyquist function, and then delete the wav file.
> I have not figured out how to use Nyquist from the commandline in this
> manner, however. Also, is there an expensive Lisp VM start-up period,
> or some such that will hurt performance?
> Thank you for any help