fix: align drill scoring with active loops - #68
Open
vo90 wants to merge 1 commit into
Open
Conversation
Contributor
📝 WalkthroughWalkthroughDrill synchronization now considers explicit loop activity and arming states before enabling drill mode. Tests cover inactive configured loops and confirm activation for an explicitly active loop. ChangesDrill mode synchronization
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Open
4 tasks
Author
|
@coderabbitai full review |
Contributor
✅ Action performedFull review finished. |
Author
|
@coderabbitai full review |
Contributor
✅ Action performedFull review finished. |
vo90
marked this pull request as ready for review
July 20, 2026 08:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Player value
This is the NoteDetect companion to got-feedBack/feedBack#1016.
The main loop change lets players prepare a loop, wait before starting it, use a first-pass count-in, and then repeat continuously without another count-in. NoteDetect should only treat that passage as an active drill once the loop is actually running.
Without this companion change, valid A/B markers alone could start drill accounting while the player was still waiting or counting in. That could make iteration statistics begin too early and no longer match what the player actually practiced.
What changes
{ loopA, loopB }keep their existing behaviorWhy this is a separate PR
NoteDetect is distributed from its own plugin repository, so the host-side loop experience and plugin-side drill accounting need separate, linked changes.
Technical implementation
activeandstatefields are absentReview status
CodeRabbit completed a full review of both changed files with no actionable comments. This companion has been reviewed together with got-feedBack/feedBack#1016 and is ready for maintainer review.
Validation
node --test test/drill_mode.test.js— 20 passednode --check screen.js— passedgit diff --check— passedThe full Windows suite reports 353/354 because an existing queue-summary source-text test matches LF-only newlines; that file and behavior are unchanged by this PR. Linux CI remains the authoritative full-suite check.