Forums > MaxMSP

Header change and 8-channel files

March 10, 2007 | 12:27 pm

I’ve got this 8-channel aif file lying around which got corrupted while
ending the recording due to a crash in MaxMSP. The data is there, the
file is around 2 GB. My experience is that it’s possilble to rescue such
files with SoundHack by manually applying the right header data to the
file, with the Header Change function. But it’s not posible in this case
since SoundHack only supports 1, 2 and 4 channel files. Any ideas/help
appreciated.

/Jakob
__________________________________

http://www.sonicEscape.net
http://www.myspace.com/sonicescape
__________________________________


March 10, 2007 | 1:09 pm

On 10 mars 07, at 13:27, Jakob Riis wrote:

> I’ve got this 8-channel aif file lying around which got corrupted
> while
> ending the recording due to a crash in MaxMSP. The data is there, the
> file is around 2 GB. My experience is that it’s possilble to rescue
> such
> files with SoundHack by manually applying the right header data to the
> file, with the Header Change function. But it’s not posible in this
> case
> since SoundHack only supports 1, 2 and 4 channel files. Any ideas/help
> appreciated.

You may try the openraw message of sfplay~. Have a look to the "p
raw_data_and_force_header" subpatcher of the sfplay~’s help file.

ej


March 11, 2007 | 10:46 pm

>You may try the openraw message of sfplay~. Have a look to the "p
>raw_data_and_force_header" subpatcher of the sfplay~’s help file.
>

And it works, great. Thanks for the hint. :-)
/J


August 24, 2009 | 6:30 am

I’ve got a similar AIFF file recovery problem. I tried the message, but I’m not sure if I’m using it right.

I had an [sfrecord~ 11] running in my patch when the external HD I was recording to accidentally had a firewire cable come unplugged.

I tried opening the file with [sfplay~] sending the messages , , , but all I get is white noise output on some of the 11 channels (silence on the others). I’ve never used the message before, so I’m not sure if I’m using it right or need to do something with the offset.

Any thoughts? Or perhaps, any other methods of recovering this file you think I should try?

Thanks!


August 25, 2009 | 9:22 pm

maybe BIAS-PEAK-Pro can do this ?

bd


September 2, 2009 | 4:39 pm

I use soundhack for these things, never failed…


September 2, 2009 | 5:09 pm

Funny that this pops up now that I just ported my code that fixes these files to intel, and that I happen to look into the awkward forums…

I often record multi-channel files with sfrecord, and Max often crashes, leaving a file that says "I’m empty". So I did write the aiff header fixer that handles that. Source code and an intel-compiled command-line executable is attached, but of course I give no guarantee that it won’t corrupt your files, eat your harddisk, and poison your kittens…

Cheers…
…Diemo


September 2, 2009 | 5:50 pm
Diemo Schwarz wrote on Wed, 02 September 2009 13:09
Funny that this pops up now that I just ported my code that fixes these files to intel, and that I happen to look into the awkward forums…

Great timing for me, I’ll try your tool out later today–hopefully my kitten survives!

stefantiedje wrote on Wed, 02 September 2009 12:39
I use soundhack for these things, never failed…

I’ve heard that works, but I hardly ever am lucky enough to be using the right number of channels to try this out. Hopefully I didn’t screw up my file with soundhack already.

Thanks for the help guys. I had already given up on that file since one of my band mates recorded a two channel version (two band members mixdowns per channel) that was passable–good thing I haven’t deleted the file yet so I can try Diemo’s software.


June 26, 2010 | 11:11 am

For future crashes of sfrecord~, I put up the intel-compiled aiff file length fixer commandline program and the source code on http://diemo.concatenative.net/, in the software section.



zlp
July 6, 2010 | 12:28 am

Big huge thanks for this. I just fixed a corrupted multichannel AIFF with it. You saved me hours of reworking my file!


Viewing 10 posts - 1 through 10 (of 10 total)