Repository navigation
Proposal: clip envelopes remembered across restarts, and easier to edit - #77
Open
marcin-koziol wants to merge 3 commits into
Open
marcin-koziol wants to merge 3 commits into
marcin-koziol wants to merge 3 commits into
Conversation
…e line The lane shown (Edit → Clip Envelopes) was lost on every restart; it is now kept in the preferences (Preferences::clip_envelope), as the global lanes and Snap to Objects are. Editing was fiddly, on a clip's body and a take's lane alike: - A click added the point at the click's height, so a pixel off the line bent it (and an empty envelope jumped there). The point now goes on the line, at the value it has there (value_at, neutral without points), and moves only once dragged past the threshold. - A dragged point went to the pointer, so one grabbed off its centre jumped; it now moves by how far the pointer goes on the lane's scale. - The pointer was the same crosshair everywhere. A clip's body now has two zones, ClipZone::Envelope (a plus, the new Cursor::Add) and ClipZone::EnvelopePoint(i) (a move cross); a take's lane shows the same. - The point a press would take is drawn larger and ringed with its value beside it (hovered or dragged), and the tooltip gives its value, time and what pressing it does (envelope_target finds the clip or take). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
marcin-koziol
force-pushed
the
remember-clip-envelopes
branch
from
November 14, 2026 08:47
a3edfa6 to
a5f38c3
Compare
The first and last points sit on the clip's edges, where the trim zone (and the fade handles) took the press, so they could hardly be grabbed. A point under the pointer now comes first; a little above or below it the edge still trims. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The line near a segment (within 4 px) is a zone of its own, ClipZone::EnvelopeSegment, with an up-and-down pointer: a drag moves the points on either side of it together by how far the pointer went (one at the clip's ends; their times stay; Ctrl fine; one undo step), and a click without a drag adds a point there as before. Hovering it lights both points with their values, and the tooltip says what a drag does; a take's lane works the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Why
What
Preferences::clip_envelopeholds the lane shown. It is applied at start-up and saved whenever it changes, the same way as the global lanes and Snap to Objects. Older preference files read as hidden.clip_envelope::value_at, or the neutral value when there are no points).ClipZone::Envelope, on the line, shows a plus (a newCursor::Add,cellin GTK).ClipZone::EnvelopePoint(i), on a point, shows a move cross.docs/ARCHITECTURE.mdis updated.ClipZone::EnvelopeSegment, with an up-and-down cursor.Tests
adding_keeps_the_line_and_the_point_under_the_pointer_is_litchecks that:the_clip_envelope_shown_round_trips(preferences).points_on_the_clips_edges_win_over_trimmingchecks that over the first and last points the press takes the point, and a little away from them it trims.the_line_between_two_points_is_dragged_and_clickedchecks:a_take_lane_edits_its_takes_envelope_while_one_is_shown, from Discussion: clip edits (pitch, warp, …) are lost when a clip is folded into takes, and takes can't be pitch-edited #67) now also checks the cursors and the lit point in a take's lane.faderframe-view-arrangertests pass and the workspace builds.clippy -D warningson arranger, UI and canvas is clean, and so isfmt --check.🤖 Generated with Claude Code