lilypond-devel
[Top][All Lists]
Advanced

[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 09:34:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Mark Polesky <address@hidden> writes:

> Paul Morris wrote:
>> Also, just a quick thought on magnifyMusic.  It would be
>> nice to somehow capture and restore the current fontSize for
>> cases like this:
>>
>> \new Staff \with {
>>   fontSize = #2
>> } {
>>   c'4 d' e' f'
>>   \magnifyMusic 0.5 { c'4 d' e' f' }
>>   c'4 d' e' f'
>> }
>>
>> But I'm not sure how to do that...  If you can access the
>> current fontSize, maybe it would make sense for the
>> magnification to be relative to it?
>
> That's a great idea, and totally do-able.  I'll fix it, thanks.

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.

-- 
David Kastrup



reply via email to

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