Closed ShurikMur closed 6 years ago
Yeah, it seems we should be resetting our LCD in some more scenarios. Thanks for the bug report.
Can anyone reproduce this in master. possibly fixed by #1570.
This still happens on master, but I wonder if this is a bug or not.
I don't know though if what I am experiencing is the same as @ShurikMur when this bug report got written. Maybe there was indeed a bug that was fixed by #1570.
If you play something on piano roll then pause (the pause word is important here, stop resets the timer) and close the piano roll the Timer will show a time offset still related to Piano Roll.
But see: since piano roll can keep playing on background even when closed means that the Timer is still bound to the Piano Roll instead of the Song Editor, which is not much of an issue to me, but can be "fixed". This however overrides what someone can think of as a feature, restoring the last Piano Roll timeline point when reopening it.
The correct wording for this issue in this case would be: Unbound Piano Roll from Timer when closed and paused.
A much better solution for this would be to avoid binding the Timer carelessly between the Song Editor and Piano Roll. Storing state for this in two different variables: one for each, and setting the timer when one gets focus or another.
A much better solution for this would be to avoid binding the Timer carelessly between the Song Editor and Piano Roll. Storing state for this in two different variables: one for each, and setting the timer when one gets focus or another.
That sounds about right actually. :+1:
@tresf Yeah, but bear in mind that this issue can still be "fixed" without this refactor being made. :bear:
EDIT: Also please replace "Unbind" where I said "Unbound".
I'm not still having this issue on master, could someone test this and confirm before I close the issue?
could someone test this and confirm
Confirming, i can play from bar 0:0:0 in songeditor even though pianoroll has timer value paused at 5:2:0. If i stop play in song-editor and i reopen the paused piano-roll, it is now not at bar 5:2:0, but at bar 0:0:0 If i pause in song-editor and i reopen the paused piano-roll, it is now at bar 5:2:0.
imo logical and good behaviour. Song-editor stop resets timer, is ok
Alright, I'm closing the issue based on that. If it works on master and the latest RC then I'm not worried.
Edited Jan 30th @tresf added @badosu's better description of the issue
V 1.1.0, win 32
How to reproduce:
It starts from a beginning of song, but the timer goes from the last value after playing in a piano roll. If stop and play again - timer resets and works properly.