Parse & validate
The uploaded file is parsed according to the source keyboard's proprietary MIDI-based format spec. For Yamaha, this covers CASM chunks, SFF1/SFF2 style structures, and OTS data. For Korg, the Pa-format arrangement file is decoded. For Ketron, the AKS container is unwrapped. Validation checks that all required sections (Main A/B, Fill, Intro, Ending) are present and structurally intact before any conversion begins.