lilypond-devel
[Top][All Lists]
Advanced

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

Re: Removing the stem engraver?


From: Juergen Reuter
Subject: Re: Removing the stem engraver?
Date: Thu, 16 Feb 2006 12:43:32 +0100 (CET)


Hi, all!

As I remarked a couple of months ago, I had similar problems with ancient notation. Typographically, to my experience, you will get by far the best results by

(1) providing duration-independent notehead selection by patching scm/output-lib.scm as follows:

Index: scm/output-lib.scm
===================================================================
RCS file: /cvsroot/lilypond/lilypond/scm/output-lib.scm,v
retrieving revision 1.97
diff -u -r1.97 output-lib.scm
--- scm/output-lib.scm  10 Feb 2006 12:03:58 -0000      1.97
+++ scm/output-lib.scm  16 Feb 2006 11:14:02 -0000
@@ -146,6 +146,10 @@
        (if (< log -1)
           (string-append (number->string log) "neomensural")
           (number->string log)))
+      ((default-1) "-1")
+      ((default0) "0")
+      ((default1) "1")
+      ((default2) "2")
       (else
(if (string-match "vaticana*|hufnagel*|medicaea*" (symbol->string style))
           (symbol->string style)


    (This patch provides the default noteheads only (e.g. "\override
    NoteHead #'style = default2"); maybe a generalized version of this
    patch should accept any glyph independent of the notehead duration,
    such that you can do maybe something like:
    "\override NoteHead #'style = always-<glyphname>").

(2) with the above patch, setting the style property of NoteHead to the
    desired head (here, as an example, the quarter note head):

    \override Staff.NoteHead #'style = #'default2

(3) assuming that timing is not used, using durations that do not produce
    stems, i.e. typically whole notes, e.g.:

    \set Score.timing = ##f
    f1 g( a) f( d) f( g f1.)

I do recognize that this approach is not much less dirty than the other workarounds that have been suggested so far (e.g., as a side effect, midi timing may not necessarily be what you would like to get), but for meterless music, it gives you at least typographically exactly what you want, afaics. And you do not have at all to fight / do tricks with the stem engraver, beams, etc. -> your .ly file remains human-readable!

Greetings,
Juergen

On Wed, 15 Feb 2006, Mats Bengtsson wrote:

Quoting Dunstan Vavasour <address@hidden>:

In an earlier thread elsewhere someone suggested setting the stem length to 0

\override Stem #'length = #0

- apparently it worked fine for crotchets and minims, but not for quavers.

You probably mean that it works for notes that don't have any beams, but not for beamed notes. See
http://lilypond.org/doc/v2.6/Documentation/user/lilypond-internals/Stem.html#Stem
for documentation of the property called beamed-lengths, that is used
to set the length of beamed stems.

/Mats


Dunstan




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





reply via email to

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