lilypond-devel
[Top][All Lists]
Advanced

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

Re: box-grob-stencil


From: Mats Bengtsson
Subject: Re: box-grob-stencil
Date: Thu, 11 Aug 2005 10:33:47 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

I don't know exactly why it gives a stack overflow, but here are some
hints:
- print-function is normally undefined from the System object,
  whereas NoteHead already has a print-function that typesets
  the note head, which you probably want to keep as well.
- Take a look at the example called boxed-stencil.ly in the
  Tips and Tricks document.

   /Mats

Trevor Baca wrote:
I'm confused as to why it is that ...

%%%%%%%%%%%%%%%%%%%%

\score {
  \new Staff {
     \repeat unfold 64 {c'8}
  }
  \layout {
     \context {
        \Score
        \override System #'print-function = #box-grob-stencil
     }
  }
}

%%%%%%%%%%%%%%%%%%%%


... does exactly what you expect but ...

%%%%%%%%%%%%%%%%%%%%

\score {
  \new Staff {
     \repeat unfold 64 {c'8}
  }
  \layout {
     \context {
        \Score
        \override NoteHead #'print-function = #box-grob-stencil
     }
  }
}

%%%%%%%%%%%%%%%%%%%%


... gives a stack overflow along the lines of ...

Preprocessing graphical objects... <unnamed port>: In expression "Make
a box of exactly the extents of the grob.  The box precisely
encloses the contents.
":
<unnamed port>: Stack overflow

Printing out the extents of grobs is a really cool idea, especially
when toying with the vertical alignment of contexts; is
box-grob-stencil supposed to work for grobs other than System?

Trevor.


_______________________________________________
lilypond-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-devel

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        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]