[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Resize \rhythm in mixed markup
From: |
David Kastrup |
Subject: |
Re: Resize \rhythm in mixed markup |
Date: |
Sun, 08 Jan 2023 17:06:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
David Kastrup <dak@gnu.org> writes:
> Thomas Morley <thomasmorley65@gmail.com> writes:
>
>> Am So., 8. Jan. 2023 um 10:21 Uhr schrieb Thomas Morley
>> <thomasmorley65@gmail.com>:
>>>
>>> Hi,
>>>
>>> consider below
>>>
>>> \version "2.24.0"
>>>
>>> \score {
>>> { g'1^\markup { My Rhythm \rhythm { 8[ 8] } } }
>>> \layout {
>>> \context {
>>> \StandaloneRhythmStaff
>>> fontSize = #6
>>> }
>>> }
>>> }
>>>
>>> I'll have numerous such markups combining straight text and \rhythm.
>>> Thus I'd like to have a method to adjust the \rhythm-part in a
>>> score-layout without affecting other parts of TextScripts.
>>> Alas the setting fontSize takes no effect.
>>>
>>> How to?
>>>
>>> Cheers,
>>> Harm
>>
>> Actually it works, if the \layout is placed toplevel.
>> A bug?
>
> A likely consequence of
>
> commit 00e7e96f8393ad1fe86f57cf90f4567142bd4e72
> Author: David Kastrup <dak@gnu.org>
> Date: Sat Feb 8 19:05:16 2014 +0100
>
> Issue 3827: remove the necessity to have a \layout block in a
> \markup \score ...
>
> It turns out that this is not really fixable in the backend since what
> is called "layout" in the markup function definitions does not
> actually correspond to \layout but rather to \paper. Very funny.
>
> So this is solved in the parser itself when reading a \score or
> \score-lines to be used in a markup or markup list by cloning
> $defaultlayout as necessary (which simulates \layout {}) whenever the
> score is without an output definition.
>
> I suspect that the rationale in the first paragraph is wrong because we
> may actually be talking about a layout block after all, just one that
> historically inherited `is-paper' (among other paper variables) from the
> paper block.
>
> Let me try again.
Huh. Or not so. Frankly, I don't get the "layout" parameter in markup.
--
David Kastrup
Re: Resize \rhythm in mixed markup, David Kastrup, 2023/01/09