Yesterday, 05:43 AM
Mike, the 100% solution to me would be to also calculate the waiting time before scrolling starts and reduce scrolling time, assuming that the you always want to keep the line you want to read in the middle of the screen.
Example:
Song has 4 pages and takes 4 minutes.
Start scrolling after 0.5 minutes (then you have reached the middle of page 1)
and scroll for 3 minutes (then you should be in the middle of page 4).
Start time: 0.5*song duration /#pages
Scroll time: (#pages-1)/#pages*song duration
Example:
Song has 4 pages and takes 4 minutes.
Start scrolling after 0.5 minutes (then you have reached the middle of page 1)
and scroll for 3 minutes (then you should be in the middle of page 4).
Start time: 0.5*song duration /#pages
Scroll time: (#pages-1)/#pages*song duration