sfrecord~ crashing Max/MSP
I need to record 24 hour long mono soundfiles for an installation I’ll be premiering in a few weeks. Right now, Max/MSP is crashing when I tell sfrecord~ to record longer than 13 hours. I know this has to do with the header limitations on AIFF/WAV files resulting in their 4GB limit. HFS+ should not be an issue and I’m using Max 5 in Snow Leopard. I’ve searched the forums and docs, and I see support in sfplay~ for different header configurations, but nothing in sfrecord~ docs about configuring headers for raw recordings or addressing the file size issue.
Are there any formats supported by sfrecord~ that will solve this problem and give me >4GB soundfiles? (or is there a way to tweak sfrecord~ params to get this result?). At worst, I can record in 12 hr chunks, but that isn’t an ideal solution. I’ve included a test patch to show the crash. Many thanks!
----------begin_max5_patcher---------- 971.3ocyXtsaihCF.95jmBKzb0ntH7ALvbwb5l4gXznUtfSCSA6HiSSaG09r uFaHMYCsItCAkJUGv1X+6u+ivelOK3Z487l.vm.+DLa1elOalsq1Nl0c+rfZ 184UrF6zBD7Mxq+cvUtgtioDrZtcj0ooQs+kQ5GUyuWaGhsVKWwzZE3qsW19 H.X+rDqqKEUbsc8gccZlc9xRwM+qhmqcxGllDFcE.AaagPp8mzvHvudYgjq0 8qDoq2kkEEbwtq8BoP2T9nUpgQlkw0s6Y0Orh61uffq14+s6RYg8HYfv+fB1 YE2xguoJYU8in3MZoh2AzNhZE0q4J29.IfeY69o4y6aeZ9Umn9HWVWyE5CPN mkuDrPppYZPth0rj2.LW9YxO9dHfId.rg8.PKA5Mb1s.8RNPw1z+.l9Wo32Y VW6H1m+K8aQUofmKWKr6C1SkHLIJjBMVJwFkGwoBsJTR1qpIiFRugBwDBIAM fVI5MTKiHgyqJyusEUFM7JuMlINy3DXXZTBMC6.QFNhlYPCB4GMvgvLDljdH MfYSNMXJMvbRkpByY1avjYN5Fd3LPhCSvQIIj1qSOGzIdZnyRUCPt3Ep.zk0 7PfKLPC3FEmo4JiyFSXDWvlxpJfVYcPqY2xAr8mhwIFrnrxzunv4cZl18gC5 gR7UADi25gRy1wCkhGKOTHbbodMuogcC+.pKWwE.sIBbXASyFzRD8FgpvosG 6z311DWrJ5qh.uStLTBkrolKr0dSEnMKL0xCJcJnR5jSkxEK7kKYVf3hpSSm BrjLtXoqjjAJra+QN03HnLqgRJtsMN5HUqg7jHksAYAAWyLYXFBNibb88q5c qIyGMEkZq40WqEDx44DYCtPssnniZubjZYQuMuFrD1Ix4xk4C7A36kTX6OT3 Qri96I0vXhNoXJNh7tLqvQHKebtaYQgsEQE6UXnLeIyjmKeC6Ne4RBt2AyjI GMEAmgSje061DIw5OgQVSjyMLnSRz37Gxq3OCHDugRW7WKYhyFmPLuAjZJuQ XN4ChJx4Hq9y8KpYms0quU17zCxUvm6l2e17ZYAe2o8Z.xjfeQkjMblKHdbI E+wBV9ydWNblCLtB+Hw8sG4Ek14bfGQOflEtDHO6+WWqSAiIdklcLr3OM0n8 QsuY6+6yUZOKs8uOtZjqU48ae26VAd43TXxjTJX5RoXm4.2aNG5fWWVrRZJk pSDbe2tCTcmpDkdwIQIWbRT7IHQnzIUjPmhdqsfwITlfmhhC+JhTz4QjHWbF SP5kmHc4ED.cJTpsre.b5jI3YFSladZ9+wstJM. -----------end_max5_patcher-----------
I could be wrong, but I think SDII files are the only files on OS X that you can record longer than 4GB.
I tried with the available formats that are listed in the docs, so AIFF, WAV, .AU (which is SND, right?), and raw/.data and all crash Max. SDII is listed as an option in the old max 4.6 docs, but not the Max 5 ones. I tried opening a test.sd2 file and recording with a 14hr length and it still crashed. Part of the frustration is that Max actually completely crashes rather than giving an appropriate error message and just not running the patch.
An addendum to my earlier post – Anyone know of any 3rd party externals that record to disk and support the RF64 specification to allow >4GB files? Thanks!
|pmt4u wrote on Mon, 05 October 2009 23:24|
|SDII is listed as an option in the old max 4.6 docs, but not the Max 5 ones. I tried opening a test.sd2 file and recording with a 14hr length and it still crashed.|
Hmm, I hadn’t noticed that I guess. Do you know if it worked recording an sd2 under the 4GB limit?
Yep, records fine with a 12 or 13 hr (i.e., <4GB) request. At 14hrs and/or >4GB it crashes as with the other files types. I played the sd2 file back in Peak and it is a valid sd2 file, so it is supported. The funny thing is that you can open a file with any weird extension and it still crashes at larger than 4GB. I tried recording to test.foo and the same thing happened (guessing it defaults to using an AIFF header or something if it doesn’t recognize the extension).
Forums > MaxMSP