denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Denemo-devel] [bug #31557] 0.8.21 view quirks on windows-not exactly a


From: anonymous
Subject: [Denemo-devel] [bug #31557] 0.8.21 view quirks on windows-not exactly a bug
Date: Sun, 07 Nov 2010 00:13:14 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729)

Follow-up Comment #5, bug #31557 (project denemo):

This is a highly speculative post.

There is a solution to the bug of the cursor not being visible sometimes and
the ragged-right issue, but it could be significant work to implement.  That
would be to make the view window, or "camera", more independent of the cursor.
 The whole score would have the illusion of being one huge dynamic image, and
the view window would be the portion of this that is seen.  

Thinking about this, all one would need to know is 1, which bar the left edge
of the view window intersects, which I will call the parent bar, and 2, how
far to the right of the bar's beginning this intersection is, call that delta.
 So if the parent bar is 200 pixels wide and delta is 50, three fourths of the
leftmost bar would be visible.  The parent bar and enough following bars would
be drawn to a buffer, this would be cropped (cutting off a width delta pixels
on the left) and displayed to the screen.  When delta exceeded the length of
the parent bar, this length is subtracted from delta and the parent bar is
changed to the next bar, and when delta drops below zero, the parent bar
becomes the previous bar and delta becomes the length of that bar + delta
(delta being negative).  Delta could have a velocity, which would be the
velocity of the view window relative to the page, and its acceleration should
be just right so that the cursor was kept pretty much right in the middle of
the view area.  (This would make the camera movement smooth rather than jerky.
 It would still need to jump if the cursor jumps to the beginning of the
score, etc.)  One would need to watch out when the camera goes off the left or
right edge of the score.

If I had a lot of time, knew gtk, cairo, and denemo's code,(which I don't) I
would try to contribute this.  But you guys who know these things, what do you
think?  Is this feasible?

-Dan W

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31557>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]