8000 feat(transport): OP-1 style loop controls + snap-aware nav by johannboehme · Pull Request #13 · johannboehme/tk-1 · GitHub
[go: up one dir, main page]

Skip to content

feat(transport): OP-1 style loop controls + snap-aware nav - #13

Merged
johannboehme merged 1 commit into
mainfrom
claude/funny-wright-9b784c
May 2, 2026
Merged

johannboehme merged 1 commit into
mainfrom
claude/funny-wright-9b784c

Conversation

@johannboehme
Copy link
Copy Markdown
Owner

Summary

  • Pfeiltasten snap-aware: respektieren den aktiven Snap-Mode — off → 1 Frame, match → nächster Match-Point des selektierten Clips (Frame-Fallback), 1/1/2/1/4/1/8/1/16 → entsprechende Bar/Beat-Fraktion.
  • Alt+Pfeile = OP-1 Loop-Shift: Loop-Region rückt um ihre eigene Länge in Pfeil-Richtung, ohne das Playback zu unterbrechen. Wrap erfolgt am alten loop.end via neuem playback.pendingWrapAt-Feld; dort springt der Playhead in den neuen Loop.
  • IN/OUT modal: Buttons und I/O-Shortcuts setzen die Loop-Boundaries, wenn Loop aktiv ist — sonst die Trim-Boundaries (Export-Region).
  • Loop-Region auch im Bar-Lineal sichtbar: gleiche orange Tönung wie im Audio-Track, damit der Shift visuell auf dem Beat-Grid landet.
  • J/K/L-Shortcuts entfernt (Skip ±1s & Play/Pause); Space bleibt für Play/Pause.

Test plan

  • 632 unit-Tests grün (npm test)
  • 14 neue Tests für stepByActiveSnap + shiftLoop (alle Snap-Modi, deferred-wrap-Cases, edge cases)
  • 3 neue Tests für shouldRescheduleOnTick mit pendingWrapAt
  • Smoke-Test im Editor: ArrowRight bewegt Cursor snap-aware, Alt+Right verschiebt Loop ohne Playhead, I bei aktivem Loop setzt loop.start, J/K/L sind no-ops, Loop-Marker erscheint im Bar-Lineal und im Audio-Track synchron

🤖 Generated with Claude Code

- Pfeiltasten navigieren snap-aware (frame / match-point / bar / beat-fraction)
- Alt+Pfeile verschieben Loop-Region um ihre Länge ohne Playback zu unterbrechen — Wrap am alten loop.end via neuem playback.pendingWrapAt
- IN/OUT-Buttons + I/O-Shortcuts modal: Loop an → setzen loop.start/end; Loop aus → setzen trim.in/out
- Loop-Region auch im Bar-Lineal sichtbar (gleiche orange Tönung wie im Audio-Track)
- J/K/L Shortcuts entfernt (Space bleibt Play/Pause)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@johannboehme
johannboehme merged commit b389ef9 into main May 2, 2026
1 check passed
@johannboehme
johannboehme deleted the claude/funny-wright-9b784c branch May 2, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0