Parameters
- chart: RpeJson
- target: Vec2
- beat: number
- chartFlipping: number = 0
- maxDistance: number = Infinity
Returns
| {
lineIndex: number;
noteIndex: number;
position: NotePosition;
distance: number;
}
| null
The closest note's info, or null if none found within maxDistance.
Find the note closest to a given scene position at a specific beat.
Useful for implementing click-to-select in a chart editor.