Batch Import of Raw Data for file conversion.
Posted: Fri Nov 25, 2011 5:52 pm
I am building a Binaural Synthesis engine in Max/MSP for use with a 3D Virtual Audiory Space built in C++. To make this work I've created a convolution filter that takes impulse responses.
I'm using the MIT KEMAR library of HRIR measurements for the basis of my convolution, but I'm running into a problem.
The impulse responses are stored as 16bit headerless .dat files. Which is great because there's no extra unwanted information in there. but Max will not import .raw or .dat files. It cannot parse the file properly.
So I've resigned myself to having to convert all of my .dat impulse responses to .wav and read them in that way. Audacity can do this just fine, the problem is while there is a batch export, there is no batch import for raw data files. I'll have to import every file manually, and there are over 500 of them. Audacity won't let me shift-click or ctrl-click in the import raw data dialog.
Is there a way to write a script that will help me with this? or a workaround native to audacity? I could write a script that would do the conversions in supercollider for me, but the time it would take me to write, test, refactor, test again, and finalize a script there would probably take me longer than manually importing every file. I'm stuck....
I'm using the MIT KEMAR library of HRIR measurements for the basis of my convolution, but I'm running into a problem.
The impulse responses are stored as 16bit headerless .dat files. Which is great because there's no extra unwanted information in there. but Max will not import .raw or .dat files. It cannot parse the file properly.
So I've resigned myself to having to convert all of my .dat impulse responses to .wav and read them in that way. Audacity can do this just fine, the problem is while there is a batch export, there is no batch import for raw data files. I'll have to import every file manually, and there are over 500 of them. Audacity won't let me shift-click or ctrl-click in the import raw data dialog.
Is there a way to write a script that will help me with this? or a workaround native to audacity? I could write a script that would do the conversions in supercollider for me, but the time it would take me to write, test, refactor, test again, and finalize a script there would probably take me longer than manually importing every file. I'm stuck....