Skip to content

ASSET-576: Convert exported AWC music cues to per-channel Audacity label tracks - #6819

Merged
shayderrr merged 1 commit into
ItsNotRexed:mainfrom
kacper-serewis:feat/audacity-cue-labels
Nov 23, 2026
Merged

shayderrr merged 1 commit into
ItsNotRexed:mainfrom
kacper-serewis:feat/audacity-cue-labels

Conversation

@kacper-serewis

Copy link
Copy Markdown
Contributor

Item AWC-MUSIC-AUDACITY-LABELS (claim).

Depends on: #6780
Depends on: #5518

Convert a single exported bank sheet with python -I tools/awc_cue_labels.py <bank>/cue_regions.json <new-label-directory>. Each channel gets a matching text track in the Audacity label format. The label records the cue hash and one-based bank-sheet row number. The converter reads only JSON and preserves repeated and overlapping intervals.

AI-assisted. Tested on Windows, CPU only. Two isolated CLI tests passed, including parsing text times back into exact 48 kHz frames across channels, overlaps, repeated rows and the 32-bit upper endpoint. The newline suite, compileall and staged diff check passed. No exported private cue sheets were found in the checked work cache. No game files or GPU required.

@kacper-serewis kacper-serewis changed the title Convert exported AWC music cues to per-channel Audacity label tracks ASSET-576: Convert exported AWC music cues to per-channel Audacity label tracks Nov 23, 2026

@shayderrr shayderrr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

  • Adds tools/awc_cue_labels.py, converting a 48 kHz cue_regions.json into per-channel Audacity label files with 9-decimal times, cue hash and one-based row numbers.
  • Validates channel names, cue hashes and sample intervals, stages output in a temporary directory, and refuses existing output directories.
  • Adds tests/test_awc_cue_labels.py for round-trip timestamps and invalid-channel rejection, plus Audacity import instructions in docs/audio.md.

Why merge

It gives the cue sheets from the exporter a concrete Audacity workflow with precise frame recovery and safe publishing. Tests cover the tricky rounding and path-validation cases.

Verdict: Approve

@shayderrr

Copy link
Copy Markdown
Collaborator

Summary

  • Adds tools/awc_cue_labels.py, converting a 48 kHz cue_regions.json into per-channel Audacity label files with 9-decimal times, cue hash and one-based row numbers.
  • Validates channel names, cue hashes and sample intervals, stages output in a temporary directory, and refuses existing output directories.
  • Adds tests/test_awc_cue_labels.py for round-trip timestamps and invalid-channel rejection, plus Audacity import instructions in docs/audio.md.

Why merge

It gives the cue sheets from the exporter a concrete Audacity workflow with precise frame recovery and safe publishing. Tests cover the tricky rounding and path-validation cases.

Verdict: Approve

@shayderrr
shayderrr merged commit 3e5596b into ItsNotRexed:main Nov 23, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants