-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
toNearestTact() with offset when moving tco #4043
Conversation
A tco that has been moved off-beat with <Ctrl> 'move' will snap to nearest full beat on the next move action. Remember the offset and add this on an ordinary move with snap to nearest tact. Fixes LMMS#2300
For multiple TCOs being dragged, this makes perfect sense. For individual, I feel that the snap behavior should remain. Losing snap behavior seems like a regression from current functionality. The bug mentioned in #2300 seems to be primarily focused on dragging a group of TCOs. |
@zonkmachine Good. Approved. |
Dragging multiple TCO with mixed offsets has erratic behaviour with this PR. |
I'm trying snapping out of offset with shift modifier. |
@tresf the way it is now, even clicking an audio clip will snap it to grid.
Even if snapping is the default action this shouldn't happen.
However, I'd prefer that snapping kept offsets. This is how it works in
piano roll and makes most sense to me. Clips also keep their offsets when
ctrl+dragged to duplicate. If you want something snapped to bar you can
always add a new clip and load the sample again, or use click+control+drag
to realign it. Or maybe there should be mod+click to snap to bar, like a
"quantize" feature.
…On Dec 8, 2017 07:55, "Oskar Wallgren" ***@***.***> wrote:
I'm trying snapping out of offset with shift modifier.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4043 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AIgVmvfdaH6dR3wpqYFFLpWQeeJC7hGVks5s-N1VgaJpZM4Q5_WF>
.
|
Although I agree with trying to stay consistent, I don't think it's fair to begin to compare a misplaced single note with a misplaced TCO. Notes are drawn by single-clicking them. TCOs can be created by various ways. Furthermore a misaligned TCO can be detrimental to the sound of a song if even off by a hair when dealing with syncopation whereas a single note being off is often fine. TCOs are not easy to delete either. They require a middle-mouse button which a trackpad doesn't offer. The only "consistent" behavior argument that I think is close to that of the piano roll is a BBEditor TCO (since it contains nothing except perhaps a custom color) and even then, they don't seem to remember color properly unless copied/pasted. Another problem, which may be argued as as separate bug, but must be considered when talking about Again, if you look at the bug this is meant to address, the OP said nothing about single TCOs. The video illustrates multiples. |
That's simply a bug. Clicking it shouldn't snap it, moving it should. |
Right, making it even harder to revert an offset'd TCO. |
That said, if we do make this the new default behavior, I would be ok with |
I think it's hard to misplace a TCO. Resetting offset manually is as difficult as creating it manually. Probably not for this PR, but I suggest that, for any TCOs, the user should be able to drag them to hit the beginning of the track to reset their offset. |
I don't see this. |
Not really practical (if your track is long) or logical. I suggest instead a single dialog (or window) to edit all the properties of a TCO (like color, name, offset, startFrame, endFrame, etc) but also any specific property. |
@zonkmachine I just tested again, RC4 on Windows 10 64-bit. The way I can reproduce it is to zoom in and move a sample track to a "weird" offset that isn't possible at lower zooms, then zoom out and click. |
^OK, got it. |
269194c
to
ef86ea3
Compare
Yeah, this turned out a bit too complex. I managed to fix the action for multiple tco's but at the expense of lagging action at fast mouse movement. Especially at zoom < ~200% . |
I've been working more and more with misaligned sample tracks and I have to agree that the offsets have great value when moving/cloning. Getting that sample track aligned just right and then moving it really kills productivity. That said, if I could resize from left, it would probably be less of an issue. |
That feature is only in master. What if we snap both? |
I think drag and copy operations should always maintain offset. To quote @gi0e5b06, the offsets are user data that should be kept. The magnetic behavior is great but I feel is separate issue and will introduce some other nuances. My major concern is the inability to re-snap. Perhaps a right->click, align to grid. |
I don't know a DAW that behave in that way. If the user want maintain the offset they could align the right edge of there TCO with the grid. |
I've posted this to #support on Discord as I don't use other DAWs to be able able to speak to that, but when composing, it's fairly common to drag several items around and copy several items. The inability to maintain offset is crippling to the production process. |
A tco that has been moved off-beat with
<Left Click>
+<Ctrl>
willsnap to nearest full tact on the next move action. Remember the offset
and add this on an ordinary move with snap action.
Fixes #2300