Re: Missing end-of-stave barline?

2023-01-08 Thread Jean Abou Samra


> Le 9 janv. 2023 à 07:56, Mark Probert  a écrit :
> 
> Hi.
> 
> When I run this snippet the barline at the end of first stave, which I think 
> should be a “||”, goes “missing” (there is no barline at all). 
> 
> Is there a correct way of setting the end of stave barline in this kind of 
> situation?



Look up \section in the manual. It is designed for exactly this.

Best,
Jean


Missing end-of-stave barline?

2023-01-08 Thread Mark Probert
Hi.

When I run this snippet the barline at the end of first stave, which
I think should be a “||”, goes “missing” (there is no barline at all).

Is there a correct way of setting the end of stave barline in this kind of
situation?

%% ——
\version "2.24"

parta = {
  aes4 bes c d | d4 ees f g |
}

partb = {
  aes,2 c2 | ees1 |
}

tune = \relative c'' {
  \clef treble
  \key c \minor
  \time 4/4

  \parta \bar "||" \break
  \repeat volta 2 {
 \bar "[|:" \partb \bar ":|]"
   }
}

\score {
  \new Staff  \tune
}
%%—

TIA,
  -mark.


Removing staves when using remove-layer

2023-01-08 Thread Saul Tobin
Hi all,

When condensing staves using remove-layer as described here
https://lilypond.org/doc/v2.24/Documentation/notation/modifying-single-staves#hiding-staves,
what is the best way to temporarily hide the combined staff as well as the
individual staves? E.g. for a particularly crowded system where both
players have rests.

Thanks for your help,

Saul


Re: Fit to one/n pages

2023-01-08 Thread Mark Probert
 Many thanks! I think I’m getting a handle on this bit of LP. Amazing!

-mark.


On 9 Jan 2023 at 11:23:47, Jean Abou Samra  wrote:

> Le 09/01/2023 à 01:08, Kieren MacMillan a écrit :
>
> Hi Mark,
>
>
> > Okay. I did that and when I move the \paper (yes, my bad, I did write
> \page) into the \bookpart it generates a separate PDF for each \bookpart
>
> Hmmm… It should generate a page break between bookparts, but shouldn’t
> generate a new PDF!!
>
>
>
> The issue is that LilyPond treats \book and \bookpart values in the same
> way (no, that's not really wonderful). Basically, when you do this:
>
> x = \bookpart { bla bla }
> \x
>
> At the point \x is used, LilyPond has "forgotten" that \x was not a book
> but a bookpart, and it treats it as a new book, whereas
>
> \book {
>   \x
>   \y
> }
>
> forces \x and \y to be treated as bookparts inside one book.
>
>


Re: Fit to one/n pages

2023-01-08 Thread Jean Abou Samra

Le 09/01/2023 à 01:08, Kieren MacMillan a écrit :

Hi Mark,


Okay. I did that and when I move the \paper (yes, my bad, I did write \page) 
into the \bookpart it generates a separate PDF for each \bookpart

Hmmm… It should generate a page break between bookparts, but shouldn’t generate 
a new PDF!!



The issue is that LilyPond treats \book and \bookpart values in the same
way (no, that's not really wonderful). Basically, when you do this:

x = \bookpart { bla bla }
\x

At the point \x is used, LilyPond has "forgotten" that \x was not a book
but a bookpart, and it treats it as a new book, whereas

\book {
  \x
  \y
}

forces \x and \y to be treated as bookparts inside one book.



OpenPGP_signature
Description: OpenPGP digital signature


Re: Fit to one/n pages

2023-01-08 Thread Kieren MacMillan
Hi Mark,

> Okay. I did that and when I move the \paper (yes, my bad, I did write \page) 
> into the \bookpart it generates a separate PDF for each \bookpart

Hmmm… It should generate a page break between bookparts, but shouldn’t generate 
a new PDF!!

> Here is a slightly convoluted example of my input by way of example (in 
> reality these elements are spread over different files and included to create 
> the output). I can get around this with externally by combining the PDFs, but 
> I wonder if there is something I’m doing wrong here

Hope the modified snippet, below, helps!
Kieren.

  SNIPPET BEGINS
\version "2.24"

melody = \relative c' {
  \clef treble
  \key d \minor
  \time 4/4
  a2 bes4 c | d2 ees8 c d bes |
}

tune = {
  \new Staff \melody
}

page-one = \paper {
  page-count = 1
}

song-one = {
  \tune
}

song-two = {
  \tune
}

\book {
  
  %%  Page 1
  \markuplist \table-of-contents
  \pageBreak

  %%  Bookpart 1 (to be followed by a pagebreak)
  \bookpart {
\header {
  title = "Foo Bar 1"
  composer = "Whoisit 1"
}
\tocItem \markup "Song One"
\page-one
\song-one
  }

  %%  Bookpart 2 (to be followed by a pagebreak)
  \bookpart {
\header {
  title = "Foo Bar 2"
  composer = "Whoisit 2"
}
\tocItem \markup "Song Two"
\page-one
\song-two
  }
}
  SNIPPET ENDS


Re: Fit to one/n pages

2023-01-08 Thread Jean Abou Samra



Le 09/01/2023 à 00:51, Mark Probert a écrit :

[...]

\song-one
\song-two




Make that

\book {
  \bookpart { \song-one }
  \bookpart { \song-two }
}


Best,
Jean



OpenPGP_signature
Description: OpenPGP digital signature


Re: Fit to one/n pages

2023-01-08 Thread Mark Probert
Thanks, Jean and Kieren

Okay. I did that and when I move the \paper (yes, my bad, I did write
\page) into the \bookpart it generates a separate PDF for each
\bookpart, which I think kind of defeats the purpose of a \bookpart.

Here is a slightly convoluted example of my input by way of example (in
reality these elements are spread over different files and included to
create the output). I can get around this with externally by combining the
PDFs, but I wonder if there is something I’m doing wrong here

—
\version "2.24"

tune-hdr = \header {
  title = "Foo Bar"
  composer = "Whoisit"
}

melody = \relative c' {
  \clef treble
  \key d \minor
  \time 4/4

  a2 bes4 c | d2 ees8 c d bes |
}

tune = \score {
  \new Staff  \melody
}

page-one = \paper {
  page-count = 1
}

song-one = \bookpart {
  \page-one
  \tocItem \markup "Song One"
  \tune-hdr
  \tune
}

song-two = \bookpart {
  \page-one
  \tocItem \markup "Song Two"
  \tune-hdr
  \tune
}

\markuplist \table-of-contents
\pageBreak

\song-one
\song-two

——

Thanks again!

-mark.


On 9 Jan 2023 at 10:14:10, Jean Abou Samra  wrote:

> Le 08/01/2023 à 23:45, Mark Probert a écrit :
>
> Jean,
>
>
> Following on. If my understanding is correct, each \book has a single
>
> \page.
>
>
>
> Did you mean \paper?
>
>
> So if my score consists of multiple \bookparts and I adjust the \page
>
> block, that impacts all the \bookparts?
>
>
>
> Yes, it means each bookpart has the specified number of pages.
>
> \version "2.24.0"
>
> \paper {
>   page-count = 2
> }
>
> \bookpart {
>   \repeat unfold 20 { c'1 }
> }
>
> \bookpart {
>   \repeat unfold 20 { c'1 }
> }
>
>
>
> Is there a way to force an individual \bookpart to a given number of
>
> pages?
>
>
>
> Just move \paper inside \bookpart.
>
> \version "2.24.0"
>
> \bookpart {
>   \paper {
> page-count = 2
>   }
>   \repeat unfold 20 { c'1 }
> }
>
> \bookpart {
>   \repeat unfold 20 { c'1 }
> }
>
>
> HTH,
> Jean
>
>


Re: Fit to one/n pages

2023-01-08 Thread Jean Abou Samra

Le 08/01/2023 à 23:45, Mark Probert a écrit :

Jean,

Following on. If my understanding is correct, each \book has a single 
\page.



Did you mean \paper?


So if my score consists of multiple \bookparts and I adjust the \page 
block, that impacts all the \bookparts?



Yes, it means each bookpart has the specified number of pages.

\version "2.24.0"

\paper {
  page-count = 2
}

\bookpart {
  \repeat unfold 20 { c'1 }
}

\bookpart {
  \repeat unfold 20 { c'1 }
}




Is there a way to force an individual \bookpart to a given number of 
pages?



Just move \paper inside \bookpart.

\version "2.24.0"

\bookpart {
  \paper {
    page-count = 2
  }
  \repeat unfold 20 { c'1 }
}

\bookpart {
  \repeat unfold 20 { c'1 }
}


HTH,
Jean



OpenPGP_signature
Description: OpenPGP digital signature


Re: Fit to one/n pages

2023-01-08 Thread Kieren MacMillan
Hi Mark,

> If my understanding is correct, each \book has a single \page.

Well… it’s complicated.  :)

> So if my score consists of multiple \bookparts and I adjust the \page block, 
> that impacts all the \bookparts? 

Yes.

> Is there a way to force an individual \bookpart to a given number of pages?

Put the page-count setting inside the \bookpart.

Hope that helps!
Kieren.


Re: Fit to one/n pages

2023-01-08 Thread Mark Probert
 Jean,

Following on. If my understanding is correct, each \book has a single
\page. So if my score consists of multiple \bookparts and I adjust the
\page block, that impacts all the \bookparts?

Is there a way to force an individual \bookpart to a given number of pages?

-mark.


On 9 Jan 2023 at 09:24:18, Mark Probert  wrote:

> Thanks, Jean! I missed that bit of doc.
>
> -mark.
>
>
> On 8 Jan 2023 at 16:07:50, Jean Abou Samra  wrote:
>
>>
>>
>> Le 8 janv. 2023 à 06:02, Mark Probert  a écrit :
>>
>> Hi.
>>
>> At the moment I’m doing quite a few lead sheets. The slightly unfortunate
>> thing is some of these tunes are a stave or two over a page in length.
>>
>> I thought I’d reach out and see if there is such a thing as a macro or
>> music function like \fitToOnePage that would fit in a layout/page and can
>> automatically resize the items to live on that single page.
>>
>> Any help appreciated
>>
>> -mark.
>>
>>
>>
>> See
>> https://lilypond.org/doc/v2.24/Documentation/notation/other-paper-variables
>> It’s as easy as
>>
>> \paper {
>>   page-count = 1
>> }
>>
>> Best
>> Jean
>>
>>


Re: Fit to one/n pages

2023-01-08 Thread Mark Probert
 Thanks, Jean! I missed that bit of doc.

-mark.


On 8 Jan 2023 at 16:07:50, Jean Abou Samra  wrote:

>
>
> Le 8 janv. 2023 à 06:02, Mark Probert  a écrit :
>
> Hi.
>
> At the moment I’m doing quite a few lead sheets. The slightly unfortunate
> thing is some of these tunes are a stave or two over a page in length.
>
> I thought I’d reach out and see if there is such a thing as a macro or
> music function like \fitToOnePage that would fit in a layout/page and can
> automatically resize the items to live on that single page.
>
> Any help appreciated
>
> -mark.
>
>
>
> See
> https://lilypond.org/doc/v2.24/Documentation/notation/other-paper-variables
> It’s as easy as
>
> \paper {
>   page-count = 1
> }
>
> Best
> Jean
>
>


Re: Resize \rhythm in mixed markup

2023-01-08 Thread David Kastrup
David Kastrup  writes:

> Jean Abou Samra  writes:
>
>> Apparently, top-level markups are interpreted with \paper, although
>> grob-interpret-markup interprets with a real \layout?
>>
>>
>> \version "2.24.0"
>>
>> #(define-markup-command (whats-layout layout props) ()
>>    (interpret-markup layout props (symbol->string
>> (ly:output-def-lookup layout 'output-def-kind
>>
>> \markup \whats-layout
>>
>> {
>>   c'^\markup \whats-layout
>> }
>>
>>
>>
>> Le 08/01/2023 à 17:06, David Kastrup a écrit :
>>> Frankly, I don't get the "layout" parameter in markup. 
>>
>>
>> Me neither. The whole output def setup is quite messy.
>
> A Paper_book does not preserve \layout so at the point where text
> markups are interpreted, the \layout is not available.  This seems more
> like a fudge than anything else.
>
> I have no idea what the original idea here was, but given that the
> parameter name "layout" to markup commands is rather unambiguous and
> that it seems very desirable to be able to write
>
> (define-markup-command ... (layout props) ...
>   #{ \markup \score { \layout { $layout ...
>
> I lean towards maintaining "layout" and not passing paper blocks into
> interpret-markup at all.
>
> We may break some things while figuring this out.  But the current way
> appears too weird to make for a useful interface.

Frankly, the level of bull here is unbelievable.

git grep book_rendering
...
lily/book.cc:  SCM outputs = score->book_rendering 
(output_paper_book->paper (), layout);
lily/include/score.hh:  SCM book_rendering (Output_def *, Output_def *);
lily/score.cc:Score::book_rendering (Output_def *layoutbook, Output_def 
*default_def)

So what is it already?!?!?  Paper or layout?

I guess this nonsense is also behind some book layout variables not
making it into scores.

-- 
David Kastrup



Re: Resize \rhythm in mixed markup

2023-01-08 Thread David Kastrup
Jean Abou Samra  writes:

> Apparently, top-level markups are interpreted with \paper, although
> grob-interpret-markup interprets with a real \layout?
>
>
> \version "2.24.0"
>
> #(define-markup-command (whats-layout layout props) ()
>    (interpret-markup layout props (symbol->string
> (ly:output-def-lookup layout 'output-def-kind
>
> \markup \whats-layout
>
> {
>   c'^\markup \whats-layout
> }
>
>
>
> Le 08/01/2023 à 17:06, David Kastrup a écrit :
>> Frankly, I don't get the "layout" parameter in markup. 
>
>
> Me neither. The whole output def setup is quite messy.

A Paper_book does not preserve \layout so at the point where text
markups are interpreted, the \layout is not available.  This seems more
like a fudge than anything else.

I have no idea what the original idea here was, but given that the
parameter name "layout" to markup commands is rather unambiguous and
that it seems very desirable to be able to write

(define-markup-command ... (layout props) ...
  #{ \markup \score { \layout { $layout ...

I lean towards maintaining "layout" and not passing paper blocks into
interpret-markup at all.

We may break some things while figuring this out.  But the current way
appears too weird to make for a useful interface.

-- 
David Kastrup



Re: Custom engraver to modify bent grace notes

2023-01-08 Thread Jean Abou Samra

Le 08/01/2023 à 14:58, Nate Whetsell a écrit :

you can get the moment of the current time step in the engravers using

(ly:context-current-moment context)


Thanks, this is a huge help.

Thank you also for putting together the Extending LilyPond 
 website; that website is 
the only reason I got as far as I did writing an engraver.




Well, ly:context-current-moment is a really useful and common function
when writing engravers, so I've added it to
https://extending-lilypond.readthedocs.io/en/latest/translation.html#the-time-step-cycle




OpenPGP_signature
Description: OpenPGP digital signature


Re: Resize \rhythm in mixed markup

2023-01-08 Thread Jean Abou Samra

Apparently, top-level markups are interpreted with \paper, although
grob-interpret-markup interprets with a real \layout?


\version "2.24.0"

#(define-markup-command (whats-layout layout props) ()
   (interpret-markup layout props (symbol->string (ly:output-def-lookup 
layout 'output-def-kind


\markup \whats-layout

{
  c'^\markup \whats-layout
}



Le 08/01/2023 à 17:06, David Kastrup a écrit :
Frankly, I don't get the "layout" parameter in markup. 



Me neither. The whole output def setup is quite messy.



OpenPGP_signature
Description: OpenPGP digital signature


Re: Resize \rhythm in mixed markup

2023-01-08 Thread David Kastrup
David Kastrup  writes:

> Thomas Morley  writes:
>
>> Am So., 8. Jan. 2023 um 10:21 Uhr schrieb Thomas Morley
>> :
>>>
>>> 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 
> 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

2023-01-08 Thread David Kastrup
Thomas Morley  writes:

> Am So., 8. Jan. 2023 um 10:21 Uhr schrieb Thomas Morley
> :
>>
>> 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 
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.

-- 
David Kastrup



Re: Resize \rhythm in mixed markup

2023-01-08 Thread Jean Abou Samra

Le 08/01/2023 à 13:36, Thomas Morley a écrit :

I aimed at a smaller size and all Beams and (flagged) Stems should end
at the same height.
Can this be achieved more easily?


For the time being I would just use a music variable, e.g.,


\version "2.24.0"

setup = {
  \set fontSize = -5
  \override Stem.length = 4.6
}

{
  \tempo \markup \rhythm { \setup 8[ 8] 8 }
  c'
}


Best,
Jean



OpenPGP_signature
Description: OpenPGP digital signature


Re: Resize \rhythm in mixed markup

2023-01-08 Thread Jean Abou Samra

Le 08/01/2023 à 11:13, Thomas Morley a écrit :

Actually it works, if the \layout is placed toplevel.
A bug?




It's a limitation of \markup \score.

\version "2.24.0"

\layout {
  \override Voice.NoteHead.color = "red"
}

\score {
  \layout {
    \override Voice.NoteHead.color = "blue"
  }
  { c'^\markup \score { c' } }
}


Not sure why. The setup of output definitions is quite opaque to
me. \markup \score is special-cased in the parser, too.

Maybe open an issue.

Best,
Jean




OpenPGP_signature
Description: OpenPGP digital signature


Re: Custom engraver to modify bent grace notes

2023-01-08 Thread Nate Whetsell
Thank you!

> Wouldn't you be better off getting rid of graces, and creating a grob like 
> TrillPitchHead from your engraver?

Probably, but I’m also trying to make this engraver something a person can just 
add to a LilyPond file without having to change anything else. I think most of 
the time people will input these kinds of bends as grace notes, so no matter 
what I’ll have to detect those.

> you can get the moment of the current time step in the engravers using
> 
> (ly:context-current-moment context)


Thanks, this is a huge help.

Thank you also for putting together the Extending LilyPond 
 website; that website is the only 
reason I got as far as I did writing an engraver.

> On Jan 7, 2023, at 1:04 PM, Jean Abou Samra  wrote:
> 
> Le 07/01/2023 à 18:41, Nate Whetsell a écrit :
>> Hi,
>> 
>> I have a question about using a custom engraver to modify how grace notes 
>> appear when LilyPond’s new string bending is applied to them. This is the 
>> first custom engraver I’ve attempted to write, so I think I’ve overlooked 
>> something rather basic. The repository for the engraver is at 
>> https://github.com/nwhetsell/lilypond-bending-additions, and the current 
>> engraver is at
>> 
>> https://github.com/nwhetsell/lilypond-bending-additions/blob/0bbfdaa9a76bef10c4b23cc97b1edede8fde2f2a/bending-additions.ily
>> 
>> Conceptually, I’m trying to do three things:
>> 
>> 1. If a string bend starts on a grace note, don’t reduce the size of the 
>> fret number in a TabStaff.
>> 
>> 2. If, in addition, the bent grace note is a pre-bend, put the notehead in 
>> parentheses, and don’t draw ledger lines, flags, or stems.
>> 
>> 3. If a string bend ends on a grace note, don’t draw the notehead, ledger 
>> lines, accidentals, flags, or stems (don’t draw anything, basically).
> 
> 
> I'm ignorant about guitar techniques, but is this note really a grace note? 
> Wouldn't you be better off getting rid of graces, and creating a grob like 
> TrillPitchHead from your engraver?
> 
> Assuming that grace notes are what you want in the first place ...
> 
>> Bearing in mind that there’s a lot about writing engravers that I don’t know,
> 
> 
> Maybe it will help to read 
> https://extending-lilypond.readthedocs.io/en/latest/translation.html#writing-an-engraver
>  
> 
> 
> 
>> where I think I’m having difficulty is determining whether a note is a grace 
>> note. In short, I’m getting a notehead grob using an acknowledger and then 
>> checking the value of its ly:moment-grace 
>> >  
>> >
>>  in the engraver’s stop-translation-timestep method. However, this doesn’t 
>> work directly. In stop-translation-timestep, the moment of a notehead 
>> created in that timestep appears to always be null.
> 
> 
> Yes, it's not set up yet. Basically, grob::when is meant to be used in the 
> backend (grob callbacks). During translation (in engravers), there is no 
> need. By definition, all note heads that arrive in the same time step are 
> grace notes iff that time step is a grace time step, and you can get the 
> moment of the current time step in the engravers using
> 
> (ly:context-current-moment context)
> 
> HTH



Re: Resize \rhythm in mixed markup

2023-01-08 Thread Thomas Morley
Am So., 8. Jan. 2023 um 11:13 Uhr schrieb Thomas Morley
:
>
> Am So., 8. Jan. 2023 um 10:21 Uhr schrieb Thomas Morley
> :
> >
> > 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?

Hi Jean,

I came across this and other complications while rewriting the lsr
snippet about rhythm marks.
Please take a look at
https://lsr.di.unimi.it/LSR/Item?u=1=204
with the new code (the old one is commented for now).
Several comments at toplevel and inline.

I aimed at a smaller size and all Beams and (flagged) Stems should end
at the same height.
Can this be achieved more easily?

Thanks,
  Harm



Re: Resize \rhythm in mixed markup

2023-01-08 Thread Thomas Morley
Am So., 8. Jan. 2023 um 10:21 Uhr schrieb Thomas Morley
:
>
> 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?



Resize \rhythm in mixed markup

2023-01-08 Thread Thomas Morley
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