Re: override lyric font size
Op donderdag 14 januari 2010 schreef Gerard: > Here I want to change the font size of the lyrics. I've placed > > \override #' font-size = # -2 > > before \addlyrics, just after it, inside the brackets, and various other > combinations You must also specify what type of objects you want to set the font-size for. This will work. { c' d' e' f' g' } \addlyrics { \override LyricsText #'font-size = #2 One two three four five } you can also just use: { c' d' e' f' g' } \addlyrics { \huge One two three \teeny four five } best regards, Wilbert Berendsen -- Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/ Nederlands LilyPond forum: http://www.lilypondforum.nl/ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: override lyric font size
У чт, 2010-01-14 у 13:43 +0100, Mats Bengtsson пише: > None of these answers provide a method that also can be used to change > the setting in the middle of the score. Yes, thanks :-) > I'd say that the most immediate answer to the original question is to use > ... >\addlyrics { \override LyricText #'font-size = #-2 One and Two > One and Two } > ... > even though the alternative to use the context property fontSize is > perhaps even simpler in this particular example, as I pointed out earlier. > > /Mats -- Dmytro O. Redchuk ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: override lyric font size
You're relying on several short-cuts here, which occasionally do not work the way you expect. When inexplicable errors occur it is often useful to add all the \new ... commands explicitly. Also the syntax of the override command is incorrect. As Mats said, most of the problems will go away if you read the Learning Manual (again, if necessary) and apply what you learn there. Slightly trickier is changing the fontsize of all Lyrics (only). The easiest way is to set the fontsize of LyricText in the Score context. Trevor - Original Message - From: "Gerard McConnell" To: Sent: Thursday, January 14, 2010 12:16 PM Subject: override lyric font size Hello, Here I want to change the font size of the lyrics. I've placed \override #' font-size = # -2 before \addlyrics, just after it, inside the brackets, and various other combinations with << >>. How do I make the lyrics smaller here? And probably more important, is there a way I should be looking at this problem that will allow me to figure similar ones out by myself? (example: I can't figure out why the extra { } is required inside \score { }.) \version "2.12.2" \layout { ragged-right = ##f } \score { { \set Staff.instrumentName = "1" \clef bass \time 2/4 \relative c { c8 c c4 d8 d d4 e8 e e4 c2 \bar "|." } \addlyrics {One and Two One and Two } } } Thanks, Gerard ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: override lyric font size
None of these answers provide a method that also can be used to change the setting in the middle of the score. I'd say that the most immediate answer to the original question is to use ... \addlyrics { \override LyricText #'font-size = #-2 One and Two One and Two } ... even though the alternative to use the context property fontSize is perhaps even simpler in this particular example, as I pointed out earlier. /Mats Dmytro O. Redchuk wrote: У чт, 2010-01-14 у 12:16 +, Gerard McConnell пише: Hello, Here I want to change the font size of the lyrics. I've placed \override #' font-size = # -2 before \addlyrics, just after it, inside the brackets, and various other combinations with << >>. How do I make the lyrics smaller here? You can override font-size in \layout block: \layout { ragged-right = ##f \context { \Score \override LyricText #'font-size = #-2 } } And probably more important, is there a way I should be looking at this problem that will allow me to figure similar ones out by myself? You can use explicitly instantiated named contexts and set font-size on per-context basic, see below. (example: I can't figure out why the extra { } is required inside \score { }.) \version "2.12.2" \layout { ragged-right = ##f } \score { { \set Staff.instrumentName = "1" \clef bass \time 2/4 \relative c { c8 c c4 d8 d d4 e8 e e4 c2 \bar "|." } \addlyrics {One and Two One and Two } } } \score { \new Staff << \set Staff.instrumentName = "1" \clef bass \time 2/4 \new Voice = "melody" { \relative c { c8 c c4 d8 d d4 e8 e e4 c2 \bar "|." } } \new Lyrics \with { \override LyricText #'font-size = #-2 } \lyricsto "melody" { One and Two One and Two } >> } (You can use variables for melody and lyrics to have cleaner \score block). Thanks, Gerard -- = Mats Bengtsson Signal Processing School of Electrical Engineering Royal Institute of Technology (KTH) SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: mats.bengts...@ee.kth.se WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: override lyric font size
У чт, 2010-01-14 у 12:16 +, Gerard McConnell пише: > Hello, > Here I want to change the font size of the lyrics. I've placed > > \override #' font-size = # -2 > > before \addlyrics, just after it, inside the brackets, and various > other > combinations with << >>. How do I make the lyrics smaller here? You can override font-size in \layout block: \layout { ragged-right = ##f \context { \Score \override LyricText #'font-size = #-2 } } > And probably more important, is there a way I should be looking at > this > problem that will allow me to figure similar ones out by myself? You can use explicitly instantiated named contexts and set font-size on per-context basic, see below. > (example: I can't figure out why the extra { } is required inside > \score { }.) > > \version "2.12.2" > > \layout { > ragged-right = ##f > } > \score { >{ >\set Staff.instrumentName = "1" >\clef bass >\time 2/4 >\relative c { > c8 c c4 d8 d d4 e8 e e4 c2 \bar "|." >} > >\addlyrics {One and Two One and Two } >} > } \score { \new Staff << \set Staff.instrumentName = "1" \clef bass \time 2/4 \new Voice = "melody" { \relative c { c8 c c4 d8 d d4 e8 e e4 c2 \bar "|." } } \new Lyrics \with { \override LyricText #'font-size = #-2 } \lyricsto "melody" { One and Two One and Two } >> } (You can use variables for melody and lyrics to have cleaner \score block). > Thanks, > Gerard -- Dmytro O. Redchuk ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: override lyric font size
You should also look at Section "3.3.4 Modifying context properties" which mentions the fontSize property which is a so-called context property and affects the font size of everything that's printed within the current so- called context (such as the Lyrics context used to typeset your lyrics). This gives the simplest solution in your example: ... \addlyrics {\set fontSize = #-2 One and Two One and Two } ... /Mats Mats Bengtsson wrote: You should find answers to these questions in the Learning Manual, especially in Sections "4 Tweaking output" and "3.1.2 Score is a (single) compound musical expression". /Mats Gerard McConnell wrote: Hello, Here I want to change the font size of the lyrics. I've placed \override #' font-size = # -2 before \addlyrics, just after it, inside the brackets, and various other combinations with << >>. How do I make the lyrics smaller here? And probably more important, is there a way I should be looking at this problem that will allow me to figure similar ones out by myself? (example: I can't figure out why the extra { } is required inside \score { }.) \version "2.12.2" \layout { ragged-right = ##f } \score { { \set Staff.instrumentName = "1" \clef bass \time 2/4 \relative c { c8 c c4 d8 d d4 e8 e e4 c2 \bar "|." } \addlyrics {One and Two One and Two } } } Thanks, Gerard ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing School of Electrical Engineering Royal Institute of Technology (KTH) SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: mats.bengts...@ee.kth.se WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: override lyric font size
You should find answers to these questions in the Learning Manual, especially in Sections "4 Tweaking output" and "3.1.2 Score is a (single) compound musical expression". /Mats Gerard McConnell wrote: Hello, Here I want to change the font size of the lyrics. I've placed \override #' font-size = # -2 before \addlyrics, just after it, inside the brackets, and various other combinations with << >>. How do I make the lyrics smaller here? And probably more important, is there a way I should be looking at this problem that will allow me to figure similar ones out by myself? (example: I can't figure out why the extra { } is required inside \score { }.) \version "2.12.2" \layout { ragged-right = ##f } \score { { \set Staff.instrumentName = "1" \clef bass \time 2/4 \relative c { c8 c c4 d8 d d4 e8 e e4 c2 \bar "|." } \addlyrics {One and Two One and Two } } } Thanks, Gerard ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- = Mats Bengtsson Signal Processing School of Electrical Engineering Royal Institute of Technology (KTH) SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: mats.bengts...@ee.kth.se WWW: http://www.s3.kth.se/~mabe = ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
override lyric font size
Hello, Here I want to change the font size of the lyrics. I've placed \override #' font-size = # -2 before \addlyrics, just after it, inside the brackets, and various other combinations with << >>. How do I make the lyrics smaller here? And probably more important, is there a way I should be looking at this problem that will allow me to figure similar ones out by myself? (example: I can't figure out why the extra { } is required inside \score { }.) \version "2.12.2" \layout { ragged-right = ##f } \score { { \set Staff.instrumentName = "1" \clef bass \time 2/4 \relative c { c8 c c4 d8 d d4 e8 e e4 c2 \bar "|." } \addlyrics {One and Two One and Two } } } Thanks, Gerard ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user