[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Persian music package
From: |
Jean Abou Samra |
Subject: |
Re: Persian music package |
Date: |
Sun, 1 Aug 2021 10:33:09 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
Le 01/08/2021 à 09:58, Kees van den Doel a écrit :
OK, so I'll stick with my own convert-ly files as I'm on the
stabgle version.
Problem now seems to be that the positioning tweak in persian.ly
<http://persian.ly> such as "persianStringsXExtents" is no longer
working correctly with my file. Strangely the YExtents and Offset work
fine, eg if I make Y-Extent large the beams move out of the way.
persianStringsXExtents = #`(
(-3/10 . (0 . 1) )
(1/5 . (0 . 1.8)) %<--- this should control how "wide"
the koron is but it has no effect
(0 . (0 . 1))
(1/2 . (0 . 1))
(2/5 . (0 . 1))
(-1/2 . (0 . 1))
(-3/5 . (0 . 1))
(-1/10 . (0 . 1))
(-1 . (0 . 1.8))
( 1 . (0 . 1.3))
)
\override Accidental.X-extent = #(lambda (grob)
(cdr (assoc (ly:grob-property grob 'alteration)
persianStringsXExtents )))
Does this code illustrate your problem?
\version "2.22.1"
{
\override Accidental.X-extent = #'(-2 . 2)
<ges' aes'>
}
If so, this comes from the spacing of accidentals
being based on so-called skylines, namely outlines,
and not only extents. This was probably not the
case for accidentals in an old version such as 2.12.
You can observe the skylines using
\version "2.22.1"
#(ly:set-option 'debug-skylines)
\layout {
\context {
\Score
\override Accidental.after-line-breaking =
#(lambda (grob)
(set! (ly:grob-property grob 'stencil)
(ly:stencil-add
(ly:grob-property grob 'stencil)
(ly:separation-item::print grob))))
% \override Accidental.horizontal-skylines =
#ly:grob::simple-horizontal-skylines-from-extents
}
}
{
\override Accidental.X-extent = #'(-2 . 2)
<ges' aes'>
}
Now try adding
\layout {
\context {
\Score
\override Accidental.horizontal-skylines =
#ly:grob::simple-horizontal-skylines-from-extents
}
}
and you'll get an effect on spacing.
Best,
Jean
- Re: Persian music package, Jean Abou Samra, 2021/08/01
- Message not available
- Re: Persian music package, Jean Abou Samra, 2021/08/01
- Re: Persian music package, Thomas Morley, 2021/08/01
- Re: Persian music package, Kees van den Doel, 2021/08/01
- Re: Persian music package, Kees van den Doel, 2021/08/01
- Re: Persian music package, Kees van den Doel, 2021/08/01
- Re: Persian music package, Thomas Morley, 2021/08/02
- Message not available
- Fwd: Persian music package, Kees van den Doel, 2021/08/02
- Re: Persian music package, Thomas Morley, 2021/08/03
- Re: Persian music package, Kees van den Doel, 2021/08/03
- Re: Persian music package, Thomas Morley, 2021/08/03