Re: Displaying bar numbers for repeats

2022-08-28 Thread David Wright
On Sun 28 Aug 2022 at 10:25:28 (+0100), Wols Lists wrote:
> On 28/08/2022 04:46, David Wright wrote:
> > On Sun 28 Aug 2022 at 10:33:30 (+1000), Andrew Bernard wrote:
> > > I suppose there is a way to do this but the concept is strange. I have
> > > never seen any edition do this. Why? Speaking as an organist if I came
> > > across this I would have to spend time working out what in earth the
> > > bracketed number means. What does it add to the score in any practical
> > > sense?
> > 
> > If I'm playing/singing from a copy with unfolded repeats, and we
> > want to start at measure 42, somewhere in the middle of your 2nd-time
> > repeat, you wouldn't find any number close to 42 in your copy without
> > this or a similar notation.
> > 
> > I'd consider it mainstream. Turn to the opening of Sussex Carol in
> > 100 Carols for Choirs (OUP) for an example that countless people will
> > have on their shelves.
> > 
> Hmm...
> 
> Sounds like something lilypond should have, BUT. Like so many things,
> it may be mainstream for you, I think I've encountered it once.

I used that word not because I think you should be familiar with it,
but because a notation used by Oxford University Press, a mainstream
publishing house, was described as a strange concept.

We all move in our different spheres: I have some student feedback
from an eminent British choral arranger who was mystified as to
why the bar number skipped forward on the line after a 2nd-time bar;
the audacity of counting the measures in the music itself, rather than
as they happen to be printed in the folded score.

> We
> need an OPTIONAL unfold bar numbers setting :-) (I regularly complain
> about Gould - a lot of music I typeset was printed before she was
> born.)
> 
> Even worse, we might need to make it optional per repeat!
> 
> I think the worst I've come across in this regard is we had two
> different typesettings of the same piece - some copies had unfolded
> repeats, some copies had bar numbers, some copies had rehearsal marks
> ... practice was a complete mess until we worked out what on earth was
> going on :-)

I suppose even adding bar numbers to scores was a strange concept for
some, back whenever copyists/publishers first obliged us.

Cheers,
David.



Re: smaller Text at CueVoice

2022-08-28 Thread Aaron Hill

On 2022-08-28 1:41 pm, Alexander Weidner wrote:

how can I get a smaller fontsize for text under a CueVoice?

<<
  \new CueVoice = "Hirte" {
\relative c'' {
\autoBeamOff \stemUp
s4 s8 a16 a16 d8 d8 r16 d16 d16 e16 |%T1
   }
  \new Lyrics \lyricsto "Hirte" {
\override Lyrics.font-size = #-3
 Naht der Him -- mel?
 Bin ich im Him -- mel?
   }
>>


LilyPond's output should be calling your attention to a bad grob 
property path with your \override command.  Make sure to check the 
documentation (Notation Reference and Internals) to ensure you have the 
right name.  The Visual Index is also a helpful tool, which soon will be 
integrated into the official documentation.


In this case, LyricText and potentially also LyricHyphen would be the 
grobs you need to be modifying.  However, there is perhaps an easier 
option using a context property:



  \new Lyrics \with { fontSize = -3 }



-- Aaron Hill



smaller Text at CueVoice

2022-08-28 Thread Alexander Weidner
Hello,

how can I get a smaller fontsize for text under a CueVoice?

I tried 

\font-size = #-2 

and other things,  but it did not work.

Cheers! Alexander

<<
  \new CueVoice = "Hirte" {
\relative c'' {
\autoBeamOff \stemUp
s4 s8 a16 a16 d8 d8 r16 d16 d16 e16 |%T1
   }
  \new Lyrics \lyricsto "Hirte" {
\override Lyrics.font-size = #-3
 Naht der Him -- mel?
 Bin ich im Him -- mel?
   }
>>



Re: Displaying bar numbers for repeats

2022-08-28 Thread Tristan Latchford

Dear Andrew,

The display of bar numbers during repeats gains its practical use when 
the repeats are many pages long, making it significantly easier to 
rehearse with amny players. One particular example that comes to mind in 
my experience is a contemporary choral piece (32 strong choir) that had 
a rather large 125-bar (8-page) repeating section.


This meant that when rehearsing with the choir, all we had to do was 
refer to the bar number to know which repeat we were doing. Luckily, 
there aren't many pieces (aside from symphonies) that employ the 
'enormous repeat', so most of the time, musicians don't have to worry 
about it.


I look forward to our ongoing correspondence,

With the highest regard,

--Tristan

On 28/08/2022 01:33, lilypond-user-requ...@gnu.org wrote:

Re: Displaying bar numbers for repeats


--
This email and its attachments may be confidential and are intended solely for 
the use of the intended recipient. If you are not the intended recipient of 
this email and its attachments, you must take no action based upon them, nor 
must you copy or show them to anyone. Please contact the sender if you believe 
you have received this email in error.

Harmonicham Productions LLP is registered in England and Wales, Registration 
No. OC443147. Registered office: Church View Cottage, 54, High Street, Swaffham 
Prior, Cambridge, CB25 0LD.




Re: Displaying bar numbers for repeats

2022-08-28 Thread Wols Lists

On 28/08/2022 04:46, David Wright wrote:

On Sun 28 Aug 2022 at 10:33:30 (+1000), Andrew Bernard wrote:

I suppose there is a way to do this but the concept is strange. I have
never seen any edition do this. Why? Speaking as an organist if I came
across this I would have to spend time working out what in earth the
bracketed number means. What does it add to the score in any practical
sense?


If I'm playing/singing from a copy with unfolded repeats, and we
want to start at measure 42, somewhere in the middle of your 2nd-time
repeat, you wouldn't find any number close to 42 in your copy without
this or a similar notation.

I'd consider it mainstream. Turn to the opening of Sussex Carol in
100 Carols for Choirs (OUP) for an example that countless people will
have on their shelves.


Hmm...

Sounds like something lilypond should have, BUT. Like so many things, it 
may be mainstream for you, I think I've encountered it once. We need an 
OPTIONAL unfold bar numbers setting :-) (I regularly complain about 
Gould - a lot of music I typeset was printed before she was born.)


Even worse, we might need to make it optional per repeat!

I think the worst I've come across in this regard is we had two 
different typesettings of the same piece - some copies had unfolded 
repeats, some copies had bar numbers, some copies had rehearsal marks 
... practice was a complete mess until we worked out what on earth was 
going on :-)


Cheers,
Wol



Re: Displaying bar numbers for repeats

2022-08-28 Thread Lukas-Fabian Moser

Hi Joe,

Am 28.08.22 um 01:11 schrieb Joseph Srednicki:
I looked at the Lilypond documentation and snippet library but did not 
find an answer to the question that I am asking in this message.


I am typesetting my personal performer's edition of Bach's Schmüke 
Dich (BWV 654). The first 34 measures are repeated with an alternate 
ending. (I am using a two-volta repeat.)


For only the repeated first section, is there a mechanism for 
displaying the bar number for volta 1 followed by the bar number for 
volta 2 in parentheses?


For example, measure 7 of the volta 1 is measure 41 of volta 2.

In this situation, I would like the bar number to appear as: 7 (41)

I am attaching a PNG image showing what I would like to do.

I am currently displaying bar numbers at the beginning of ever line 
except the first.


If this topic is covered in the snippets or Lilypond mail archive and 
I missed it, please refer me to the appropriate section.


Thanks for any help that anyone is willing to provide.


This is not very elegant (as it is almost no automatic involved), but it 
does what I think you want to achieve:


\version "2.22"

barNumberWithOffset =
#(define-scheme-function (offset) (integer?)
   (lambda (barnum measure-pos alt-number context)
 (let ((default
    (robust-bar-number-function barnum measure-pos alt-number 
context)))

   (if (zero? offset)
   default
   (format #f "~a (~a)" default (+ barnum offset))

increaseBarNumber =
#(define-music-function (offset) (integer?)
   #{
 \context Timing {
   \applyContext
   #(lambda (ctx)
  (ly:context-set-property!
   ctx
   'currentBarNumber
   (+ (ly:context-property ctx 'currentBarNumber) offset)))
 }
   #})

\relative {
  \override Score.BarNumber.break-visibility = #end-of-line-invisible % 
for diagnostics

  \override Score.BarNumber.self-alignment-X = #LEFT % for positioning
  \set Score.barNumberFormatter = \barNumberWithOffset 20
  \repeat volta 2 {
    \repeat unfold 20 {
  c'4 d e d
    }
  }
  \increaseBarNumber 20
  \set Score.barNumberFormatter = \barNumberWithOffset 0
  \repeat unfold 20 {
    c'4 d e d
  }
}

Lukas