Commit 537f720
fix: PitchOverview playhead wraps correctly for shorter patterns
When a track had fewer steps than MAX_STEPS (128), the playhead
indicator in PitchOverview would stop highlighting after the first
loop through the track's stepCount. For example, a 64-step track
would show the playhead for steps 0-63, but nothing for steps 64-127.
Root cause: The playhead check used `currentStep === i` but currentStep
ranges 0-127 while the grid only has indices 0-63.
Fix: Changed to `(currentStep % maxStepCount) === i` to wrap the
global step position to the local grid size.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 672f2a5 commit 537f720
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments