lilypond-user
[Top][All Lists]
Advanced

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

Re: accidentals in augmented unisons


From: Trevor Daniels
Subject: Re: accidentals in augmented unisons
Date: Wed, 11 Jun 2008 09:42:50 +0100

Hi Luis

The value given to 'right-padding controls the
distance between the pair of accidentals and the
following note.  To adjust the placement of the
individual accidentals you can use various alignment
markup commands (see Appendix B6.2 in the 2.11
Notation Reference).  Here I've used \halign as an
illustration.  The values are far too extreme for
real use, but they show what can be done.  Fractional
values are permitted to give you fine control - these
will need to be set by experiment.  This is rather
messy as the values interact and the units of \halign
are based on the length of the following string.
There may be a better way.  For example, \hspace can
be used to increase the separation of the accidentals.

naturalplusflat = \markup { \halign #-10 { \natural } \halign #-5 { \flat } }
    \relative c'' {
      \once \override Accidental
        #'stencil = #ly:text-interface::print
      \once \override Accidental #'text = #naturalplusflat
      \once \override Score.AccidentalPlacement #'right-padding = #10
      <b bes>
    }

Trevor

----- Original Message ----- From: "luis jure" <address@hidden>
To: "lilypond-user" <address@hidden>
Sent: Wednesday, June 11, 2008 12:40 AM
Subject: accidentals in augmented unisons



hello list,

i'm using an example from the learning manual to write a chord with an
augmented unison:

naturalplusflat = \markup { \natural \flat }
    \relative c'' {
      \once \override Accidental
        #'stencil = #ly:text-interface::print
      \once \override Accidental #'text = #naturalplusflat
      \once \override Score.AccidentalPlacement #'right-padding = #1.5
      <b bes>
    }

this works, but i'd like to control the horizontal position of the
natural and flat symbols. i have no idea how i can achieve this, any
help would be greatly appreciated.

best,

lj


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






reply via email to

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