Speaking of failure... I burned a whole day with no code to commit. First, I tried to improve the efficiency of searching for notes and sorting them into segments. I made it 25% slower.
Then I moved on and started chasing the refresh problem. I'm almost sure I've seen it in unrelated contexts, but it's really apparent now. Dump 20 segments into the composition in one shot, and the segment canvas doesn't become aware of its new size. If there is no scrollbar, it stays that way. If I force there to be a scrollbar, it's useless, because it isn't aware of the expanded height, so it doesn't scroll all the way. I'm sure it's a very simple thing to diddle, but I looked all over the place without figuring out where to diddle what. That time was not well spent either. Net lines of code to show for four hours: 0 Oh well. I think I just figured out how to fix my last algorithm. I'm having some fun, at least. It has been a long, long time since I undertook something this complicated and ambitious. Many pieces to this puzzle, but I have a plan for everything except the rest height issue and the problem with putting rests in one part where notes exist in another part running on that same line. Both of those last problems will benefit lots of other people too. Our handling of polyphonic parts is still pretty crappy, to the point where it just barely qualifies as functionality. So much hand hiding and hand moving of rests to detangle things. Ugly. -- D. Michael McIntyre ------------------------------------------------------------------------------ _______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
