Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:SEQ and SEP

From ReverseEngineering.wiki
Format
Platforms Platform:PlayStation
Magic 70 51 45 53 ("pQES") at 0x0
Extensions .SEQ, .SEP
Endianness big
On this wiki Facts · Code · Notes · Topics

Sony's PlayStation MIDI-like sequence files: .SEQ (one sequence) and .SEP (several), both starting with the ID "pQES"; the SEQ header has version 1 as 32 bits, the SEP header version 0 as 16 bits, and the score is standard MIDI-like events ending in FF 2F 00.

Overview

Sequences drive the instruments of a Format:VAB bank through libsnd. They are close to Standard MIDI Files without the chunk wrappers. Both formats share the ID "pQES" ("SEQp" byte-reversed), so tell them apart by the version field.

SEQ

Offset Size Meaning
0x00 4 "pQES"
0x04 4 version, 1
0x08 2 resolution (ticks per quarter note, e.g. bytes 01 80 in the psx-spx example)
0x0A 3 tempo (microseconds per quarter note, 24 bits)
0x0D 2 time signature numerator and denominator exponent
0x0F score: delta times and MIDI events with running status; ends with FF 2F 00 (end of track)

SEP

SEP starts with "pQES" and a 16-bit version 0 at 0x04, then consecutive sequences, each with a 16-bit sequence id, the resolution, tempo and time signature as in SEQ, a 32-bit data size and the score ending in FF 2F 00.

Evidence & references

  • psx-spx, "CDROM File Audio Sequences SEQ/SEP (Sony)" (docs/cdromfileformats.md in the psx-spx mirror). Unverified: the meaning of the tempo and time-signature bytes (24-bit microseconds per quarter note, numerator and power-of-two denominator as in MIDI) is inferred from the MIDI similarity, not stated in the source.