lilypond-user
[Top][All Lists]
Advanced

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

Inline score inside markup - bugs in music alignment


From: Jiri Zurek (Prague)
Subject: Inline score inside markup - bugs in music alignment
Date: Thu, 29 Oct 2009 05:00:29 -0700 (PDT)

When \score is places inside \markuplines block, there are 3 problems:
1) music is not exactly inline (even if resized to fit the height of the
text line) but its baseline is always a bit under the baseline of the text
at the same line as the following example shows. I was trying to get rid of
the staff padding by adding VerticalAxisGroup #'minimum-Y-extent = #'(0 .
0). This helped a lot, but the staff would still need to rise a bit to match
the baseline of the text. How this could be done?
%begin Lily - Example 1
\version "2.12.2" 
\markuplines {
  \wordwrap-lines {
  the inline music:
  \score { \new Staff \relative c' 
            { f2( a4) }
    \layout {
      \context {
        \Staff
        fontSize = #-12
        \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
        \override StaffSymbol #'staff-space = #(magstep -12)
        \override StaffSymbol #'thickness = #(magstep -12)
      }
    }
  }
  
   the text continues after the music...
  }
}
%end Lily - Example 1


2) if the staff spans over several lines (longer music), then only the first
line of the music is shown and the rest is ignored! How can this be
corrected? Or is it a genuine bug in LilyPond?
%begin Lily - Example 2
\version "2.12.2" 
\markuplines {
  \wordwrap-lines {
  the inline music:
  \score { \new Staff \relative c' 
            { f2( a4) g \break f2 e}
    \layout {
      \context {
        \Staff
        fontSize = #-12
        \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
        \override StaffSymbol #'staff-space = #(magstep -12)
        \override StaffSymbol #'thickness = #(magstep -12)
      }
    }
  }
  
   the text continues after the music...
  }
}
%end Lily - Example 2

3) in the example below I would expect that the music would start in the
middle of the line where the text ends, then break and continue at the
second line, and at the end of the music, the text should continue again at
the same line where the music finished if there is still some place left.
This would be a perfect in-line music. However, it is not the case. The
music does not start at the same line where the text finished but it starts
a new line under. How can I force the music to start at the same line where
the text finished?

%begin Lily - Example 3
\version "2.12.2" 
\paper { 
    #(set-paper-size "b6") 
    indent = 0.0 
    ragged-right = ##t 
    ragged-last = ##t 
  } 
 
\markuplines {
  \wordwrap-lines {
  the inline music:
    
  \score { \new Staff \relative c' 
            {
        f2( a4) c2( a4) bes2( g'4)
        f8( e) e4 r d c f e d c b a
            }
    \layout {
      \context {
        \Staff
        fontSize = #-12
        \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0)
        \override StaffSymbol #'staff-space = #(magstep -12)
        \override StaffSymbol #'thickness = #(magstep -12)
      }
    }
  }
  
   the text continues after the music...
  }
}
%end Lily -Example 3
-- 
View this message in context: 
http://www.nabble.com/Inline-score-inside-markup---bugs-in-music-alignment-tp26111727p26111727.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.





reply via email to

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