[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shortening a stem
From: |
Janek Warchoł |
Subject: |
Re: shortening a stem |
Date: |
Mon, 8 Apr 2013 10:00:20 +0200 |
Hi,
2013/4/8 Werner LEMBERG <address@hidden>:
>> > what must I write to shorten an unbeamed stem by, say, one unit?
>> > A naive approach would be
>> >
>> > \once \override Stem.length #(- ly:stem::calc-length 1)
>> >
>> > which doesn't work of course...
>>
>> David Nalesnik wrote a very versatile function that makes such
>> things very easy. You can find it in a thread titled "generalizing
>> offsets to properties" on -devel.
>
> Indeed, very nice! Thanks for the link. Unfortunately, it doesn't
> work with Stem.length at all because this is not an `offset'.
Really? It works perfectly for me, with 2.17.13:
\offset Stem #'length #2 % in positions, not ss!
see attached.
>> I have no idea why this wasn't added to LilyPond yet - it's very
>> handy.
>
> It seems that it doesn't yet fully support the `dot' notation
> (i.e., using `foo.bar' instead of `foo #'bar'). Can this be fixed?
That'd be good. Maybe David'll have some spare time - i'm sure that
he'd be able to fix it in a breeze, unlike me.
Janek
offset stems.ly
Description: Binary data
Re: shortening a stem, Werner LEMBERG, 2013/04/08