[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \magnifyMusic stem-length enigma
From: |
David Kastrup |
Subject: |
Re: \magnifyMusic stem-length enigma |
Date: |
Thu, 03 Jul 2014 11:58:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Mark Polesky <address@hidden> writes:
> David Kastrup wrote:
>> I don't know how you are planning to do it. It would be
>> my guess that it is hard to do in a manner that will
>> behave sensibly when you put that sort of construct into
>> quoted music. It is probably already hard to do when
>> using \magnifyMusic in multiple parallel contexts since
>> you need to store the information somewhere.
>>
>> Perhaps most feasible is to just use \applyContext for
>> increasing fontSize by the given amount, and then use it
>> again at the end for decreasing by the same amount. If
>> someone _sets_ fontSize in the middle then: tough. But at
>> least you do not need to store the old value anywhere
>> then.
>
> Ha, that's exactly what I did:
> http://codereview.appspot.com/103890046/diff2/150001:210001/scm/music-functions.scm
>
> I just have one question: How do I do the equivalent of
> this...
>
> \revert Tie.details.stem-gap
>
> ...using ly:context-pushpop-property? I can't get it to
> revert *nested* grob-properties. I get close, but then
> something always ends up wrong.
Yes, that's what tends to happen when reversing nested properties. It
may help to revert in reverse order of overriding.
But nested property overrides are pretty broken once you try and start
reverting.
--
David Kastrup
- \magnifyMusic stem-length enigma, Mark Polesky, 2014/07/01
- Re: \magnifyMusic stem-length enigma, David Kastrup, 2014/07/02
- Re: \magnifyMusic stem-length enigma, Paul Morris, 2014/07/02
- Re: \magnifyMusic stem-length enigma, Mark Polesky, 2014/07/03
- Re: \magnifyMusic stem-length enigma, David Kastrup, 2014/07/03
- Re: \magnifyMusic stem-length enigma, Mark Polesky, 2014/07/03
- Re: \magnifyMusic stem-length enigma, Abel Cheung, 2014/07/03
- Re: \magnifyMusic stem-length enigma, Mark Polesky, 2014/07/03
- Re: \magnifyMusic stem-length enigma, Abel Cheung, 2014/07/03
- Re: \magnifyMusic stem-length enigma,
David Kastrup <=