fix: pitchBendを符号付き16bitで読み取る - #70
Conversation
readUInt16LEをreadInt16LEに変更し、負のピッチ値が 65536加算された不正な値として返される問題を修正する
🦋 Changeset detectedLatest commit: 275296e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
📜 Recent review details🧰 Additional context used🧠 Learnings (11)📓 Common learnings📚 Learning: 2026-04-09T16:28:27.476ZApplied to files:
📚 Learning: 2026-03-21T05:30:31.035ZApplied to files:
📚 Learning: 2026-03-21T11:31:23.742ZApplied to files:
📚 Learning: 2026-04-09T16:28:34.323ZApplied to files:
📚 Learning: 2026-03-27T08:24:18.571ZApplied to files:
📚 Learning: 2026-03-24T19:15:40.455ZApplied to files:
📚 Learning: 2026-03-21T05:02:27.762ZApplied to files:
📚 Learning: 2026-04-09T23:09:19.524ZApplied to files:
📚 Learning: 2026-04-09T16:28:34.323ZApplied to files:
📚 Learning: 2026-04-09T17:09:02.148ZApplied to files:
🔇 Additional comments (4)
Summary by CodeRabbitバグ修正
Walkthrough
Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Code Review
This pull request corrects the handling of the pitchBend field in TCNetDataPacketMetrics by reading it as a signed 16-bit integer instead of an unsigned one. Corresponding updates were made to the test suite to verify correct parsing of both positive and negative pitch values. I have no feedback to provide.
Summary
readUInt16LEからreadInt16LEに変更問題
pitchBendが符号なし16bitで読み取られていたため、負のピッチ値が不正な大きな正の値として返されていた。
例: ピッチ-10.00%のとき、期待値
-1000に対して64536が返されていた。Test plan