Repository navigation
fix(techniques): read bend/slide flags off the wire format - #80
Closed
mattromano wants to merge 1 commit into
Closed
mattromano wants to merge 1 commit into
mattromano wants to merge 1 commit into
Conversation
Core's highway sends `sl`/`slu` as the slide-to fret (-1 = no slide) and the bend amount as `bn`. note_detect read `!!cn.sl` / `cn.b`, so every plain note looked like a slide (widened pitch window / lenient pitch gate) and real bends were never seen. Read both through new _ndHasSlide/_ndHasBend helpers that accept the wire numbers and the booleans note_detect's own payloads carry, including the chart pushed to the desktop engine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: mattromano <42412983+mattromano@users.noreply.github.com>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (3)
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 |
Author
|
Consolidated into #84 (commits kept, rebased onto main, plus the review fixes). |
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.
What
Closes #79
Core sends slides as
sl/slu(the slide-to fret, -1 = none) and bends asbn(the amount). note_detect read!!cn.sl/cn.b, so every plain note counted as a slide and got the wider pitch window or lenient pitch gate, and real bends were never seen._ndHasSlide(n)and_ndHasBend(n). A slide issl >= 0,slu >= 0orsl === true. A bend isbn > 0orbtruthy. They accept the wire numbers and also the booleans note_detect's own payloads use (calibration lab notes,setVerifyTargettargets, the engine chart), so they work on either shape._ndScoreChord, the engine chart push and its signature hash, the enginescoreChordpayloads, the contained-chart and verify-target payloads, the calibration-lab probe flags and_calLabEffectivePitchTol, the twolenientPitchgates in the engine verdict drain, and_diagTechFlags, which was already correct and now also countsslu.ChordScorer/NoteVerifierstill get booleansb/sland widen on either. They now get the right values instead ofsl: trueon every note.slu) counts as a slide. Its pitch is also moving, and treating it as plain would be stricter than today's behaviour, which widens every note.No version bump: there's no stylesheet change, so the
?v=cache-buster doesn't need one. #72, #74, #76 and #78 all bump to 1.33.0. If the maintainer wants a bump here anyway, it's a one-line re-bump after those land. This branch merges cleanly with all four (checked withgit merge-tree).Note: #78 (richer judgment events) adds its own technique-name reader with the same semantics. Once both land, it could reuse
_ndHasBend/_ndHasSlide.Tests
test/technique_flags.test.js(6 tests):sl: -1means no slide;sl: 0,sl: 7andslu: 3are slides;bn: 1andb: trueare bends)_ndScoreChord: a plain wire-format note played 70 cents sharp now misses at a 50-cent tolerance, whilesl: 2,bn: 1and legacyb: truestill get the 100-cent windowsl: false/b: falsefor plain notes and chord members, andtrueonly for the real slide and bendtest/_loader.jsnow exposeshasSlide/hasBend.npm test: 358/359 pass. The one failure isqueue_set_summary.test.js› "last-song Exit retires the log even without viewing the summary". It fails the same way on unmodifiedmainon Windows, so it isn't caused by this change.node --check screen.jsis OK, andfeedBack-plugin-spec/tools/validate.pyreportsok.Checklist
git commit -s)🤖 Generated with Claude Code