[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: arrow notehead and articulation
From: |
Orm Finnendahl |
Subject: |
Re: arrow notehead and articulation |
Date: |
Tue, 20 Nov 2012 17:27:50 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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
> <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
> [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: address@hidden
> 〚《〠》】〶【〖〠〗〶〛〷
> 9310H Redwood Dr.
> La Jolla, CA 92037
> USA
> 〖〠〗〶〛〷〚《〠》】〶【
>
> References
>
> Visible links
> 1. mailto:address@hidden
> 2. mailto:address@hidden
> 3. https://lists.gnu.org/mailman/listinfo/lilypond-user
> 4. mailto:address@hidden
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user