This commit is contained in:
2026-04-25 02:32:22 +09:00
parent 52aaa4d1f6
commit 8a8c0c9713
38 changed files with 1033 additions and 38 deletions

15
preprocess/util.ts Normal file
View File

@@ -0,0 +1,15 @@
import { Bar, Course, HitNote } from "tja-parser";
export function filterHitNotes(course: Course): HitNote[] {
const notes: HitNote[] = [];
course.noteGroups.forEach((g) => {
if (g instanceof Bar) {
for (const note of g.getNotes()) {
if (note instanceof HitNote) {
notes.push(note);
}
}
}
});
return notes;
}