SMUS
application/octet-stream
Magic Bytes
Offset: 0
46 4F 52 4D 53 4D 55 53
SMUS (IFF Simple Music) is a music sequence file format developed by Electronic Arts as part of the Interchange File Format ecosystem. This format was primarily utilized to store musical scores and note data for early Commodore Amiga computer software and legacy video game titles. As an obsolete standard, it has been superseded by MIDI and modern digital audio formats but remains significant for retro-computing emulation and digital media preservation efforts.
Validation Code
How to validate .smus files in Python
Python
def is_smus(file_path: str) -> bool:
"""Check if file is a valid SMUS by magic bytes."""
signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x53, 0x4D, 0x55, 0x53])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .smus files in Node.js
Node.js
function isSMUS(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x53, 0x4D, 0x55, 0x53]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsSMUS(data []byte) bool {
signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x53, 0x4D, 0x55, 0x53}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/smus
curl https://filesignature.org/api/v1/smus