lilypond-user
[Top][All Lists]
Advanced

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

Re: Inline score inside markup - bugs in music alignment


From: Jiri Zurek (Prague)
Subject: Re: Inline score inside markup - bugs in music alignment
Date: Fri, 30 Oct 2009 00:06:45 -0700 (PDT)

Dear Neil,
your tweak of the score inside markup is indeed a GREAT improvement. I
altered the scm/define-markup-commands.scm according to you suggestion and
the score inside markuplines is now split into multiple lines as necessary.
Nevertheless, for flawless output, I can see still one problem, regarding
the start of the staff. The staff always begins at the start of a new line,
leaving the previous line of the text half empty. This is not the case when
the music is very short: then it is exactly in-line (i.e. staying at the
same line as the surrounding text), but when the music is multi-line, it
always tends to start at a new line. This is not so big problem, but when
you need justified lines in the markupblock - and you do need justified
lines in a top-quality publication - then this will ruin the half-empty line
before the score, since the words will be spaced very wide apart (please see
the appended example). This is not quite acceptable. Either I would need to
let the last text line before the music ragged, or - better - I would need
the staff to start exactly at the same line with the text to fill the rest
of the half empty line, and only then break to a second line. This would be
the most perfect solution. Is this possible, or am I asking too much?

Also, please forgive my inability with Lilypond - I did read the
documentation for the vertical spacing - but I still did not figure out how
to make the systems inside the markuplines block appear closer together.  As
you can see from the example below, I was trying \override VerticalAxisGroup
#'minimum-Y-extent = #'(0 . 0), also between-system-padding = #0.0 and
between-system-space = #0.0 and still, the staves are wider spaced than
necessary. At best, the system vertical spacing should imitate the tight
spacing of the lines of the surrounding text. Any help appreciated.

%begin Lily - Example  
\version "2.12.2" 
\markuplines { 
  \justified-lines { 
  the inline music: 
  \vcenter
  \score { \new Staff \relative c' 
            { \repeat unfold 12 {r4 a d f a d f2} } 
    \layout { 
      indent = 0.0\cm
      \context { 
        \Staff 
        fontSize = #-12 
        \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0) 
        \override StaffSymbol #'staff-space = #(magstep -12) 
        \override StaffSymbol #'thickness = #(magstep -12) 
        \remove "Time_signature_engraver"
      } 
      \context {
        \Score
        \remove "Bar_number_engraver"
        between-system-padding = #0.0
        between-system-space = #0.0    
      }
    
    } 
  } 
  
   the text continues after the music... 
  } 
} 
%end Lily - Example


Neil Puttock wrote:
> 
> If you don't mind amending scm/define-markup-commands.scm, you can try
> the following tweaks.
> (define-builtin-markup-command (score layout props score) [...]
> Despite the rudimentary formatting here (you can only set the distance
> between the systems; paper variables set in \layout will be ignored),
> I think this would be a useful improvement on the current behaviour,
> so I'll prepare a patch with these changes.
> 

-- 
View this message in context: 
http://old.nabble.com/Inline-score-inside-markup---bugs-in-music-alignment-tp26111727p26125819.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]