-
-
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
Select, copy, and paste in automation track #5157
Comments
Selection is a duplicate of of #4602. |
@eland1 In respect to that, you can just set Q -quantification to highest value. You will never be able to hear the difference between 'same value' and a distance of 1/192. That is not audible |
I was looking into implementing this and found that most of the code is already there, it needs some modifications and some extra code. Is anyone working on this? Else I will give it a try :-) |
@cyberdevilnl Actually I am on it. At first I want to implement the ability to have more than one control point per time key. I suppose you want to implement select, copy paste? |
@BaraMGB all right that's awesome! Yes I was talking about the select, copy and paste. Let me know if I can help :-) |
I've been rewriting the mouse functions for clarity and I decided I might as well look into this, so in order to figure out how it works, I wrote down something like a map of the process that's involved. I figured it might help.
That is just defining them, so order doesn't matter (the above) Here is my map (below):
The way the code works is confusing to me, but essentially it seems to me that it just takes the signal of the buttons on the toolbar and puts
The order of these (above) determines the order of the buttons on the toolbar.
And that just changes the cursor according to the mode. From there my guess it's it's just a matter of I'm thinking about combining a few Automation Editor issues, as I've talked about here: Automation: points deleted while moving other points can be restored abnormally Edit: I created a branch (forget this one... see below) Edit: New replacement for the above (see this one, not the above) |
Personally I think this should be two separate issues, one for group selection and one for placing points at the same time. However, given the huge number of open issues I believe they can stay as one for now. Perhaps if one part is implemented and the other remains, the remaining one can be split into a new issue and this can be closed. |
In the branch I'm working on [above] I've managed to get select and move working, but I'm running into three issues that seem to be related.
I'm looking into this.
This will be needed for pasting into the editor at the correct position. It doesn't move when play is pressed, so I imagine the code wasn't completed. I'll be looking into this too. |
The more I play with this issue of moving a selection, the more it seems like the random points are disappearing as they move to a position on top of one another. When I read what you said, I agreed about the separate issues, but then I noticed this. It seems like the issues may be related after all. Edit: I just noticed that if you pass the selection quickly over or under the other points, they remain, but if you slowly drag the selection, it deletes all the other points. |
If two land on each other at least one will be deleted because we currently
don't support several points on top of each other. Points at the same
position is still a separate issue IMO, as you can implement (and benefit
from) one without the other (and this applies both ways).
…On Sun, Oct 20, 2019, 17:50 tecknixia ***@***.***> wrote:
@Spekular <https://github.com/Spekular>
The more I play with this issue of moving a selection, the more it seems
like the random points are disappearing as they move to a position on top
of one another. When I read what you said, I agreed about the separate
issues, but then I noticed this. It seems like the issues may be related
after all.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5157?email_source=notifications&email_token=ACEBLGTRXUY3AH72JSOE5ELQPR453A5CNFSM4IREGMOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYNDWY#issuecomment-544264667>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEBLGVJWX3WBNN5UFZQGQ3QPR453ANCNFSM4IREGMOA>
.
|
After thinking about it some more, if points are getting deleted because they're on top of each other, than allowing them to co-exist on the same tick would probably fix that issue. However, this might involve some strategy in how the mouse functions run. Even if the issues are related, I think you're right, it seems to deserve it's own issue because of the depth of the issue. This issue can then be mentioned by that one. |
Just realized... if it works when dragging a single point, why can't it work for multiple points? I'll have to take a closer look, it seems likely possible to fix this without having to worry about the issue of two points occupying the same x position. Thoughts about moving a selection have been moved here: So, the problem is that the points are being moved and placed with each mouse move, instead of being dragged. I tried using |
I had to redo some things, so I created a new branch for this with cleaner commits. Improvements:
Also in this branch:
Some issues:
I'll probably also be looking into a few other Automation Editor issues.
|
The main problem seems to be... each time
For the basic idea of how to do this, it seems like the main thing that needs to be done is to take note of all the positions of the multiple points being moved, then delete those values from the map, and then copy the map of the others, so that you have a copy to place back onto the map each time a move is made. Edit: I just realized there's already functionality like this for moving notes in piano roll.
I think it would be a good idea for the core logic of automation points to remain consistent with the core logic of notes. Notes can already be selected, moved, copied, pasted, etc. Notes have a class of their own, and the moving of multiple selected notes involves the use of a "NoteVector". I think the same could be done for automation points and a "PointVector". I did get started on the class files, although instead of talking about it here, this modification seems large enough to deserve it's own issue. I'm still new to C++, and it's still a bit hard for me to read and follow the code. I'm looking into this, but I could use guidance, or assistance, from someone who is familiar with notes, Piano Roll, and the Song Editor. I'm documenting my understanding of the code here: Automation Editor |
it would be amazing if you could select, copy and paste in the automation track. it is also nice if you can place two points right under eachother. i think it becomes a sidechain dream.
Below added by @Spekular
A complete implementation of group selection in song editor should also allow deletion of the selected points.
The text was updated successfully, but these errors were encountered: