-
-
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
No Note copy/paste #6002
Comments
Why you want to do that? For me it is quite illogical that copy & paste options are in BB-Editor, as they are completly inactive. |
In LMMS 1.2.2 i can copy n paste same Notes to other instruments. |
I did some testing here, pasting works fine when you paste on the Song Editor, but pasting inside the BB editor is in fact not working as it used to work on Stable. There was a serious refactoring of the Clipboard functionality plus some improvements (like selection Copy/Paste, pasting in the timeline, etc) and with them the way the Copying and Pasting code works changed. Something along the changes probably turned out incompatible with the BBEditor, I'm not sure. I'll have to investigate it a bit further. For now you can use the Piano Roll and copy and paste the notes directly as a workaround. |
I tracked the problem down to this conditional on lmms/src/gui/widgets/TrackContentWidget.cpp Lines 347 to 352 in 89f0a98
One of the changes on the clipboard refactoring is that pasting a single TCO or multiple ones both use the same method. This was done to avoid duplication of code and to allow a more flexible Copy/Pasting UI. The problem is that one of the conditionals of the selection pasting was that it couldn't be done on TrackViews that used I still have to think what a good solution would be, because simply allowing the selection to be pasted isn't safe because of the same reasons it wasn't safe before. There will probably have to be another conditional for when the TrackView is from the BBEditor which would check if there's only one TCO being pasted and that it's size is the same as the BBTCO size. I'm leaving this fix for after the refactor, but at least it's already clarified where the problem lies. Thanks for bringing it to attention @ben83bb ! |
@IanCaio In #6756 I bisected your original branch down to this guilty commit (ebc808e). Closing #6756 as a duplicate.
I can confirm that removing the fixedTCO condition turns copy/paste on again in the Pattern Editor. I don't know what other issues this may bring. Can you look into patching this now? |
It's been a while, had to read my own reply to remember what this bug was about. Well, you can remove the Honestly, I'd actually think just removing the |
Since the refactoring of the Copy/Paste features, it was not possible to paste inside the BBEditor (now Pattern Editor), as reported on issue LMMS#6002. The reason for that is better explained in the issue discussion. This PR fixes this by allowing pasting inside the Pattern Editor when the clipboard has a single Clip, which is what was allowed on the previous workflow, while at the same time avoiding the unexpected behavior of pasting multiple Clips that might invade the positions reserved for different Pattern Tracks.
* Fixes bug from issue 6002 Since the refactoring of the Copy/Paste features, it was not possible to paste inside the BBEditor (now Pattern Editor), as reported on issue #6002. The reason for that is better explained in the issue discussion. This PR fixes this by allowing pasting inside the Pattern Editor when the clipboard has a single Clip, which is what was allowed on the previous workflow, while at the same time avoiding the unexpected behavior of pasting multiple Clips that might invade the positions reserved for different Pattern Tracks.
Lmms 1.3.0 Alpha
If i want to copy Notes by right clicking in the BB-Editor form one Instrument to another. I cant paste it to the other Instrument. It has no effect.
The text was updated successfully, but these errors were encountered: