Open nus-pe-bot opened 4 years ago
This bug arised because user initially copied pasted bars in the song before invoking the overlay command.
After analysising our code, we found out the cause:
I implemented the copy command by copying a reference of the bars and inserting it into the music track.
My team mate Rishi implemented the overlay command by directly changing the bar in the music track.
This bug arised because:
This bug could have been completely avoided if both of us have created a new bar to replace or add to the music track instead of directly modifying the music track by reference.
--
From what I understand in the User Guide, the command overlays bar 2 to bar 3 and onwards but bar 1 got affected as well.
[original: nusCS2113-AY1920S1/pe-interim#169]