Automated tests for LilyPond packages

2024-10-17 Thread Jakub Pavlík
I've been developing a package which programatically generates music. The logic is non-trivial, data structures sometimes unwieldy and I'm used to the comfort of codebases secured by massive test coverage, which led me to a search for methods of automated testing in the LilyPond ecosystem. The pac

Re:  ottavation text format

2024-10-17 Thread Kieren MacMillan
Hi Damian, > how do I get the dotted line to align with the bottom of the 8 rather than > the middle? This is the kind of thing I use, though it’s old enough that there may well be better ways nowadays: %%% SNIPPET BEGINS \version "2.25.11" loco = \ottava #0 #(define eightva #{ %% messin

Re: Creating space at the top of a page

2024-10-17 Thread Kieren MacMillan
Hi David, >> So, for example, I would like the following: >> Page 1, containing items 1 and 2: header shows '1&2' >> Pages 2-3, each containing a single item: headers show '3' and '4' >> respectively >> Pages 4-5, containing item 5 spread over the 2 pages: headers show '5' >> and '(5)' >> I don't

Re: Creating space at the top of a page

2024-10-17 Thread Lukas-Fabian Moser
Hi David, But even what I asked for isn't what I would really like in a perfect world, which is as follows. The items are numbered sequentially, starting with number 1.  At the top of each page, I would like to have (in fairly large print) the number(s) of the item(s) contained on that page, pl

Re: Creating space at the top of a page

2024-10-17 Thread David Sumbler
Thank you for the suggestions so far (one of them was off-list).  They should enable me to do what I asked for, i.e. to leave a blank space at the top of certain right-hand pages. But even what I asked for isn't what I would really like in a perfect world, which is as follows. The items are numbe

Re: ottavation text format

2024-10-17 Thread damianlegassick
mmm, just one more thing how do I get the dotted line to align with the bottom of the 8 rather than the middle? thanks again

Re: ottavation text format

2024-10-17 Thread damianlegassick
Thanks all It works with \set Staff.ottavation = \markup {\concat {8 \tiny{vb}}} Damian On 17 Oct 2024, at 12:47, Mark Knoop wrote: At 11:28 on 17 Oct 2024, damianlegassick wrote: I had this same problem. To investigate it, I looked up the definition of ottavation-ordinals in ly/property-init.l

Re: ottavation text format

2024-10-17 Thread Mark Knoop
At 11:28 on 17 Oct 2024, damianlegassick wrote: >> I had this same problem. To investigate it, I looked up >> the definition of ottavation-ordinals in >> ly/property-init.ly. I then created a new ottavation list >> called ottavation-ordinals-b, with "va" and "ma" changed >> to "vb" and "mb" for t

Re: ottavation text format

2024-10-17 Thread damianlegassick
I had this same problem. To investigate it, I looked up the definition of ottavation-ordinals in ly/property-init.ly. I then created a new ottavation list called ottavation-ordinals-b, with "va" and "ma" changed to "vb" and "mb" for the negative ottavations. I included the new ottavation list in

Re: ottavation text format

2024-10-17 Thread damianlegassick
Hi Mark Technically wrong yes, but not so uncommon anymore. I don't use vb myself but am interested in why I can't get the text size to match exactly thanks Damian On 17 Oct 2024, at 12:17, Mark Knoop wrote: At 06:56 on 17 Oct 2024, Carl Sorensen wrote: On Thu, Oct 17, 2024 at 5:34 AM damianlega

Re: ottavation text format

2024-10-17 Thread Mark Knoop
At 06:56 on 17 Oct 2024, Carl Sorensen wrote: > On Thu, Oct 17, 2024 at 5:34 AM damianlegassick > wrote: >> Hi all >> >> When I use >> >> \set Staff.ottavation = "8vb" >> >> the v and the b are larger than with the plain: >> >> \set Staff.ottavationMarkups = #ottavation-ordinals >> >> any clues

Re: ottavation text format

2024-10-17 Thread Carl Sorensen
On Thu, Oct 17, 2024 at 5:34 AM damianlegassick wrote: > Hi all > > When I use > > \set Staff.ottavation = "8vb" > > the v and the b are larger than with the plain: > > \set Staff.ottavationMarkups = #ottavation-ordinals > > any clues how to adjust this? > > thanks > > Damian > I had this same p

Re: ottavation text format

2024-10-17 Thread damianlegassick
Depends on how you want to adjust it, I suppose… Do you want the “va” larger or the “vb” smaller? vb smaller ideally, but either would work

Re: ottavation text format

2024-10-17 Thread Kieren MacMillan
Hi Damian, > When I use > \set Staff.ottavation = "8vb" > the v and the b are larger than with the plain: > \set Staff.ottavationMarkups = #ottavation-ordinals > any clues how to adjust this? Depends on how you want to adjust it, I suppose… Do you want the “va” larger or the “vb” smaller? Kiere

Re: ottavation text format

2024-10-17 Thread damianlegassick
\version "2.25.18" \layout { ragged-last = ##f } { \clef bass c,,4 \set Staff.ottavationMarkups = #ottavation-ordinals \ottava -1 4 4 4 \ottava 0 4 \set Staff.ottavation = "8vb" \ottava -1 4 4 4 }

Re: ottavation text format

2024-10-17 Thread damianlegassick
the v and the b are larger than larger than the v and the a in ...

ottavation text format

2024-10-17 Thread damianlegassick
Hi all When I use \set Staff.ottavation = "8vb" the v and the b are larger than with the plain: \set Staff.ottavationMarkups = #ottavation-ordinals any clues how to adjust this? thanks Damian