Hi Jeffrey, thanks, that kind of works, but the position of the articulation is wrong for other pitches and doesn't seem to be relative to the notehead's Y-position.
Does anybody know how to fix that? -- Orm Am Dienstag, den 20. November 2012 um 16:13:39 Uhr (+0100) schrieb Jeffrey Trevino: > 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 > <[1]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 > [2]lilypond-user@gnu.org > [3]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: [4]jeffrey.trev...@gmail.com > 〚《〠》】〶【〖〠〗〶〛〷 > 9310H Redwood Dr. > La Jolla, CA 92037 > USA > 〖〠〗〶〛〷〚《〠》】〶【 > > References > > Visible links > 1. mailto:o.finnend...@inm.mh-freiburg.de > 2. mailto:lilypond-user@gnu.org > 3. https://lists.gnu.org/mailman/listinfo/lilypond-user > 4. mailto:jeffrey.trev...@gmail.com > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user