{"success":true,"data":{"ext":"csd","name":"Csound music file","description":"Csound music file (CSD) is an XML-based composition file format used by the Csound audio synthesis system, originally created by Barry Vercoe and now maintained by the Csound project and community. It is used to define instruments, score data, and playback settings for algorithmic composition, sound design, and audio synthesis in Csound-compatible tools. The format is generally safe to open, though files from untrusted sources may reference external resources or scripts within a Csound workflow.","mime":[],"risk_level":"Safe","signatures":[{"hex":"3C 43 73 6F 75 6E 64 53 79 6E 74 68 65 73 69 7A","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"7C 4B C3 74 E1 C8 53 A4 79 B9 01 1D FC 4F DD 13","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_csd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CSD by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x43, 0x73, 0x6F, 0x75, 0x6E, 0x64, 0x53, 0x79, 0x6E, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7A])\n    with open(file_path, \"rb\") as f:\n        return f.read(16) == signature","node":"function isCSD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x43, 0x73, 0x6F, 0x75, 0x6E, 0x64, 0x53, 0x79, 0x6E, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7A]);\n  return buffer.subarray(0, 16).equals(signature);\n}","go":"func IsCSD(data []byte) bool {\n    signature := []byte{0x3C, 0x43, 0x73, 0x6F, 0x75, 0x6E, 0x64, 0x53, 0x79, 0x6E, 0x74, 0x68, 0x65, 0x73, 0x69, 0x7A}\n    if len(data) < 16 {\n        return false\n    }\n    return bytes.Equal(data[:16], signature)\n}"},"category":"Audio"}}