{"success":true,"data":{"ext":"pat","name":"Advanced Gravis Ultrasound patch file","description":"Advanced Gravis Ultrasound patch file (PAT) is a sound bank format developed for the Advanced Gravis Ultrasound hardware and its accompanying software ecosystem. It stores instrument patches and sample data used to define playable sounds for music composition, playback, and game audio on compatible systems. The format is largely legacy and is generally safe to open, though support is limited in modern audio tools and emulators.","mime":[],"risk_level":"Safe","signatures":[{"hex":"47 46 31 50 41 54 43 48","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"47 50 41 54","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_pat(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PAT by magic bytes.\"\"\"\n    signature = bytes([0x47, 0x46, 0x31, 0x50, 0x41, 0x54, 0x43, 0x48])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isPAT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x47, 0x46, 0x31, 0x50, 0x41, 0x54, 0x43, 0x48]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsPAT(data []byte) bool {\n    signature := []byte{0x47, 0x46, 0x31, 0x50, 0x41, 0x54, 0x43, 0x48}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}