lilypond-user
[Top][All Lists]
Advanced

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

Re: Ambitus placement


From: Simon Albrecht
Subject: Re: Ambitus placement
Date: Mon, 23 Feb 2015 16:20:52 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

Thanks a lot, Kevin. That did it.
I further modified it to avoid the

programming error: No spacing entry from Item to `time-signature'

and included the other entries present in the default, so it now reads as in the attachment.

Best regards, Simon


Am 23.02.2015 15:49, schrieb Kevin Barry:
OK so the space-alist property is what needed changing. This should do what you want

\version "2.18.2"

\score {
  \relative {
    \override Score.BreakAlignment #'break-align-orders =
    #(make-vector 3 '(left-edge breathing-sign clef key-cancellation key-signature ambitus time-signature staff-bar cue-clef custos))
    \override Staff.KeySignature.space-alist =
    #'((ambitus extra-space . 1) (time-signature extra-space . 1.15))
    \override Staff.Ambitus.space-alist = #'((key-signature extra-space . 1))
    \time 3/8 \key c \minor
    es'8 g c
  }
  \layout {
    \context { \Staff
      \consists "Ambitus_engraver" }
  }
}

On Mon, Feb 23, 2015 at 1:27 PM, Kevin Barry <address@hidden> wrote:

On Mon, Feb 23, 2015 at 12:32 PM, Simon Albrecht <address@hidden> wrote:
Thus I’d like to place the ambitus just before the time signature, after clef and key signature. How can I do that?

Hi Simon,

This should get your part of the way towards what you want. It puts the ambitus after the key signature, but produces an error and non-optimal spacing. The property you need to change is BreakAlignment, which determines the order in which these things appear. Hopefully someone else can help with the error.

\version "2.18.2"

\score {
  \relative {
    \override Score.BreakAlignment #'break-align-orders =
    #(make-vector 3 '(left-edge breathing-sign clef key-cancellation key-signature ambitus time-signature staff-bar cue-clef custos))
    \time 3/8 \key c \minor
    es'8 g c
  }
  \layout {
    \context { \Staff
      \consists "Ambitus_engraver" }
  }
}


Attachment: test-ambitus-breakAl.ly
Description: Text Data


reply via email to

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