lilypond-user
[Top][All Lists]
Advanced

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

Re: Why a \score inside \markup doesn't allow breaks?


From: Mats Bengtsson
Subject: Re: Why a \score inside \markup doesn't allow breaks?
Date: Thu, 29 Jan 2009 14:55:38 +0100
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

If you take a look at the implementation of the \score markup function, you'll notice
that it just picks out the first system of the score and ignores the rest.
A skilled Scheme programmer should be able to easily implement a version of \score
that actually typesets all the systems.

  /Mats



M Watts wrote:
Risto Vääräniemi wrote:
Hi again,

Has no-one else encountered this issue?


BR,

Risto

2009/1/21 Risto Vääräniemi <address@hidden>:

I was wondering why a \score inside \markup doesn't allow breaks. If I
insert a \break everything after it is ignored. If I want to have a
multi-line piece inside a \markup I have to put multiple \scores in a
column. Is there another way?

-Risto

%%%% start %%%%
\version "2.12.1"

\markup
{
   \score
   {
       {c'1 c' c' c' \break c' c' c' c'}
       \layout {}
   }
}
%%%% END %%%%


Hmm, I can see how this could be annoying -- I guess \markup's ability to include a \score was originally intended for short phrases and alternative readings etc., although the docs provide an example of some length.
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Music#Music

I've tried:
----------------------
\version "2.12.1"

\markup
{
  \score
  {
\new Voice \with { \remove Forbid_line_break_engraver } % intended for allowing \breaks at 'wrong' places in the bar
       { c'1 c' c' c' \break c' c' c' c' }
      \layout {}
  }
}

--------------------------

and

--------------------------
\version "2.12.1"

\markup
{
  \score
  {
      \new Staff {c'1 c' c' << c' { s1 \break } >>  c' c' c' c'}
      \layout {}
}
}
-----------------------------

Terminal output insists that Lily's "Calculating line breaks... " but everything after \break is ignored in both cases.




_______________________________________________
lilypond-user mailing list
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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