bug-lilypond
[Top][All Lists]
Advanced

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

Re: override Stem.stem-end-position


From: Karim Haddad
Subject: Re: override Stem.stem-end-position
Date: Wed, 19 Mar 2014 12:36:25 +0100 (CET)
User-agent: SquirrelMail/1.4.8-21.el5.centos

THanx again Pierre,

Here is an example :


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.18"

 \new Staff  {
        \override Staff.TimeSignature #'transparent =##t
        \override  Staff.Clef #'transparent =##t
        \override  Staff.Accidental #'transparent =##t
        \override Staff.StaffSymbol #'line-positions = #'(-5  0 5)
        \override Staff.StaffSymbol #'line-count = #8
        \override Staff.TupletBracket #'staff-padding = #2.5
        \override Staff.TupletBracket #'positions = #'( 8 . 8)
         \override Staff.TupletBracket #'direction = #1
         \override Staff.TupletBracket #'bracket-visibility = ##t
         \override TupletNumber #'text = #tuplet-number::calc-fraction-text
        \override NoteHead #'transparent =##t
        \override  Beam #'thickness =#'4
        \override  Beam #'positions =#'( 6 . 6)
        \override Stem #'length = #15
        \override  Stem #'avoid-note-head =##t
        \override Glissando #'minimum-length = #5
        \override Glissando #'springs-and-rods = #ly:spanner::set-spacing-rods
        \override Glissando #'thickness = #'4.0
        \override Glissando #'bound-details =#'((right (attach-dir . 1) (padding
. 0))
        (left (attach-dir . 1) (padding . 0)))
        \override NoteHead.no-ledgers = ##t
        \stemUp

\time 15/8

\times 5/4 {
e''4 \glissando
g'4 \glissando
}

\times 2/3 {
dis''8 \glissando
dis''8 \glissando
g'8 \glissando
}

\times 3/4 {
a''8 \glissando
fih'8 \glissando
g''8 \glissando
b'8 \glissando
}
b'2 \glissando

\times 4/5 {
g''32 \glissando
cis''32 \glissando
g'32 \glissando
dis''32 \glissando
c'32
}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Now the stems of non-Beamed note (quarter notes) are correctly lenghtened.
But what i want tod o and what stem-end-position did in former versions
(tested in 2.14), is to crop the stem in order to have equal heights .


But i don't figure how to do it with #ly:stem::calc-stem-end-position

Thanx Pierre again.


Karim


> Hi Karim,
>
> #ly:stem::calc-stem-end-position
>
> should do the job.
> For more details please give us a minimal example of what you'd like to
> do.
>
> Cheers,
> Pierre
>


address@hidden




reply via email to

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