lilypond-user
[Top][All Lists]
Advanced

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

Re: arrow notehead and articulation


From: Nathan
Subject: Re: arrow notehead and articulation
Date: Tue, 20 Nov 2012 08:40:03 -0800

On Tue, Nov 20, 2012 at 6:06 AM, Orm Finnendahl <address@hidden> wrote:
Hi,

 I'm trying to replace a notehead above the staff by an arrow
indicating a very high pitch. Here is my code, resulting in the
attached example png: [...]

Here are two solutions. The first one kills the ledger lines entirely (which, imo, looks the nicest). The second one aligns the notehead inside the \markup.

pfeileins = {
  \once \override NoteHead #'no-ledgers = ##t
  \once \override NoteHead #'stencil = #ly:text-interface::print
  \once \override NoteHead #'stem-attachment = #'( 0.1 . 1 )
  \once \override NoteHead #'text =
\markup {
    \fontsize #5 {
        \arrow-head #Y #UP ##f }}}
        
pfeilzwei = {
  \once \override NoteHead #'stencil = #ly:text-interface::print
  \once \override NoteHead #'stem-attachment = #'( 0.1 . -2 )
  \once \override NoteHead #'text =
\markup {
    \raise #1.5
    \fontsize #5 {
        \arrow-head #Y #UP ##f }}}

\relative c''' { \pfeileins f-. \pfeilzwei f-. }


Regards,
Nathan

reply via email to

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