8000 feat(fx): uniform Punch-In modulation — envelope ⊗ LFO|sidechain, 2 macros/effect, Ableton-style sidechain scope by johannboehme · Pull Request #61 · johannboehme/tk-1 · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
0d242a6
fix(fx): terminate dangling punch-in holds so they can't lock/grow fo…
johannboehme Jun 20, 2026
0ea7c27
feat(fx): uniform modulation engine (envelope ⊗ lfo|sidechain), pure+…
johannboehme Jun 20, 2026
cfb5f83
feat(fx): route render intensity through the modulation engine (parit…
johannboehme Jun 20, 2026
f58ba61
feat(fx): uniform modulation end-to-end — catalog macros, store, side…
johannboehme Jun 20, 2026
c308f26
feat(fx-ui): M-screen with LFO|sidechain toggle + Ableton-style sidec…
johannboehme Jun 20, 2026
962a0c2
fix(fx): sidechain showed "NO AUDIO" — set audioEnv after loadJob, no…
johannboehme Jun 20, 2026
b3f4585
Merge remote-tracking branch 'origin/main' into worktree-pfx-modulati…
johannboehme Jun 20, 2026
f7d2854
refactor(fx-ui): LFO/sidechain knobs reuse the canonical Encoder look
johannboehme Jun 20, 2026
2ed61e7
feat(fx-ui): zoomed scrolling sidechain scope + readable knob values
johannboehme Jun 20, 2026
bf93c34
fix(fx-ui): sidechain scope draws on the arrangement axis (aligns wit…
johannboehme Jun 20, 2026
29917d7
fix(fx): sidechain peaks line up with the timeline (peak env, centred…
johannboehme Jun 20, 2026
79e4c91
fix(fx-ui): sidechain scope is a 1:1 lens over the timeline (no offse…
johannboehme Jun 20, 2026
133a772
fix(fx): kill sidechain time-scaling drift + pin alignment with tests
johannboehme Jun 20, 2026
ca41a66
polish(fx-ui): full-width sidechain scope + adaptive per-column peak
johannboehme Jun 20, 2026
605b743
Merge remote-tracking branch 'origin/main' into worktree-pfx-modulati…
johannboehme Jun 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions frontend/src/editor/arrangement-time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@ export function totalArrDuration(segments: readonly Segment[]): number {
return sum;
}

/** The timeline's visible arr-time window for a given zoom + horizontal
* scroll. Mirrors Timeline.tsx exactly — its range is always
* `[0, arrTotal]`, so `visibleDur = arrTotal / zoom` and the start is the
* scroll offset clamped into `[0, arrTotal − visibleDur]`. The sidechain
* scope reuses this so its window can never drift from the timeline's. */
export function timelineVisibleWindow(
arrTotal: number,
zoom: number,
scrollX: number,
): { startS: number; spanS: number } {
const z = zoom > 1 ? zoom : 1;
const spanS = arrTotal > 0 ? arrTotal / z : 0;
const maxScroll = Math.max(0, arrTotal - spanS);
const startS = Math.max(0, Math.min(maxScroll, scrollX));
return { startS, spanS };
}

/** Convert a master-time to arrangement-time.
*
* Walks segments in playback order, accumulating their lengths. Returns
Expand Down
Loading
Loading
0