lilypond-user
[Top][All Lists]
Advanced

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

Re: arrow notehead and articulation


From: Jeffrey Trevino
Subject: Re: arrow notehead and articulation
Date: Tue, 20 Nov 2012 16:13:39 +0100

Hi Orm,

It might not be the best way to go, but one solution is to override the Y-offset of the Script object. I added this override into "pfeilzwei" in the code below, and it works just fine on my machine:

pfeileins = {
  \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 . -1 )
  \once \override NoteHead #'extra-offset = #'( 0 . 2 )
  \once \override Script #'Y-offset = #'8
  \once \override NoteHead #'text =
\markup {
    \fontsize #5 {
        \arrow-head #Y #UP ##f }}}

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


grüße aus Berlin,
Jeff Treviño

On Tue, Nov 20, 2012 at 3:06 PM, 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:

pfeileins = {
  \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 . -1 )
  \once \override NoteHead #'extra-offset = #'( 0 . 2 )
  \once \override NoteHead #'text =
\markup {
    \fontsize #5 {
        \arrow-head #Y #UP ##f }}}

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

Unfortunately in "pfeileins" the ledger lines are intersecting the
arrow. Moving the notehead up with the extra-offset property as in
"pfeilzwei" doesn't seem to be the right way as the staccato dot isn't
shifted up as well.

What's the right way to get this done?

--
Orm




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




--
《〠》】〶【〖〠〗〶〛〷〚
Jeff Treviño
PhD Candidate in Music Composition
@ the University of California, San Diego
〖〠〗〶〛〷〚《〠》】〶
Skype: jeffreytrevino
E-mail: address@hidden
〚《〠》】〶【〖〠〗〶〛〷
9310H Redwood Dr.
La Jolla, CA 92037
USA
〖〠〗〶〛〷〚《〠》】〶【


reply via email to

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