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
Adds a button to clone the current BB track pattern inside the BB Editor #5531
Conversation
Adds a button on the BBEditor that clones the current BB track pattern, but without also cloning the song editor TCOs. That can be useful when an user is editing drumlines and wants to make a section with a slight variation for example.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of copying the innards of the clone and clear functions, why not just call the existing clone function, then the existing "clear track" function? That should be DRYer.
@Spekular The |
Having taken a closer look, no there probably isn't without moving things around, since clone and clear are private slots. Even if you get the widget with
you wouldn't be able to call the methods. I guess I'm okay with this version then, although I think it'd be nice if you added a call to |
From conversation on Discord, it seems the journal system doesn't handle tracks being added/deleted. With that in mind I don't have any big issues with this PR anymore, but I left a review with some nitpicks. I'm willing to merge once they're addressed if no one else disagrees. |
- Changes method name from cloneBBTrackPattern to clonePattern - Small fix on the comments - Adds a TODO comment regarding reusing the code from TrackOperationsWidget as a reference, so we can later figure out a way to not repeat the code
Thanks for the review @Spekular , I made a new commit with the requested changes! |
Awesome, thanks! I'll wait a day or two with merging so others can chime in if they want. Feel free to ping me on Monday if I forget :) |
Adds a button to clone the current BB track pattern inside the BB Editor
Issue
I noticed a common situation during the music production workflow on LMMS. Sometimes I was working drumlines inside the BBEditor and for a small section I wanted to add a variation (i.e.: some drum fill). Currently there are two options:
I realized it would make the process a little quicker if there was a button inside the BBEditor that just cloned the pattern, but not the song editor content (which is usually the desirable behavior on that case).
Proposed PR solution
This PR adds a small button on the BBEditor, next to the "Add Beat/Bassline", that clones the current BBTrack pattern, but also clears the content of the song editor. For now the icon being used is a copy of the edit_copy.png icon, but it can be changed to something more distinct.