lilypond-devel
[Top][All Lists]
Advanced

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

Re: Stemless music with slurs


From: Mats Bengtsson
Subject: Re: Stemless music with slurs
Date: Tue, 15 Nov 2005 11:26:01 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

If you want to remove the stems completely but not the engraver, it should
work to set
\override Staff.Stem #'print-function = ##f

Wait a second, the above solution is for version 2.6 and you are using
version 2.7.14. Then I hope that the following works instead:
\override Staff.Stem #'stencil = ##f

  /Mats

Michael Welsh Duggan wrote:

I've been trying to typeset some English chant in a sort-of
intermediate notation between standard notation and Vaticana neumes.
The follownig piece is an example:

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

\include "english.ly"
\version "2.7.14"

barOne = { \once \override Staff.BarLine #'bar-size = #2
           \bar "|" }
barTwo = { \once \override Staff.BarLine #'extra-offset = #'(0 . 2)
           \once \override Staff.BarLine #'bar-size = #2
           \bar "|" }

chant = \relative c' {
 \set Staff.autoBeaming = ##f
 \set Score.timing = ##f
 \override Staff.Stem #'transparent = ##t
 \override Staff.TimeSignature #'transparent = ##t
 \key f \major
 \mark \markup {Antiphon \hspace #2 \italic{"Ps. 29"} }
 f8 g( a) f( d) f( g f4.) \barTwo
 f8 g( a) a4. \barOne
 a8 f g a c( d c) c4. \barTwo
 f,8( g) a( g) a f( g f4.) \bar "||"
}

text = \lyricmode {
 The Lord will reign
 for e -- ver;
 and will give his peo -- ple
 the gift of peace.
}

\score {
 <<
   \context Voice = staff \chant
   \lyricsto "staff" \new Lyrics \text
 >>
 \layout{
   indent = 0
 }
}
------------------------------------------------------------------------


Now, there have been situations (although not in this piece) where
slurs will look awkward due to their avoidance of the (invisible!)
stems.  Now, the best thing to do would be (IMHO) to remove the
Stem_engraver.  Unfortunatly, in its current incarnation, slurs
segfault when Stem objects are not created.

Example follows:

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

\version "2.7.17"


barOne = { \once \override Staff.BarLine #'bar-size = #2
           \bar "|" }
barTwo = { \once \override Staff.BarLine #'extra-offset = #'(0 . 2)
           \once \override Staff.BarLine #'bar-size = #2
           \bar "|" }

chant = \relative c' {
 \set Score.timing = ##f
 \key f \major
 \mark \markup {Antiphon \hspace #2 \italic{"Ps. 29"} }
 f8 g( a) f( d) f( g f4.) \barTwo
 f8 g( a) a4. \barOne
 a8 f g a c( d c) c4. \barTwo
 f,8( g) a( g) a f( g f4.) \bar "||"
}

text = \lyricmode {
 The Lord will reign
 for e -- ver;
 and will give his peo -- ple
 the gift of peace.
}

\score {
 <<
   \new Staff {
\chant }
%    \lyricsto "staff" \new Lyrics { \text }
 >>
 \layout {
   indent = 0
   \context {
     \Voice
     \remove "Stem_engraver"
   }
 }
}
------------------------------------------------------------------------


I have traced this to Slur_score_state::get_bound_info, where the
following segfaults:
          extremes[d].stem_ = Note_column::get_stem (extremes[d].note_column_);
          extremes[d].stem_dir_ = get_grob_direction (extremes[d].stem_);

I would like to fix this, but have not yet been able to figure out
what all the elements in a Bound_info are for.  Any pointers would be
very welcome.

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

_______________________________________________
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]