Custom Style Memory (IC21) & .AST Files
Custom style memory: KN7000 IC21, KN6000 / KN6500 IC18, and the .AST files
The KN7000 keeps its 20 CUSTOM styles in the upper 1,920 KB of IC21, the 2 MB flash at
0x96800000: a bank at 0x96820000 of 60 blocks of 32 KB (0x1E0000 bytes). Each of the 20
slots is a custom style together with everything it needs: its four ONE TOUCH SETTING panel
memories, its six performance pads and any user sounds it uses. The owner’s manual (p.120)
describes CUSTOM as 20 styles copied in from COMPOSER MEMORY; the Initial Data Disk resets it to
the factory set (p.137). The KN6000 and KN6500 have the same bank at the same address on their
IC18, written by the same firmware module.
The flash chip itself, its driver and the Initial Data Disk’s other files are on
User Data & the Initial Data Disk. This page is the
bank’s format. Its source is the disassembly’s
kn7000/notes/custom-data-ic21.md
(2026-10-29), with probes in
custom-data-ic21-probes/.
Routine addresses are KN7000 program 941’s. [INFERENCE] marks a reading no traced code fixes.
Besides the factory banks, the tree rebuilds a real unit’s bank, the owner’s own
(below).
The ten factory banks, rebuilt from source
The disassembly repository rebuilds every factory bank that exists byte for byte from typed sources, every style event on its own line:
| image | floppy (MAME softlist) | file | SHA-1 of the bank |
|---|---|---|---|
KN7000 01ctmini.ic21 |
kn7000_flop idd7000 |
01CTMINI.AST |
67b2a0fe8154c4d15557399a86bf0d0b49813ced |
KN7000 01custm1.ic21 |
kn7000_flop custom1 |
01CUSTM1.AST |
4cd5fe37871984a4b470b1a12b835c9bc41f37f5 |
KN7000 02custm2.ic21 |
kn7000_flop custom1 |
02CUSTM2.AST |
6c85b616a9acc3a7ecc1b49a70f138c0d9442086 |
KN7000 03custm3.ic21 |
kn7000_flop custom1 |
03CUSTM3.AST |
d5722a1129134383bf643d20b4e0866c3089fc36 |
KN7000 04custm4.ic21 |
kn7000_flop custom1 |
04CUSTM4.AST |
25822a3ad726df49882cdd0066424600fb70ea14 |
KN7000 01custm5.ic21 |
kn7000_flop custom2 |
01CUSTM5.AST |
11d32c3d293a23a511a76297647758046cd8ccc9 |
KN7000 02custm6.ic21 |
kn7000_flop custom2 |
02CUSTM6.AST |
54f2bac0551a8d43dc1a87fe24a13c545169a326 |
KN7000 03custm7.ic21 |
kn7000_flop custom2 |
03CUSTM7.AST |
e1bdfbbbe78353003af5ed01866be87d799523bb |
KN7000 04custm8.ic21 |
kn7000_flop custom2 |
04CUSTM8.AST |
f4722d93ff3f31c6d8c25f757968d796e4eb57ca |
KN6000 / KN6500 01ctmini.ic18 |
kn6000_flop idd6000 |
01CTMINI.AST |
8c6d62a8afab717a2b59e9242bbf897b01369416 |
The Makefiles make the references from the floppy images, not from a romset: unzip the disk,
extract the .AST with tools/fat12_extract.py, inflate it with tools/ast_file.py, check the
SHA-1. Nothing copyrighted is committed.
make -C kn7000 verify-customdata # the 9 KN7000 banks; part of make gate-kn7000
make -C kn6000 verify-customdata # the KN6000 bank; part of make gate-kn6000
make -C kn7000 verify-customdata-ast # the 9 .AST files rebuilt from the banks (not in the gate)
make -C kn6000 verify-customdata-ast
make -C kn7000 customdata-src # regenerate src/customdata/ (tools/gen_customdata_s.py)
make -C kn6000 customdata-src
| path | what |
|---|---|
kn7000/src/customdata/customdata.inc |
the record macros, one per record kind, every known field named |
kn7000/src/customdata/<image>.s |
the bank: the directory, then per block an include, residue or fill |
kn7000/src/customdata/<image>/SlotNN.inc |
slot NN’s record, fully typed, events one per line |
kn7000/src/customdata/<image>/StaleNN.inc |
a complete older record in free block NN, typed the same way |
kn6000/src/customdata/01ctmini.s, 01ctmini/ |
the KN6000 bank, same macros (--model kn6000) |
kn7000/src/include/panel_memory.inc, voice_record.inc |
one-touch-setting and voice-record macros, shared with the floppy describers |
kn7000/tools/gen_customdata_s.py |
the generator; it models every macro’s bytes and stops on a mismatch |
kn7000/tools/ast_file.py |
.AST inflate (references) and deflate (rebuild) |
kn7000/tools/zlib10_deflate.py |
the firmware’s zlib 1.0.4 deflate, ported to Python |
The directory (block 0)
At boot func_48484499 sets the module status *(0x50001298). When FlashReadAutoselect fails
it sets -1 (no custom flash: every fetcher returns NULL). When the bank does not start with "IK"
it builds an empty directory in the RAM shadow 0x5037A000 (0x6000 bytes of 0xFF, the
signature, all slots {0, 0}, all blocks free but block 0) and programs it with
FlashProgram128Words.
| offset | size | field | read / written by |
|---|---|---|---|
+0x00 |
2 | "IK" |
func_48484499 (check), func_48483F35 (write) |
+0x02 |
20 x 2 | slot: first block (0 = empty), count | func_48483F53 / func_48483F82; setters func_48483F6D / func_48483F9C |
+0x2A |
60 | block map, 1 = allocated | func_48483FB4, set func_48483FC6, clear func_48483FDA |
+0x66 |
0xFF to 0x6000, erased to 0x8000 |
Block b is at 0x96820000 + (b << 15) (func_48483FED); a slot’s record is at its first block.
The allocator func_484843A4 looks for free runs in the map, and the saver func_484857AF writes
the slot descriptor and marks the blocks. In all ten images every slot is used, its block count
is ceil(size / 0x8000), and the map is exactly block 0 plus the slots’ blocks.
The slot record
Built in RAM by the MEMORY -> CUSTOM save func_484854E3 (at 0x5031C000 or INSTALL_SCRATCH
0x502B8000), then programmed to its blocks. All little-endian.
| offset | field | evidence |
|---|---|---|
+0x00 |
u32 record size = 0x100 + the sections |
func_4848403C; func_4848512E sums the sections |
+0x04 |
16-byte style name | func_48484049; written by func_4C021AF8 |
+0x14..+0x44 |
four 16-byte ONE TOUCH SETTING names | func_4848407B …; written by func_4C021B53 |
+0x54..+0x7C |
five {u32 offset, u32 count}: 0x42-byte records |
func_48484153 .. func_48484257; counts from item bitmasks |
+0x7C |
{offset, count} of 0x2C8-byte SOUND EDIT records |
CustomSoundEditRecFetch (0x484845E1) |
+0x84 |
{offset, count} of the 0x48A7-byte custom-sound block |
CustomVoiceRecFetch (0x4844A42F) |
+0x8C |
{offset, size} of the 4 one-touch-setting panel memories |
func_484842D8; record size from func_4C02AD02 (0xA0) |
+0x94 |
{offset, size} of the “TCMP” style container |
CustomStyleBlockFetch (0x48484578) |
+0x9C |
{offset, size} of the “TPAD” pad container |
func_48484332, func_4848435C |
+0xA4, +0xA5 |
first block, block count (as in the directory) | equal to the slot descriptor in all 200 live records |
+0xA6..+0xFF |
RAM residue of the build buffer | [INFERENCE]: debug strings (“TITLE : TT_RVARI”); no accessor reads past +0xA4 |
The sections follow the header in that order with no gap. In the factory sets only one record
has a dependency section: 03custm3 slot 7 carries a custom-sound block, a user drum kit
(“User Kit”; voice names such as “Electric SD”, “Snare Drum 2”, “Silent” for unused keys). The
block is a 0x27-byte header, 128 {program, bank LSB, bank MSB} references and 128 voice
records of 0x8E bytes, the tone generator’s voice-resource unit (VoiceRecFetchBanked,
VoiceSubRecFetch, TgPartLocalEditElemRecPtr), typed by VOICE_HEAD, VOICE_SUB and
VOICE_ELEM.
The block is a TABLE tone (2026-11-06, lane kn7000-research2; spelled by the CSOUND_HEAD macro).
The tone library takes it as the part’s tone record, so the 0x27-byte header is a tone head: the
16-character name, the class +0x10 = 0x40 (TABLE, the class TgNoteOn sends to
TgNoteOnTableTone), the key map byte +0x11 (0..6; the User Kit uses 1), and 21 bytes that no
code traced by 2026-11-06 read (fifteen of them have readers since, below). It is byte for byte the head of 20 of the table flash’s 52 TABLE tones, the kits, Standard
Kit1 among them. TgNoteOnTableTone reads the entry at +0x27 + note * 3, so the 128 references are
one per MIDI note, and it tests the voice record’s +0x0D: bit 0 enables layer 0 and bit 2 layer 1.
The key map is applied by KeyZoneNoteResolve only when the M3 setting 0x2025 is 1.
The custom-sound block’s fields, from their readers
Lane kn7000-ic21 (2026-11-07) played the factory user kit in the MAME emulator and logged every CPU
read of the block with its PC, then did the same with the table flash’s built-in kits (“archive”
below). These are observations in emulation, not on hardware: program 941 on the kn7000_mame
build of 2026-11-06 (disassembly kn7000/notes/kn7000-ic21/README.md, probes and run logs in
kn7000/notes/kn7000-ic21-probes/). The kit’s style does not use the kit; its pads 1 and 4 do, and
the probe had to replace the first pad id of the pad phase by 0x200000 (a breakpoint) so that
PadSelectById took the CUSTOM style’s own pads. From there the firmware’s own code ran:
PadBindCustom bound pad 1, TgNoteOnTableTone ran 64 times on the pad parts and
CustomVoiceRecFetch 84 times. How the instrument selects a CUSTOM style’s pads by itself was not
traced. Every byte of the block that the firmware read has its reader, and the fields of
voice_record.inc and customdata.inc are named after them (addresses are program 941’s).
The voice record’s 28-byte sub-record (VOICE_SUB, at record +0x10 / +0x2C), which
TgTableToneStage stages as the voice’s second descriptor:
| field | off | reader | what the reader does with it | seen in |
|---|---|---|---|---|
pan |
0x00 |
TgLevelResolve 0x4C02FBDE |
+ the part’s pan + pan modulation, clamped 0..0x7F | kit, archive |
elem_prog, elem_bank_lsb, elem_bank_msb |
0x01 |
TgTableToneStage 0x4C035EA5 |
the element’s {program, bank LSB, bank MSB} | kit, archive |
coarse_tune, fine_tune |
0x04 |
TgPitchZoneFold 0x4C02FB25 |
signed semitones; signed steps of 1/128 semitone | kit, archive |
level |
0x06 |
TgVoiceLevelTermCalc 0x4C02FD94 |
level base + value - 100 (0 = silent) + the part’s per-note offset | kit, archive |
level_key_slope, level_key_curve |
0x07 |
func_4C02FCBA |
the signed slope and the curve of the level’s key scaling | kit, archive |
aeg_attack_rate |
0x09 |
TgTableAmpAttackRateCalc 0x4C02FDFA |
the amp EG attack rate, through the attack curve | kit, archive |
aeg_rate1, aeg_level1, aeg_rate2, aeg_level2 |
0x0A |
TgElemNoteOnStd 0x4C030A98 |
two decay segments, rate and level each | kit, archive |
aeg_release_rate |
0x0E |
TgTableKeyOffRelease 0x4C02FE59 |
the release rate, only when the head’s voice_flags has bit 5 |
archive |
aeg_attack_key |
0x0F |
TgTableAmpAttackRateCalc |
signed key scaling of the attack rate | kit, archive |
filter_flags |
0x10 |
func_4C02FFD4, TgVoiceFilterProgram, TgVeloSenseApply |
bits 0-1 the filter mode (0 = off), bits 5-7 the velocity curve | kit, archive |
filter_velo_sense |
0x11 |
TgVeloSenseApply 0x4C02FE77 |
signed depth of that curve | kit, archive |
cutoff |
0x12 |
TgVoiceFilterProgram 0x4C030606 |
the base of TgPartCutoffResolve’s cutoff |
kit, archive |
filter_level |
0x13 |
TgTableFilterLevelCalc 0x4C02FEC7 |
+ a part term + the layer’s filter offset, through TgVeloSenseApply |
kit, archive |
cutoff_key_follow |
0x14 |
TgVoiceFilterProgram |
TgPartCutoffResolve’s key-follow depth |
kit, archive |
filter_q |
0x15 |
func_4C02FFD4 |
+ 0x18, clamped; [INFERENCE] the resonance | kit, archive |
filter_shape |
0x16 |
func_4C02FFD4, TgVoiceFilterProgram |
bits 6-7 the variant, bit 5 / bits 0-4 an entry of one of two 3-byte tables | kit, archive |
send_a, send_b |
0x18 |
TgElemNoteOnStd |
the two effect sends | kit, archive |
s17, s1a, s1b |
not read (0 in nearly all of the archive’s 1,617 sub-records) |
The rest of the voice record: the head’s voice_flags (+0x0D; bit 0 layer 0, bit 2 layer 1, bit 5 the
voice takes a key-off, otherwise it is a one-shot), excl_group (+0x0E, TgExclGroupChoke: bit 7 in an
exclusive group, bits 0-6 its id, such as open / closed hi-hat) and ctrl_sense (+0x0F,
TgPartCtrlSenseElem: a signed amount the part’s control mode scales); the element’s three velocity
split points (TgTableToneStage) and, per layer, the parameter record reference, a signed level offset
l<k>_level (func_4C02FCBA) and a signed filter offset l<k>_filter_ofs (TgTableFilterLevelCalc).
The element’s +0x03 / +0x04 were not read.
The TABLE head: its six modulation routings at +0x12 + k*3 (mod<k>_dest, mod<k>_depth) are read by
TgPartToneModRoutesLoad 0x4C009C88, whose destination 1..0x2E is an entry of TgPartModConfigStore’s
jump table, and +0x24..+0x26 by func_48448EA3 (bytes 6..8 of its nine-byte tone summary). So of the
21 unread head bytes, fifteen have readers; the six mod<k>_src bytes are not read on this path
([INFERENCE] the source, by the melodic head’s mod_src fields at +0x12).
TgLevelResolve turned out to resolve the pan, not a level: it adds the sub-record’s first byte (in the
archive the drum kits’ pan positions: bass drum 64, snare 76, closed hi-hat 88, ride 40, crash 96 or 48) to
the part’s pan byte - 0x40, clamps it and forces hard left or right in two part states. Its name is kept,
because it is in the generated sources of four builds and in other lanes’ committed probes; its comment
says what it does.
One touch settings. Four records of 0xA0 bytes (KN6000: 0x90), one per ONE TOUCH SETTING,
built by library func_4C02A0C4 (KN6000 func_4C04B9F8) from four consecutive PANEL MEMORY
records of the backup SRAM (KN7000: 0x750-byte records at 0x84000824 + bank*0x3A90 + 0x10 +
i*0x750; KN6000: 0x700-byte records at 0x840007D2 + bank*0x3810 + 0x10 + i*0x700). Each field is copied as source & mask
through a table of {source offset, destination offset, mask} triples. The macros PM_PART,
PM_ENTRIES, PM_STYLE, PM_SET77, PM_FX, PM_SET88, PM_SET8C and PM_PART_TAIL name each
field after the panel parameter that owns its source byte (since 2026-10-29: the sound triple,
volume, effect depths, drawbars, the style slot, variation and tempo, r_octave, the effect ids,
TECHNI-CHORD, pad_bank, …); a field whose parameter is known but not its meaning is
m<id>. How the names were found is on
Panel Memory Records. The built-in Music Stylist
setups of the KN6000, KN6500 and KN2400 hold the same record, with PM_RHYTHM (the style’s
24-bit rhythm id) in place of PM_STYLE’s CUSTOM slot
(KN6000 Program Data). Two
observations show what wrote the factory files: all 80 KN6000 settings have part 3 all 0xFF
(the v7.1 writer copies part 3, so an earlier one wrote them), and 82 of the KN7000 settings do
not hold program 941’s part tails at +0x8F.
The “TCMP” style container
The CUSTOM container is the MEMORY style area’s layout with one style (MemStyleExportToCustom,
0x4843DEC7). Big-endian.
| offset | field |
|---|---|
+0x00 |
"TCMP", 00 00; the checksum descriptor [0x06,0x10) zero (the export clears it) |
+0x10 |
u24BE container length; +0x13 u24BE allocator top: both equal the size here |
+0x16 |
u16BE style count 1; +0x18 the template tail 00 60 0D 08 04 02 02 01 02 0F; 64 spaces at +0x30 |
+0x70 |
style record, 0x80 bytes: name, four variation-name fields, indices 0..19, DSP-unit keys at +0x70 |
+0xF0 |
20 variation records of 0xE0 bytes |
+0x1270 |
the 20 event streams, contiguous, the last ending at the container’s end |
A variation record holds the built-in style it was copied from at +0x00..+0x02, a pair flag
at +0x03 (bit 4), eight per-part bytes at +0x04, bars at +0x10 and meter at +0x11
(MemStyleVarBarCount), the stream offset at +0x15, the style parts the DSP units EFF4 / EFF5
apply to at +0x18 / +0x19, then eight part set-ups of 0x18 bytes at +0x20 (PART_SETUP).
The 0x18-byte set-up is laid out like the 24 fields of the part-field table 0x485B77D4, in its
order; its first 15 are the built-in styles’ 15-byte part set-up described on
Rhythm ROM (IC18).
Traced 2026-11-06 (lane kn7000-research, disassembly
kn7000/notes/custom-data-ic21.md; counts over the nine factory
banks, 180 styles, 3,600 variations):
+0x00..+0x02, the source style.func_4843B386, which copies a built-in variation into a MEMORY style, writeskey & 0x7F,key >> 7and 0;func_4843511Creads variation 0’s three bytes back as the key. 0 0 0 in 2,553 variations (written from scratch);+0x02is 0 in all.+0x18/+0x19, the DSP units’ parts,0xFF= the default (Acc1 / Acc2):StyleRecordBindMem/StyleRecordBindCustomhandvar + 0x18to the code that reads a built-in variation’s+2/+3.FF FFin 3,380 variations, otherwise parts 1..7.- The style record’s
+0x70..+0x73, the two DSP-unit preset keys, a built-in style’sstyle_units:StyleNameCommitMem/StyleNameCommitCustompass them toStyleDspUnitsApply, which decodes them (StyleDspKeyDecode) into the keys of EFF4 and EFF5; bit 7 of+0x71is TOTAL MODE. 132 of the 180 styles hold10 00 23 00. - The part set-up’s reader:
StyleTemplateLoadPartscopies 15 bytes of each set-up (StylePartSetupPtrGet) into the part template, whose fieldsStylePartFieldEmitsends in the table’s order. Bytes 15..23 are never read and are 0 in all 28,800 factory set-ups, so their names stay an inference from the stride. In MAME (2026-11-07, lane kn7000-ic21, observed in emulation)StyleTemplateLoadPartsandStylePartFieldEmitread the same 15 fields of slot 7’s TCMP and TPAD set-ups, and bytes 15..23 were not read either.
Event streams are [index][u24BE count][events]: the index is the variation number
(MemStyleAreaStreamsVerify, 0x4843579E, rejects any other), the count excludes the 4-byte
header, and the events run from a 0xF4 beat marker to 0xF5, with the event lengths of
RhyEventLenByStatus / RhySysexLen. All 5,200 streams of the live records (TCMP and TPAD, ten
images) parse to their exact ends: 806,516 events, 2,979,536 bytes, no data byte >= 0x80,
every position byte 0-95. The macros are those of the IC18 tree:
| event | macro | count |
|---|---|---|
9n 5 bytes |
ev_note |
398,918 |
00-5F |
ev_at |
261,177 |
F4 |
ev_beat |
57,034 |
En 2 bytes |
ev_bend |
49,467 |
Bn 2 bytes |
ev_cc |
31,240 |
F5 |
ev_end |
5,200 |
F0 04 4 bytes |
ev_sysex4 |
3,290 |
Cn 3 bytes |
ev_pc |
188 |
Dn 1 byte |
ev_press |
2 |
The “TPAD” performance-pad container
The PERFORMANCE PAD user memory’s layout (MemPadAreaLoadFactory, 0x48432175) with one bank:
| offset | field |
|---|---|
+0x00 |
"TPAD", 00 00, descriptor zero, length / top u24BE, count 1, template tail 00 60 10 06 10 02 00 00 00 0F |
+0x70 |
bank record 0x30: 16-byte name (“User Bank 1”), six {bank, pad, 0x20} |
+0xA0 |
six pad records of 0x60: name, 13 setting bytes, u24BE stream offset at +0x1D, two part set-ups at +0x28 |
+0x2E0 |
six event streams, same format, index = pad |
Of a pad record’s thirteen setting bytes (+0x10..+0x1C) the user-pad module reads four (2026-11-06,
lane kn7000-research): +0x13 the RECORD KEY / CHORD (UserPadRecChordGet), +0x18 measures - 1 and
+0x19 beats - 1 (stored by MainPAD_SetUserPadMsrTmSigAftClr, multiplied into the beat count as
MemStyleVarBarCount does for a style) and +0x1A the flags (bit 0 LOOP, bit 1 SYNCHRO). The
TPAD_PAD macro names the four; the other nine have no reader there. In MAME (2026-11-07, observed in
emulation) PadBindCustom read the name, bars, meter, flags and the stream offset while a pad of
slot 7 played, and none of the nine.
Stale records and residue
A record’s blocks are programmed whole, from a RAM buffer that still held what was built there
before. So past many records lie the tails of earlier, longer writes (166 records have such
residue), and the free blocks of the nine KN7000 sets are not erased: they hold 41 complete
older records that no slot lists (their +0xA4 gives the block they were written for), such as
“Revival Rock” (in 7 sets) and “Soloist Sounds” (4), and one fragment. The complete ones are typed
like live records (StaleNN.inc). The 80 “Blank” slots of the eight custom1/custom2 sets are each
0x237F bytes. The KN6000 bank has no stale records and no residue.
The residue is typed too, in this order: copies of typed records at the same or any offset
(2,202,310 bytes, spelled with that record’s own macros and a comment naming it), whole event
streams and TCMP/TPAD records that no record holds (200,114 bytes), runs that parse as events
(185,705), and what is left. That was 4,179 bytes in 679 .incbin_range entries of the reference, of
the 2,592,308 residue bytes the first rounds declared opaque; since lane ic21-rest (2026-10-31) it is
157 bytes in 28 entries: pieces of one-touch settings and TCMP style records cut at both ends by
other pieces, event bytes between two pieces where a position falls, and single bytes after a
stream’s end (disassembly kn7000/notes/custom-data-ic21.md, “Census”, which also tallies each image
by kind). scripts/analysis/data_incbin_census.py measures the trees:
| tree | opaque (entries / bytes) | generic (entries) | generic (bytes) |
|---|---|---|---|
kn7000-customdata |
28 / 157 | 0 | 0 |
kn6000-customdata |
0 / 0 | 0 | 0 |
The .AST file
func_4852D0E5 (the whole-bank save) builds a 16-byte header:
| offset | size | field |
|---|---|---|
+0x00 |
3 | "J K" on the KN7000, "I K" on the KN6000 (copied from 0x48664308) |
+0x03 |
1 | 1 |
+0x04 |
4 | u32 LE, the inflated size, 0x1E0000 |
+0x08 |
8 | never written: whatever the stack held (LE words 48582CD3 5006F220 in custom1/custom2’s eight files, 485A9C1D 5006ED88 in idd7000’s, 0 50052930 in idd6000’s) |
+0x10 |
the bank deflated by zlib 1.0.4 (level 6, windowBits 15, memLevel 8), without the 2-byte zlib header but with the big-endian Adler-32 trailer |
On load, AstHeaderIngest (0x4848594D) takes kind 0x17 as the whole-bank file, at most
0x1E0000 bytes, programmed from 0x96820000.
Rebuilding them. Python’s zlib (1.3.1) does not reproduce the payload: it differs at byte 1.
zlib 1.0.4, the version linked in the firmware (its banner is at program file 0x3B8604), does:
compiled from its C sources it gives 01CUSTM1.AST’s payload exactly. The difference is in
_tr_tally: 1.0.4 may end a block every 4096 symbols when its estimate says the block compresses
well, which later versions compile only with TRUNCATE_BLOCK. kn7000/tools/zlib10_deflate.py
ports 1.0.4’s deflate to Python, and ast_file.py deflate rebuilds all ten .AST files byte
for byte from the banks, the tag and the 8 stack bytes (make verify-customdata-ast in both
trees).
A real unit’s bank: the owner’s IC21
The tree also rebuilds one bank that no disk carries: the CUSTOM bank of the project owner’s own KN7000,
part of the whole-chip IC21 read that is typed source since 2026-10-31
(IC21 on Panel Memory Records;
kn7000/src/ic21own/custom.s, generated by gen_customdata_s.py --base 0x20000 --part;
make -C kn7000 verify-ic21-own). It has the factory format and is typed by the same generator. Its 20
slots, by directory order:
| slot | style | block(s) | slot | style | block(s) |
|---|---|---|---|---|---|
| 0 | Soul To Sun | 1 | 10 | 40’s Love Songs | 10 |
| 1 | New Soul Ballad | 2 | 11 | Showband | 11 |
| 2 | N.Y. Rap | 4 | 12 | Night Club Combo | 12 |
| 3 | House Party | 3 | 13 | Swing Orchestra | 19 |
| 4 | Hip Hop | 20-21 | 14 | 40’s Dance Band | 13 |
| 5 | Straight Dance | 5 | 15 | Slow Jazz 3/4 | 14 |
| 6 | Dance Floor | 6 | 16 | Jazz Club | 15 |
| 7 | Glory Disco | 7 | 17 | Jazz At 3.00am | 16 |
| 8 | 80’s Disco | 8 | 18 | Euro Jazz | 17 |
| 9 | Up Tempo Bigband | 9 | 19 | Gentle Jazz | 18 |
What differs from the factory banks (kn7000/notes/ic21-own/README.md;
rewritten by lane ic21-rest on 2026-10-31, which replaced lane ic21-own’s inferences about moved blocks
and a different one-touch writer in program 893):
- Only 969 of its 3,472 used 256-byte chunks (27.9%) occur in any of the nine factory banks, and none of its used 64 KB sectors equals one of theirs.
- The bank was loaded from a KN6000 file. The KN7000 loads the KN6000’s CUSTOM files (
.AST,.CST) and converts them:AstLoadHandler/LoadCstrunfunc_48485B52on each slot of a file with the KN6000 signature. It copies each 0x90-byte KN6000 ONE TOUCH SETTING over the 0xA0-byte defaultfunc_48485B52_Block, keeps the header’s+0xA4/+0xA5, and installs the bigger record in newly allocated blocks. All 80 settings of this bank have that shape (FF FF at+0x8E, the default’s tail at+0x90; probeots_origin.py), so none holds program 941’s part tails at+0x8F. Programs 893 and 941 have the same one-touch writer, and it was never used here. The source spells these settingsPM_KN6000_END+PM_CONVERT_TAIL. - The KN6000 records survive. Free blocks 22 (Swing Orchestra), 24-25 (Modern Samba) and 26-27 (Hip
Hop) hold three complete records in the KN6000 layout, typed as
Stale22,Stale24andStale26. Two are the originals of slots 13 and 4, whose converted records still say block 22 and blocks 26-27 at+0xA4while the directory has them at 19 and 20-21. That is whyCSTREC_PLACEis spelled from the record’s own+0xA4/+0xA5, not from the directory (the factory banks regenerate unchanged). Modern Samba is in no slot. Block 23 is erased. - Residue, typed as in the factory banks: 46,927 bytes are copies of typed records, 1,625 the
donors’ lines with other values, 40 a pad record’s head, 23,989 streams and 14,313 event bytes. None
stays opaque (
data_incbin_census.py, 2026-10-31: treekn7000-ic21own, 0 opaque). - The styles are KN5000 styles (of KN5000 programs v5-v10).
Where the names come from. Each slot’s four ONE TOUCH SETTING names are the titles of the KN5000’s
four MUSIC DATABASE records of that style, in the KN5000 table’s order. The KN5000 table-data ROM holds
its 1,000 records as text (category, style, title, tempo), e.g. “Dance Pop / Straight Dance / Metalic
Dance / 121”. 75 of the 80 names are those titles as they are; five are spelled differently (probe
name_origin.py):
| slot | style | here | KN5000 title |
|---|---|---|---|
| 5 | Straight Dance | Metallic Dance |
Metalic Dance |
| 7 | Glory Disco | Disco - Techni |
Disco-Techni |
| 14 | 40’s Dance Band | Sentimntal Solo |
Sentimental Solo |
| 14 | 40’s Dance Band | Harry J.& Co |
Harry J.& Co. |
| 15 | Slow Jazz 3/4 | 3/4 Played By 4 |
3/4 Played by 4 |
The style name Jazz At 3.00am is the KN5000’s Jazz At 3:00am. All names are centred in their
16-character fields, as in the factory custom1 / custom2 banks. name_search.py searched every dump,
softlist floppy, Club Arena installer, CD-ROM and leaflet the project holds, with their containers
opened: the respelled forms occur only in the owner’s own reads. So the bank’s author typed the KN5000
names into a KN6000 CUSTOM file by hand. [INFERENCE] Who did, and with what, no image says.
Open questions
- The panel-memory fields still named
m<id>(parameter known, meaning not) orp<hex>/x<hex>(no parameter record covers the byte); see Panel Memory Records. - The
0x42-byte dependency records (five kinds) and the0x2C8SOUND EDIT records: none in the factory sets, so only their strides are known. The voice record’s fields that: named from their readers in MAME, 2026-11-07 (above). Not read: the sixvoice_record.inccannot yet name from a reader, and the custom-sound block’s 21 unread head bytesmod<k>_srcbytes, three sub-record bytes and the element’s+0x03/+0x04.TCMP variation bytes: traced 2026-11-06 (above). Nine of the pad record’s thirteen setting bytes still have no reader, neither in the user-pad module nor in MAME; next, the PAD edit screens’ procs.+0x01,+0x02,+0x18,+0x19; the style record’s two u16BE at+0x70A reader of the 24-field part set-up:StyleTemplateLoadPartsreads its first 15 fields; bytes 15..23 have no reader (0 everywhere).- Where the factory sets were made: the residue matches across sets, so one tool built them in sequence, reusing its buffer.
- The owner’s bank (BLOCKED, no image): who typed the respelled KN5000 names into the KN6000 CUSTOM file, and with what.