Skip to content

Add clip content shifting #7894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

regulus79
Copy link
Contributor

@regulus79 regulus79 commented May 16, 2025

This PR adds the ability for users to shift the contents of clips without changing the clip bounds. This is useful when working with vocal samples, and you want to chop them up and arrange them without having to manually resize and move the clip each time.

To use, hold Shift while dragging on a clip. For quantized movement, hold Alt or Ctrl at the same time.

2025-05-15.23-03-51.mp4

Note! Previously, Shift allowed users to drag clips while snapping their position to the global grid, while normal dragging would move them a quantized offset with respect to their current positions. This PR integrates that functionality into normal dragging, much like how #7477 integrated the Shift key for quantized knife position from to normal knife functionality.

Previously

  • Shift-dragging snaps the position of a clip to the global grid, so that either the start or the end of the clip is on the grid, whichever is closer
  • Normal dragging snaps the position of a clip to the closest quantized offset from its previous position.

Now

  • Shift-dragging moves the contents of a clip unquantized. Alt or Ctrl + Shift moves quantized.
  • Normal dragging mvoes and snaps the position of a clip so that either: the start of the clip is on a gridline, the end of a clip is on a gridline, or the clip is moved a quantized amount from its previous position, whichever is closer.

Additionally, I similarly combined Shift resizing into normal resizing, since it makes things much easier for beginners, and to make things more consistent.

@firiox
Copy link

firiox commented May 17, 2025

Sorry by the way.
I test It like the knife cuts in the closer grid then I had to test It and It cutted off the grid .

cutting.of.the.grid.mov

I just cutted It by default with the mouse and then used ctrl to cutt off grid and then I tested draggin with the pencil with alt then as I was writting this review I had to deliberate test It and It cutted off the grid. Anyway I tested the draggin the contents of the clip with My gosh.
It was with shift and then for draggin cuantized with alt and It do the trick. feel free to ask if you don't understand anything.
So I guess the issue isn't with this PR right? this is just for dragging the content right?

@firiox
Copy link

firiox commented May 17, 2025

I need help with the shift resizing bc I reziced the clip with shift and withou It and I don't see the trick

@regulus79
Copy link
Contributor Author

I test It like the knife cuts in the closer grid then I had to test It and It cutted off the grid .

Actually, I think it did, just relative to the end of the clip.

image

You can hold down the knife and drag it around to see where the cuts lines snap to. It will either snap to the global grid, relative to the start, or relative to the end.

I need help with the shift resizing bc I reziced the clip with shift and withou It and I don't see the trick

I might have worded the description badly. Basically in normal lmms, shift resizing snaps to the grid, and normal resizing quantizes the resize amount. But this PR combines shift resizing with normal resizing, so there shouldn't be a difference.

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.

2 participants