I think at least the big DATA statement is defining the words like ENV and AD4 that were music 5's generator names; they then walk though the array one character at a time later to recognize the names, so there the 36-bit business shouldn't matter. In PASS3, they're packing 3 12-bit samples in a word, but that's easy to undo -- I'd just output the raw samples.