-
-
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
undoable instrument-changes - #1262 #1284
Conversation
Hm, I think we should figure out the possible problems (leaks?) with the journaling code before merging this. |
i think so, too. that's why i was asking for hints, parallel to investigating further by myself :) maybe there is some dev out there who knows where exactly this problem may originate. i will push further changes into this PR until it's good |
The problem: every AutomatedModel::setValue leads to a new undo-checkpoint. This is not correct, as we only want user-triggered value-changes to generate a new checkpoint. setValue is called when loading instrument settings several times wich leads to the "leaking" checkpoints. It's pretty much to do, so i would like a little 'go' before i start doing it. Does anyone have a better idea? |
On 11/10/2014 02:24 AM, grindhold wrote:
Well it's a tricky situation. I don't think it's a very good idea to However there's a literal metric shitton of work required to do this so It's likely that there's going to be some changes to how models work, |
Ideally, if each knob change has event data, we can examine the event data for human-interaction, no? This may require the AutomatableModel to accept events instead of raw values, but it seems like it could be added in addition to current functionality (hypothetically proposed here as I'm not currently looking at the code). -Tres |
On 11/10/2014 02:40 AM, Tres Finocchiaro wrote:
With events, there's always the problem that the events have to be We're going to have to tackle this hurdle when it comes to live (Yes there's sample-exact models but the same logic applies to them... |
under the given circumstances i don't think, i can provide a proper solution to the problem. i am going to withdraw this PR and look for another problem to solve. |
On 11/10/2014 03:26 AM, grindhold wrote:
Yeah, it's best to come back to this later. The other problem with journaling AutomatableModel is, even if you |
I started working on #1262 for a couple of time now.
I added a journal-checkpoint when an element is being dropped on the instrument-slot of an instrument track. the current result: i can ctrl-z back until i get the last instrument that was on that track but only after a few times ctrl-z-ing.
my guess: the plugin that is being loaded makes some more journalcheckpoints on load.
i made some debugoutput. the elements getting "undone" before the instrument itself are mostly analogmodels.
Will continue solving the riddle, but hints are appreciated ;)
P.S.: while unexpanding the file edited by me, i stumbled across some codestyle-violations (spaces instead of tabs).