|
From: | Juergen Reuter |
Subject: | Re: Stemless music with slurs |
Date: | Tue, 15 Nov 2005 20:25:22 +0100 (CET) |
I think the following does *almost* what you want (only almost, because you get harmonic note heads instead of quarter note heads):
\version "2.7.17" #(define-public (note-head::calc-glyph-name grob) "2") 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 \key f \major \mark \markup {Antiphon \hspace #2 \italic{"Ps. 29"} } \override Staff.NoteHead #'style = #'harmonic \slurUp f1 g( a) f( d) f( g f1.) \barTwo f1 g( a) a1. \barOne a1 f g a c( d c) c1. \barTwo f,1( g) a( g) a f( g f1.) \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 } }The only thing that does _not_ work here is the "define-public" definition at the very top: it has no effect. It is supposed to replace the definition in scm/output-lib.scm, such that you always get quarter note heads, but it does not seem to be possible to override this definition (or do I miss something?). If you directly modify output-lib.scm accordingly, than it perfectly works. (Ideally, you probably would like to patch lily such that you can say something like "\override Staff.NoteHead #'style = #'4" or "\override Staff.NoteHead #'style = #'default4".)
The basic idea here is to use stemless whole note durations and override NoteHead style such that whole notes are printed with quarter note heads.
Greetings, Juergen On Tue, 15 Nov 2005, Michael Welsh Duggan wrote:
Mats Bengtsson <address@hidden> writes: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 = ##fGodd idea, but it doesn't work in practice. The stems are gone, but slurs still avoid them as if they were there, probably due to the same code in slur-scoring.cc. Example:
[Prev in Thread] | Current Thread | [Next in Thread] |