[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lilypond-user Digest, Vol 146, Issue 98
From: |
David Sumbler |
Subject: |
Re: lilypond-user Digest, Vol 146, Issue 98 |
Date: |
Mon, 19 Jan 2015 21:50:10 +0000 |
> > > From: Noeck <[hidden email]>
> >
> > > To: [hidden email]
> > > Subject: Re: Printing titles at a consistent size
> > > Date: Sun, 18 Jan 2015 23:57:09 +0100
> > >
> > > Hi,
> > >
> > > if I am not mistaken, there was some discussion and a solution how
> > to get the
> > > line space consistent for different settings of the staff space
> > within the
> > > discussion about a new Mutopia tagline.
> > >
> > > Unfortunately, I can not find it anymore. But I think it involved
> > having a zero
> > > baseline-skip:
> > > \override #'(baseline-skip . 0 )
> > > Perhaps, some keywords in this mail could help to find some more
> > hints.
> > >
> > > HTH,
> > > Joram
> > I have just tried this - I thought it sounded promising.
> >
> > It didn't help, except that it seems to show what is happening: in
> > the
> > parts (which have the larger global-staff-size), not only are the
> > characters in the titles spaced too far apart, but the lines of text
> > are
> > also vertically further apart than in the score.
> >
> > So it looks as if the second global-staff size setting is causing
> > the
> > print to be spaced as if it were proportionally larger than in the
> > score
> > (with the smaller global-staff-size), but the abs-fontsize specified
> > in
> > my bookTitleMarkup is forcing the characters themselves to be
> > printed at
> > the size I actually want. I can see a sort of logic in this, but
> > it
> > isn't useful!
> >
> > David
> >
> Can you show us a picture/PDF or provide a small example of what you
> are currently trying? I have some ideas, but I want to make sure you
> aren't already doing them...
> >
> >
> Thanks,
> Abraham
I have tried so many different permutations of setting relative or
absolute font size, having one or two definitions for bookTitleMarkup,
placing things in different scopes etc. that I have lost track of what
didn't work - which was everything until an hour ago. I have now found
something that does work, ungainly though it undoubtedly is.
What I now have, basically, is this:
\version "2.18.0"
#(set-global-staff-size 16)
\book {
%This is the score
\paper
bookTitleMarkup = \myBookTitleMarkupSixteen
}
\score { }
\layout { }
}
#(set-global-staff-size 20)
\book {
%This is the first of the instrumental parts
\paper
bookTitleMarkup = \myBookTitleMarkupTwenty
}
\score { }
\layout { }
}
In the 2 different bookTitleMarkup definitions, I have used proportional
measurements, corresponding to the 5/4 ratio of the staff sizes in the
score/parts. So I have (baseline-skip . 5) and (baseline-skip . 4)
respectively. I specify the size of each item using \fontsize, with a
difference of 2 for each corresponding item in the score and part
definitions respectively - e.g., where I have \fontsize #7 in the
definition for the score, I have \fontsize #5 in the definition used for
the parts (this difference of 2 corresponds to the statement made in the
Learning Manual section 4.3.2, where it says that 1 step is
approximately equivalent to 12%.)
The result is that the printed output is virtually identical in the
score and parts, despite the difference in staff size in the music that
follows.
I dare say there is a prettier and more concise way of doing this, but
at least I now have something that works!
David
- Re: lilypond-user Digest, Vol 146, Issue 98,
David Sumbler <=