bug-lilypond
[Top][All Lists]
Advanced

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

bug with stem-shorten property


From: Werner LEMBERG
Subject: bug with stem-shorten property
Date: Sun, 21 Jul 2002 21:41:59 +0200 (CEST)

This is CVS 2002-07-09 11:33.

Running the code below gives the following crash:

  lilypond: ../flower/include/array.hh:149:
            Real & Array<double>::elem_ref(int) const:
            Assertion `i >=0&&i<size_' failed.
    error: 

  LilyPond crashed (signal 6).
  Please submit a bugreport to address@hidden

Commenting out the line

  \property Voice.Stem \revert #'stem-shorten

makes it work.

It is completely unclear to me what the list elements for stem-shorted
really mean.  This is poorly documented IMHO.  The same is true for
the lists associated with stem lengths for beams.


BTW, what do you think about making properties local to the current
`group' (< ... >), introducing a \global keyword if necessary?  This
would simplify the property handling a lot since in most cases you
only have to \set something without the need to \revert.


    Werner

======================================================================

\include "paper16.ly"
\include "deutsch.ly"

rechts = \notes \relative c'' {
  \clef treble

  \time 3/4 < { <g8 c e>   <as4 c d> <as c d>    <as8 c d> ~ } \\
              {
\property Voice.Stem \set #'stem-shorten = #'(0 0)
                [e8_"dim." f]       d4       [c8 d]
\property Voice.Stem \revert #'stem-shorten
                                                             } > |
  < { <as8 c d> <a4 c e> <a c e> <a8 c e> ~ } \\
    {
      e2.
                                          ~ } > |
}

Klavier = \context PianoStaff \notes <
  \context Staff = treble {\rechts}
>

\score {
    \Klavier

  \paper {
    linewidth = -1
  }
}



reply via email to

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