This commit is contained in:
2026-04-20 00:21:53 +09:00
parent 4b08883f69
commit 53e9908167
31 changed files with 3535 additions and 111 deletions

View File

@@ -5,27 +5,13 @@
- **Language**: TypeScript
- **Library**: [tja](https://www.npmjs.com/package/tja) (TJA parser)
## Key Documents
- `.gemini/tja-spec.md`: Rigorous TJA format specification.
- `tja-format.mediawiki`: Original source document.
- `measure.csv`: Dataset with columns `상수`, `songno`, `diff`.
## Models (model/)
- `constant_predictor.py`: DNN 기반 상수 예측 모델.
## Library Usage (tja)
- **Import**: `import { TJAParser } from "tja";`
- **Parsing**: `const parsed = TJAParser.parse(content);`
- **Structure**:
- `parsed.title`, `parsed.bpm`, `parsed.offset`
- `parsed.courses` (Array of `Course` objects)
- `course.difficulty` (e.g., "Oni")
- `course.stars` (Level/Stars)
- `course.activeCourse.getCommands()` returns an array of commands and note sequences.
## Purpose
Analyzing or processing TJA (Taiko Jiro) file formats.
## Key References
- `tja-format.mediawiki`: Detailed specification of the TJA format.
## TJA Format Overview
- **Encoding**: UTF-8 with BOM or Shift-JIS.
- **Extension**: `.tja`.
- **Comments**: Start with `//`.
- **Metadata**: Key-value pairs (e.g., `TITLE:`, `BPM:`, `OFFSET:`).
- **Course Metadata**: Specific to difficulties (e.g., `COURSE:`, `LEVEL:`, `BALLOON:`).
- **Notation**: Commands prefixed with `#` (e.g., `#START`, `#END`, `#MEASURE`, `#BPMCHANGE`).
- **Notes**: `0-9`, `A`, `B`, `F`.
...