bug-lilypond
[Top][All Lists]
Advanced

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

\score within \markup only prints the first measure of the \markup score


From: Rick Hansen (aka RickH)
Subject: \score within \markup only prints the first measure of the \markup score
Date: Wed, 20 Sep 2006 19:10:54 -0700 (PDT)

v2.9.17 

I believe I have uncovered a bug when using the \markup { \score { ... } }
capability.  In the following example I assign a markup score of 2 measures
to a variable called "varFreeFormOssia".  Then in the main music I apply
that markup variable to a note.  I would expect 2 measures of markup score
to print, however only the first measure shows up.  To confirm that my
markup score is ok, it prints 2 measures just fine when it is run as a
stand-alone score NOT in markup. 

This example will run as-is and demonstrates the bug.  Here is a link on the
lilypond users forum that has a little more info, related to system-count.

http://www.nabble.com/Problem-with-%5Cmarkup-%7B-%5Cscore-%7D-quitting-after-first-measure-tf2308238.html

I want to add that omitting the system-count parameter fixes this symptom
(but not the bug), however in my case that omission is not an option because
I depend on system-count to fit same songs on many different paper sizes.  I
avoid at all costs using \break tags in my music so that I can freely change
paper sizes using the same musical notes free of \break tags.  I would think
there has to be a way to fix this bug and still keep the ability to specify
the system-count parameter which prevents my page overflows.


thanks 
Rick 


%EXAMPLE BEGIN 

\version "2.9.17" 
\include "english.ly" 

varFreeFormOssia = \markup { 
   \score { 
       \new Staff \with { 
            \remove Time_signature_engraver 
            \remove Clef_engraver 
            \remove Key_engraver 
            } % end ossia staff with 
            { 
               #(set-accidental-style 'modern) 
               \clef "treble" 
               \key ef \major 
               \time 4/4 
               \relative c' { 
                  % ossia measure 1 
                  a'^\markup { \tiny \sans "dear ossia, measures two, how
come only one measure is printing you?" } b c d 
                  | 
                  % ossia measure 2 
                  e f g a 
                  | 
               } % end ossia measures 
            } % end ossia staff music 
       \layout { 
            ragged-right = ##t 
            ragged-last = ##t 
            ragged-bottom = ##t 
            ragged-last-bottom = ##t 
            indent = 0.0\in 
       } % end ossia layout 
   } % end ossia score 
} % end ossia markup 

% Begin main score 

\score { 

   \new Staff { 
         #(set-accidental-style 'modern) 
         \clef "treble" 
         \key ef \major 
         \time 4/4 
         \relative c'' { 
         %1 
            g'4. g8 g2~ | 
         %2 
            g8 r <c,\3> ef \times 2/3 { <g\2>4 f ef } | 
         %3 
            <g a, ef'>1~ | 
         %4 
            g8 r c, ef \times 2/3 { g4 f ef } | 
         %5 
            <g af, ef'>1~ | 
         %6 
            g8 r c, ef \times 2/3 { g4 f ef } | 
         %7 
           \once \override TextScript #'padding = #6 
            g2_\varFreeFormOssia gs2 | 
         %8 
            a2 gs2 | 
         %9 
            g2 gs2 | 
         %10 
            a2 bf2 \bar "||" 
          
         } % end notes 

   } % end staff 

   \layout { 
         ragged-right = ##f 
         ragged-last = ##f 
         ragged-bottom = ##t 
         ragged-last-bottom = ##t 
         indent = 0.0\in 
         system-count = #2 
         \context { \RemoveEmptyStaffContext } 
         \context { \Score 
            \override VerticalAxisGroup #'remove-first = ##t 
         } 
         \context { \Staff 
            \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 0) 
         } 
   } % end main layout 

} % end main score 



%EXAMPLE END 

-- 
View this message in context: 
http://www.nabble.com/%5Cscore-within-%5Cmarkup-only-prints-the-first-measure-of-the-%5Cmarkup-score-tf2309341.html#a6420376
Sent from the Gnu - Lilypond - Bugs mailing list archive at Nabble.com.





reply via email to

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