From: Michelle D. <ztr...@ad...> - 2006-03-12 13:00:19
|
On Sunday 12 March 2006 06:38 am, Chris Cannam wrote: > On Sunday 12 Mar 2006 11:33, Michelle Donalies wrote: > > Originally, the fret num was getting drawn one line too high. I put a > > kludge in drawNoteAux to add a line width to the y coordinate. This > > is because the tablature has 6 lines instead of 5. > > Sorry, why does the number of lines mean it gets drawn in the wrong > place? Line counting starts with the lowest line at 0 and goes up the screen. Somewhere, a hard-coded number of lines is set to "5". It seems to start with line 4 at the top and draw down the screen (in increasing y coordinates). The extra line is appearing at the bottom of the staff (largest y) and is being ignored, hence the kludge. On a 7-line tab staff, the fret number gets drawn 2 lines too high, etc. That hard-coded value needs to go away and be replaced with LinedStaff::getLineCount(), but I can't find it. I suppose I could grep the entire project for "5", but I was hoping you could point me in the right direction. |