Version 1.0
A published format for storing one category — BASS, FX, KEYS, LEAD, PAD, PERC or WIND — inside an ESQ-1 or SQ-80 Program, in three bits of the Program record that none of the nine operating system versions we checked reads. Which versions, and how they were checked, is at the end.
Because the tag is part of the Program data and not an entry in a database, it goes wherever the Program goes: through a SysEx dump, into a .syx file, into the instrument's Internal memory and onto a cartridge, and back out unchanged. There is nothing to keep in step and no sidecar file to lose.
Free to implement in any software, commercial products included. No permission needed and nothing to sign. Keep the values below as they are and Programs stay readable between tools, which is the only thing that makes a tag worth writing in the first place: it has to survive the journey to somebody else's machine.
The format was introduced by Unsoniq, an editor and librarian for the ESQ-1, which reads and writes it. It is not owned by Unsoniq, and a tagged Program is an ordinary Program everywhere else — it loads and plays normally on any ESQ-1 or SQ-80 and in any editor, because the bits it uses are thrown away by the instrument before it looks at the value.
A Program carries at most one tag. Value 0, meaning no tag, is the normal state: an untagged Program normally reads as 0, and almost every Program in circulation has no tag. Software should treat that as ordinary rather than as something waiting to be filled in.
Byte numbers are offsets in the 102-byte decoded Program record, counting the first byte as 0.
value = ((byte90 >> 6) & 1) | (((byte90 >> 7) & 1) << 1) | (((byte95 >> 6) & 1) << 2)
byte90 = (byte90 & 0x3F) | ((value & 1) << 6) | ((value & 2) << 6)
byte95 = (byte95 & 0xBF) | ((value & 4) << 4)
All eight values are in use. They are fixed and will not be renumbered. How they are ordered on screen is up to the software; Unsoniq lists them alphabetically and puts the untagged Programs last, under NONE.
Writing. Change the three tag bits and nothing else. The rest of bytes 90 and 95 — the filter Q including its high-resolution bit 5, GLIDE, Osc Wave Reset — must come through untouched. To remove a tag, write value 0.
If your software rebuilds a Program from its parameter values rather than editing the record in place, copy the three tag bits across from the original. This is the one place a tag is easily lost, and it is lost silently.
Reading. Read the value as above; 0 is no tag, 1 to 7 are the tags in the table.
When you compare two Programs to see whether they are the same sound, mask the tag bits out first — byte 90 with & 0x3F, byte 95 with
& 0xBF — so that two identical sounds carrying different tags are not reported as different.
ROM cartridges cannot be written, so their Programs keep whatever they were made with, which is almost always no tag.
Program data is sent as nibbles, low nibble first: Program byte n becomes two data bytes, the low four bits and then the high four, each sitting in bits 0–3.
n is the MIDI channel minus one. There is no checksum anywhere in these messages, so a byte damaged in transit produces a wrong tag — or a tag on a Program that never had one — with nothing to catch it. Worth keeping in mind if you read tags from files of unknown provenance.
The same goes for an older Program that happens to have one of these bits set: it will show a tag nobody chose. Clearing it — writing value 0 — is harmless, because the instrument never reads these bits.
Counting data positions from the first byte after the header:
- byte 90 is at positions 180 and 181; tag bits 0 and 1 are bits 2 and 3 of position 181
- byte 95 is at positions 190 and 191; tag bit 2 is bit 2 of position 191
- in an All Program Dump, Program p from 0 to 39 begins at position p × 204
A worked example. Take a Program with RES 18 and GLIDE 5, so byte 90 is 0x12 and byte 95 is 0x05, and tag it PAD, which is value 5.
Value 5 is binary 101, so tag bit 0 is set, bit 1 is clear and bit 2 is set:
byte90 = (0x12 & 0x3F) | (1 << 6) = 0x52
byte95 = (0x05 & 0xBF) | (1 << 6) = 0x45
The instrument still reads RES as 0x52 & 0x3F = 18 and GLIDE as 0x45 & 0x3F = 5, exactly as before.
Reading the tag back gives 1 | 0 | 4 = 5, which is PAD.
In a dump, 0x52 goes out as 02 at position 180 and 05 at position 181, and 0x45 as 05 at position 190 and 04 at position 191. Position 181 is binary 0101, so its bit 2 is set and its bit 3 is clear; position 191 is binary 0100, so its bit 2 is set. Tag value 5 again.
The test these bits had to pass is that no ESQ-1 or SQ-80 operating system reads them, and every version we have been able to check passes it. That something is inaudible is not good enough; a bit that is read for anything at all is a bit that will eventually matter to somebody.
In the code. Disassembly of ESQ-1 1.7, 2.0, 2.2, 3.1, 3.5 and 3.53, and SQ-80 1.3, 1.7 and 1.8: the RES byte is only ever read as LDB / ASLB / ASLB, which shifts bits 6 and 7 out before the value is used; byte 95 is only tested for bit 7 and then masked with ANDB #$3F. Front-panel edits keep whatever is outside the value, masking with $E0 for RES and $C0 for GLIDE, so editing Q or GLIDE on the instrument leaves the tag alone.
In emulation. The same behavior on every version above, with ESQ-1 2.0 checked in code only.
On hardware. On OS 3.1, setting bit 6 of byte 95 does not change the glide time. On OS 3.5, a Program with all three bits set is byte-identical after editing Q and GLIDE on the panel and writing it back.
Other versions exist that we have not seen. If you find one that reads any of these three bits, write and it will be said here.
Corrections, questions, and news of an implementation are all welcome at info@unsoniq.com.
This website is operated by Animaion Ltd, registered in England and Wales, company number 14397897.
Registered office: Kemp House, 124 City Road, London, EC1V 2NX, United Kingdom.
Contact: info@unsoniq.com
Ensoniq, ESQ-1, ESQ-M and SQ-80 are trademarks of their respective owners.
Unsoniq is an independent product, not affiliated with, endorsed by or sponsored by any of them.