View Issue Details

IDProjectCategoryView StatusLast Update
0006343ardourbugspublic2020-04-19 20:17
Reporterhg87 Assigned Tohg87  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version4.X git (version in description) 
Summary0006343: Undo of region copy causes an offset in original regions
DescriptionGit version: ea8b5a970f7fdc0818fb86c32c93dd564eff941c
Also noted this behaviour in 4.0 and onwards.

Reproduce it with the following steps:
1) add a MIDI track
2) select grab mode, set grid to beats (and mouse)
3) select edit mode, insert a new region at the 2nd beat and then align it in grab mode on the 1st beat
4) select edit mode, insert another region aligned at the 5th beat
5) select grab mode; copy & paste the regions to 9th beat
6) hit CTRL-Z
7) Result will be the undo of the copy and an offset induced in the original regions.


Kind regards,
Harald Gutmann
TagsNo tags attached.

Activities

hg87

2015-05-24 15:55

reporter   ~0016722

Last edited: 2015-05-26 10:25

After doing some further tests I have found out that this also applies to Audio regions and is not specific to MIDI.

For Audio reproduction:
1) create an audio track
2) record some beats
3) move audio to a different position
4) copy audio region
5) undo copy
6) copy undone & audio ends up on starting position

It seems that the following pattern applies:
Reg1.Pos1 -> Reg1.Pos2 -> Copy -> Undo == Reg1.Pos1
Reg1.Pos1 -> Reg1.Pos2 -> Reg1.Pos2 -> Copy -> Undo == Reg1.Pos2

Which means, if you select the Region1 on Position2 again, move it, but place it back to the same Position2, the copy undo works as supposed.

hg87

2015-05-26 07:42

reporter   ~0016728

This problem persits during saving and reloading the session.

hg87

2015-05-28 07:33

reporter   ~0016742

The changset introducing the bug was:
https://github.com/Ardour/ardour/commit/cabd3783fec773f40740e4427c32808b40012d9b

hg87

2015-05-28 14:07

reporter   ~0016743

Fixed with commit 8dbd55236abdb0ca9d03e1964dd9e8515c4ac006.
Thank you Robin Gareus for fixing this!

hg87

2015-05-28 14:08

reporter   ~0016744

Fixed with commit 8dbd55236abdb0ca9d03e1964dd9e8515c4ac006.

system

2020-04-19 20:17

developer   ~0023467

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2015-05-24 10:17 hg87 New Issue
2015-05-24 15:55 hg87 Note Added: 0016722
2015-05-24 16:07 paul Summary Undo of MIDI region copy causes an offset in original regions => Undo of region copy causes an offset in original regions
2015-05-26 07:42 hg87 Note Added: 0016728
2015-05-26 10:25 hg87 Note Edited: 0016722
2015-05-28 07:33 hg87 Note Added: 0016742
2015-05-28 14:07 hg87 Note Added: 0016743
2015-05-28 14:08 hg87 Note Added: 0016744
2015-05-28 14:08 hg87 Status new => resolved
2015-05-28 14:08 hg87 Resolution open => fixed
2015-05-28 14:08 hg87 Assigned To => hg87
2020-04-19 20:17 system Note Added: 0023467
2020-04-19 20:17 system Status resolved => closed