Writes a Z354Sound to a binary .ats file in ATS Type 2 (amplitude, frequency, phase). The header is 10 doubles, followed per frame by a time value and (amp, freq, phase) per partial.
ATS files are little-endian, while SuperCollider's putDouble is big-endian. The writer therefore emits big-endian to a temporary file, reads it back, reverses each group of eight bytes, and writes the final file.