1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-20 15:41:18 +01:00

Bug501: Improve time-shift of clips between tracks...

... When you click in a stereo clip, move the correct partner clip with it.

When you click in the selection and it spans clips, move all clips containing
any part of the selection.  (As horizontal dragging does.)  Even if these are
not all within the same stereo track.

I implemented this rule:  If any clip moves up (or down) by n audio tracks
(not counting the label tracks), all clips must move the same number, and
all must move from mono to mono or left to left or right to right.  If that
is not possible, no move happens.
This commit is contained in:
Paul Licameli
2016-01-24 15:22:48 -05:00
parent e9479e6c26
commit d70ff3337d
5 changed files with 140 additions and 152 deletions

View File

@@ -34,10 +34,12 @@ public:
TrackClip(Track *t, WaveClip *c)
{
track = origTrack = t;
dstTrack = NULL;
clip = c;
}
Track *track;
Track *origTrack;
Track *dstTrack;
WaveClip *clip;
};