Skip to content

Feature request: OPN extraction with deduplication (like OPM output) #8

Description

@nsputnik

When extracting OPN/OPN2 voices from VGM files, vgm2x creates individual files (TFI, DMP, etc.) for every patch instance found in the data stream. This results in hundreds of thousands of files for a single game, most of which are duplicates.

For example, extracting from 25 Shadow Dancer (Sega System 18) VGZ files creates ~700,000 TFI files, when the actual unique patch count is probably ~100-200.

Current behavior:

  • -m OPM → single .opm text file with deduplicated patches ✅
  • -n TFI → one file per patch instance (no deduplication) ❌

Requested feature:
Add deduplication and/or bank-style output for OPN extraction, similar to how OPM extraction works. Options could include:

  1. A --nodupes flag for OPN extraction
  2. An OPN bank format output (single file with multiple patches)
  3. Built-in deduplication during extraction

This would make OPN extraction practical for games with YM2612/YM3438 chips.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions