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 <
o.finnend...@inm.mh-freiburg.de> 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
> lilypond-user@gnu.org
> 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: jeffrey.trev...@gmail.com
〚《〠》】〶【〖〠〗〶〛〷
9310H Redwood Dr.
La Jolla, CA 92037
USA
〖〠〗〶〛〷〚《〠》】〶【
<http://www.jeffreytrevino.com/>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to