Shidt+Alt+Up/down changes the gain on the focused track. It creates an
a user perspective.
isn't satisfactory in all cases.
Post by David BailesPost by Paul Licameli1) Selfishly, I do not wish to delay the track panel refactor for another
release. Yes, this is a pet project of Paul without the RM hat on, but I
know I have the strong endorsement of James at least for it.
The efforts of James for theming, Pokechu22 for MIDI playback, and David
for clip move, all make some degree of difficulty in my continuing efforts
to rebase the branch track-panel-refactor onto latest master. I have
already faced a number of such in rebasing that from 2.1.2 onto 2.1.3. I
want to surmount those difficulties, and complete this nearly
two-year-old
effort in this release, and then forget about it.
I did green-light David's request to change TrackPanel.* while my
attention was elsewhere. However, I am now finding more than usual
difficulties in rebasing my track-panel-refactor branch onto the latest
master, because this project is introducing new state member variables into
class TrackPanel, but I am trying to eliminate such variables. I can't say
the same for the other two projects.
Ideally, the keyboard interaction for things like the clips should have be
written at the same time as the mouse interaction. Then, when you started
your refactor work, the requirements would have to there from the start. I
appreciate that me now trying to add keyboard interaction, is not ideal
from your point of view. However, if your refactor doesn't allow for
keyboard command which may need state variables to do equivalent tasks to
those currently only doable using a mouse, then the job of adding keyboard
interactions after your refactor will be more difficult. (There may be
similar issues if anyone tries to add keyboard interaction for envelope
points.)
Post by Paul Licameli2) Less "selfishly:" the commit named above causes key down and
auto-repeat to do something analogous to click and drag, and key up to do
something analogous to release, which then (and only then) causes an undo
item to be pushed on the stack. But this is unprecedented. All other
existing keystroke commands using /wantkeyup did not have such implications
for Undo.
I think the current behaviour is what the user would expect - if the user
holds down the key assigned to move a clip, he really doesn't want 29
entries in history. (I checked how Reaper handles it. If you hold down a
key to move an item you get two entries in history - one for the first
little move, and one for the rest, which is rather strange, but still a lot
better than 29).
Post by Paul LicameliBind the new command to some key (I tried Shift + .), press that key, then
hit R, (or C) then release the keys. Regarding the pushing of Undo items
on the stack, what SHOULD happen, and when? What really DOES happen? A
bit of debugging makes me doubt whether this is all handled in a good
crash-proof way, though I haven't yet demonstrated a crash.
thanks, I hadn't thought about this. My initial thoughts are, that given it
will be very rare for a user to execute another command in the middle of
1. If it causes a crash, this is obviously unacceptable.
2. If there's a minor issue such as the order of items in the history, then
although not ideal, it's probably not too much of an issue.
Post by Paul LicameliIn previous release I had to introduce the function
TrackPanel::HandleInterruptedDrag
to do something in case the R key (or worse, Shift + C) is pushed during a
mouse click-drag-release and avoid crashes. I don't know that the
necessarily analogous thing is done here yet.
On each key down, the command starts from scratch finding clips to move -
it doesn't use any pointers that it assumes have previously been set up.
One thing I haven't finished doing is checking that trying to move clips
using keystrokes and the mouse at the same time is completely safe.
Post by Paul LicameliIt might entail difficult work in our dispatching of key events. Or it
may be that I want to complete an undo transaction, with consolidation, at
each auto repeat -- not wait for the key up -- to evade the problems.
All I can say is that it would be good if adding undo items on key up could
be made to work satisfactorily, as that's what would be most useful for
users. However, if not, then having separate items would be better than
nothing.
David.
ps On Windows there appears to be a problem with ctrl+z working after
moving clips using the keyboard due to some sort of focus issue - I'm
having a look at this problem.
Post by Paul LicameliDavid, I want to unblock your efforts as soon as I can. We can talk
further about this. Whatever you do, don't use the word "sorry" in emails
to me! The apologies are all mine.
PRL
Post by Paul LicameliPending further study, I call a halt on David's clip move project, and I
may decide to revert commit b91160795dedce54745102027f8bb0908828772a and
request different solutions be found.
I will state my reasons very soon.
PRL
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel