Skip to content
Agentmart
Submit a tool

konami-psg

Render Konami packed-PSG bytecode to WAV.

Skill by 0xe1f

IndexedApache-2.0★ 1
Write a review

Chalk Labs

Need help deploying konami-psg?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/0xe1f-konami-psg

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Render Konami packed-PSG bytecode to WAV. Use when dumping BGM or SFX, choosing psgplay.py vs sccplay.py, or wrapping a game-specific catalogue (tools/psgplay.py in the game repo). Catalogue layout is msx-psg-catalogue.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/konami-psg

What's inside

Skill name
konami-psg
Description
Render Konami packed-PSG bytecode to WAV. Use when dumping BGM or SFX, choosing psgplay.py vs sccplay.py, or wrapping a game-specific catalogue (tools/psgplay.py in the game repo). Catalogue layout is msx-psg-catalogue.
License
Apache-2.0
Instructions
45 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Konami packed-PSG

AY generators match CocoaMSX ``AY8910.c`` (blueMSX). Recognizable, not
analog-accurate. Catalogue names and default output dirs stay in the **game**
`tools/psgplay.py` (`msx-psg-catalogue`).

Taito carts (`psg_play` / 5-byte records / two slots) use
`msx/taitoplay.py`, not these players.

Two in-house Konami drivers; pick the player that matches the header:

## 6-byte music-rec

3 PSG channels. The driver copies a 20-byte template per channel.

```
tools/workbench/konami/psgplay.py Game.rom --map 2@8000,3@a000 \
    --music-ptr <cpu> --sfx-ptr <cpu> \
    --env-ptr <cpu> --env-alt <cpu> --note-tbl <cpu> \
    --music-ids <range>
```

## 18-byte packed header (SCC)

8 slots (3 AY + 5 SCC). Play copies 18 bytes from `ptr[(id-1)*2]`; packed
header is `db flags, pri` then one `dw` per SET bit (bit 7 first). Channel
bytecode is not the 6-byte opcode set.

```
tools/workbench/konami/sccplay.py Game.rom --map 1@6000,2@8000,3@A000 \
    --ptr <cpu> --id 1
```

SCC enable is `ld a,3Fh / ld (9000h),a`; wavetable copy is 32 bytes into
`9800` + n×0x20 (channel 5 shares channel 4’s wave).

## Driver bank

Packed-PSG payload often follows a word table indexed by `id*2`. The table
may overlap the last `ld (9000h),a / ret` of the SCC page restore (`table[0]`
unused; `table[1]` = first stream). Mark `worddata` from the first exclusive
entry; mark the rest of that bank (and often the next triplet window)
`bytedata` until streams are named.

From 0xe1f/MSXDAW, Apache-2.0.

More from 0xe1f/MSXDAW

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Sep 2, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from 0xe1f

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get konami-psg running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying konami-psg?

CallGet help
Cite this page

konami-psg skill. Agent Mart. https://agentmart.dev/skills/0xe1f-konami-psg (last updated 2026-10-24)