xgboost
This commit is contained in:
15
preprocess/util.ts
Normal file
15
preprocess/util.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user