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
D. Michael McIntyre
On 01/07/2016 06:28 PM, D. Michael McIntyre wrote:
> 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,
Hmmm, good one. I was able to recreate by deleting the tracks until
there were three. On the second track, add segments in the same place
until 20+ were stacked up contemporaneously. Then I selected them all
and deleted them with the delete key. Scrollbar is still there. Undo.
No scrollbar and can't scroll to track 3.
I'm working on something similar with the drag/copy stuff right now.
I'll add this to my list of things to look at.
On 01/08/2016 07:49 AM, D. Michael McIntyre wrote:
> On 01/07/2016 06:44 PM, Ted Felix wrote:
>> I'm working on something similar with the drag/copy stuff right now.
>> I'll add this to my list of things to look at.
> The only consistent way I can find to jiggle my way into a refresh is to
> move a track. That always works. That's one potential source of clues
> I didn't get around to exploring.
I'm looking at this right now, and adjusting the window size also works.
> It would suit me just fine if you figure it out before I do.