Re: top-level `\midi` doesn't work as expected

2023-11-16 Thread Werner LEMBERG



> Would it be possible to reformulate a bit to make it even more clear
> that this is analogous to how \layout blocks behave (the only
> difference being that a \score block that contains nor a layout
> neither a midi block implicitly contains a layout block).  For
> example: [...]

Sorry for the late reply.  I've amended the wording, thanks.


Werner



Re: LilyPond 2.25.10

2023-11-16 Thread Michael Gerdau

I will try to create a MWE if that is required to track down the problem.



A *minimal* example is not strictly required (though helpful), but
*some* example is — otherwise, there is nothing we can do, sorry.


Attached is a fairly short example that shows the described behaviour 
with 2.25.10


The problem seems to be created by the code copied from LSR snippet 888. 
When the \layout{} section is commented out, everything compiles fine. 
So maybe it's not a lilypond problem but one of LSR snippet 888.


Kind regards,
Michael
--
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver\version "2.25.9"

%% Start LSR snippet 888

%% http://lsr.di.unimi.it/LSR/Item?id=888

%LSR by Wolf Alight
%=>http://lists.gnu.org/archive/html/lilypond-user/2010-02/msg00444.html
%=>http://lists.gnu.org/archive/html/lilypond-user/2013-05/msg00800.html

%LSR modified by Alexander Kobel
%=>http://permalink.gmane.org/gmane.comp.gnu.lilypond.general/89675

%LSR modified by Thomas Morley
%=>http://lilypond.1069038.n5.nabble.com/LyricText-center-on-word-breaks-lyricMelismaAlignment-tt183456.html

%% Note: Only characters of the string used to define space-set
%% are recognized by 'center-on-word'
#(define space-set
  (list->char-set
(string->list ".?-;,:„“”‘’–— */()[]{}|<>!`~&…‥")))

#(define (width grob text)
  (let* ((X-extent
   (ly:stencil-extent (grob-interpret-markup grob text) X)))
   (if (interval-empty? X-extent)
   0
   (cdr X-extent

#(define (center-on-word grob)
  (let* ((text (ly:grob-property-data grob 'text))
 (syllable (markup->string text))
 (word-position
   (if (string-skip syllable space-set)
   (string-skip syllable space-set)
   0))
 (word-end
   (if (string-skip-right syllable space-set)
   (+ (string-skip-right syllable space-set) 1)
   (string-length syllable)))
 (preword (substring syllable 0 word-position))
 (word (substring syllable word-position word-end))
 (preword-width (width grob preword))
 (word-width (width grob (if (string-null? syllable) text word)))
 (note-column (ly:grob-parent grob X))
 (note-column-extent (ly:grob-extent note-column note-column X))
 (note-column-width (interval-length note-column-extent)))

  (-
(*
  (/ (- note-column-width word-width) 2)
  (1+ (ly:grob-property-data grob 'self-alignment-X)))
preword-width)))

%% For general use this take this layout-setting
%% In the example below the override is applied to selected Lyrics only
%%
%{
\layout {
  \context {
\Lyrics
\override LyricText.X-offset = #center-on-word
  }
}
%}

%% End LSR snippet 888



sopranoOne = \relative bes' {
  \time 3/2
  R1*3/2*2 | bes2.^\parendyn\f c4 d2 | f2. es4 d2 \bar "||"
  \time 2/2 \tempo \markup { "[" \smaller \note {1} #UP = \smaller \note {1.} 
#UP "]" } 1=62
  es1~^\parendyn\mp | es1 | d1 | r2 bes8[ c d es] f4. es8 d4 d |
  \bar "|."
}

sopranoOneVerse = \lyricmode {
  Ho -- di -- e, ho -- di -- e, Chri -- stus, na -- _ _ _ tus est,
  No -- e, __ No -- e, No -- e, No -- e, No -- e, No -- e.
}

\score {
  \new ChoirStaff <<
\new Staff \with {
  midiInstrument = "acoustic grand"
  instrumentName = "Soprano I"
}
\new Voice = "soprano1" \sopranoOne
\new Lyrics \lyricsto "soprano1" { \sopranoOneVerse }
  >>
}


Re: LilyPond 2.25.10

2023-11-16 Thread Jean Abou Samra
Le jeudi 16 novembre 2023 à 20:58 +0100, Michael Gerdau a écrit :
> I will try to create a MWE if that is required to track down the problem.


A *minimal* example is not strictly required (though helpful), but
*some* example is — otherwise, there is nothing we can do, sorry.


signature.asc
Description: This is a digitally signed message part


Re: LilyPond 2.25.10 with Guile 3.0

2023-11-16 Thread Jonas Hahnfeld via LilyPond user discussion
On Thu, 2023-11-16 at 11:11 -0600, Karlin High wrote:
> On Sun, Nov 12, 2023 at 6:26 AM Jonas Hahnfeld via LilyPond user
> discussion  wrote:
> > If you have some time, please test them in your setups and report back in 
> > case of problems!
> 
> Seems OK so far. Windows 11 21H2, Intel Core i5-1135G7.
> 
> "
> > lilypond.exe scheme-sandbox
> GNU LilyPond 2.25.10 (running Guile 3.0)
> Processing 
> `C:/Users/owner/AppData/Local/frescobaldi/frescobaldi/lilypond-binaries/lilypond-2.25.10/share/lilypond/2.25.10/ly/scheme-sandbox.ly'
> Parsing...
> GNU Guile 3.0.9
> "

Great, thanks for testing!

> When I run convert-ly, it makes version statements "2.25.9". I can't
> remember if that is expected or not for the 2.25.10 binaries. No
> warnings of outdated versions are given when compiling the results.

Yes, that's expected because there were no conversion rules for 2.25.10
and convert-ly doesn't force-update the version number (unless --
current-version is passed).

Jonas


signature.asc
Description: This is a digitally signed message part


Re: LilyPond 2.25.10

2023-11-16 Thread Michael Gerdau

[release of Lilypond 2.25.10 msg snipped]

I have a score which compiles on 2.25.9 with a couple of warnings and 
crashes hard with 2.25.10.


Msgs for 2.25.10 (ignore the dublicate tempo-change-event - they are 
identical in the 5 voices; the real problem is teh Guile error in 
init.ly at the end):


Starte lilypond.exe 2.25.10 
[Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly]...
Processing 
`C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly'

Parsing...
Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-soprano1.midi'...

Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-soprano2.midi'...

Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-alto.midi'...

Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-tenor.midi'...

Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-bass.midi'...

Interpreting music...
C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:47:13: 
warning: conflict with event: `tempo-change-event'

  \time 2/2
\tempo \markup { "[" \smaller \note {1} #UP = \smaller 
\note {1.} #UP "]" } 1=62


C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:75:13: 
warning: discarding event: `tempo-change-event'

  \time 2/2
\tempo \markup { "[" \smaller \note {1} #UP = \smaller 
\note {1.} #UP "]" }


C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:47:13: 
warning: conflict with event: `tempo-change-event'

  \time 2/2
\tempo \markup { "[" \smaller \note {1} #UP = \smaller 
\note {1.} #UP "]" } 1=62


C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:103:13: 
warning: discarding event: `tempo-change-event'

  \time 2/2
\tempo \markup { "[" \smaller \note {1} #UP = \smaller 
\note {1.} #UP "]" }


C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:47:13: 
warning: conflict with event: `tempo-change-event'

  \time 2/2
\tempo \markup { "[" \smaller \note {1} #UP = \smaller 
\note {1.} #UP "]" } 1=62


C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:131:13: 
warning: discarding event: `tempo-change-event'

  \time 2/2
\tempo \markup { "[" \smaller \note {1} #UP = \smaller 
\note {1.} #UP "]" }


C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:47:13: 
warning: conflict with event: `tempo-change-event'

  \time 2/2
\tempo \markup { "[" \smaller \note {1} #UP = \smaller 
\note {1.} #UP "]" } 1=62


C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:159:13: 
warning: discarding event: `tempo-change-event'

  \time 2/2
\tempo \markup { "[" \smaller \note {1} #UP = \smaller 
\note {1.} #UP "]" }


[8][16][24][32][40][48][56][64][72][80][88][96][104][112][120]
Preprocessing graphical objects...
C:/Program 
Files/lilypond-2.25.10/share/lilypond/2.25.10/ly/init.ly:66:2: error: 
Guile signaled an error for the expression beginning here

#
 (let ((book-handler (if (defined? 'default-toplevel-book-handler)
No applicable method for #< + (2)> in call (+ #left-align-at-split-notes (grob)> 1)





The same file creates these msgs with 2.25.9 (despite the warnings 
regarding the programming error the resulting PDF looks just fine):


Starte lilypond.exe 2.25.9 
[Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly]...
Processing 
`C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly'

Parsing...
Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-soprano1.midi'...

Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-soprano2.midi'...

Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-alto.midi'...

Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-tenor.midi'...

Interpreting music...
MIDI output to 
`Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck-bass.midi'...

Interpreting music...
C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:47:13: 
warning: conflict with event: `tempo-change-event'

  \time 2/2
\tempo \markup { "[" \smaller \note {1} #UP = \smaller 
\note {1.} #UP "]" } 1=62


C:/Users/mgd/Documents/lilypond-Noten/Weihnachten/Hodie-Christus-natus-est-Jan-Pieterszoon-Sweelinck.ly:75:13: 
warning: discarding event: `tempo-change-event'

  \time 2/2
\tempo 

Longer extender

2023-11-16 Thread Johannes Roeßler

Hi Group,

is there a more elegant/automatic way to let the lyrics extender lines 
extend to the end of long notes?


I can do it manually with  \override LyricExtender.minimum-length = #xx
but was wondering whether I'm missing another way.

Best,

Johannes


Re: LilyPond 2.25.10 with Guile 3.0

2023-11-16 Thread Karlin High
On Sun, Nov 12, 2023 at 6:26 AM Jonas Hahnfeld via LilyPond user
discussion  wrote:
> If you have some time, please test them in your setups and report back in 
> case of problems!

Seems OK so far. Windows 11 21H2, Intel Core i5-1135G7.

"
>lilypond.exe scheme-sandbox
GNU LilyPond 2.25.10 (running Guile 3.0)
Processing 
`C:/Users/owner/AppData/Local/frescobaldi/frescobaldi/lilypond-binaries/lilypond-2.25.10/share/lilypond/2.25.10/ly/scheme-sandbox.ly'
Parsing...
GNU Guile 3.0.9
"

When I run convert-ly, it makes version statements "2.25.9". I can't
remember if that is expected or not for the 2.25.10 binaries. No
warnings of outdated versions are given when compiling the results.
-- 
Karlin High
Missouri, USA



Re: Separation of the musical notation.

2023-11-16 Thread Kieren MacMillan
Hi all,

> No idea how to do it with Lilypond, may-be other people have an idea.

\version "2.25.2"

teststaff = \new Staff \repeat unfold 12 c''4
test = \new ChoirStaff << \teststaff \teststaff \teststaff >>

\markup {
  \fill-line {
\score { \test }
\score { \test }
  }
}

> As for me, I would do this kind of thing using Lilypond to produce two 
> separate pages of smaller size, and use Scribus to arrange the partial PDF 
> files on the final page and produce the final PDF.

I think it’s ultimately easier to do it natively in Lilypond…?

Hope this helps!
Kieren.
__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




Re: Separation of the musical notation.

2023-11-16 Thread Silvain Dupertuis

No idea how to do it with Lilypond, may-be other people have an idea.

As for me, I would do this kind of thing using Lilypond to produce two separate pages of 
smaller size, and use Scribus to arrange the partial PDF files on the final page and 
produce the final PDF.


Silvain

Scribus  is an open source multi-platform DTP software. It 
allows you to insert PDF files (as links in an image frames), adjust position and size, 
crop the images, add other elements, etc., and export to PDF (the original PDF being 
embedded as such within the final PDF).




Le 16.11.23 à 14:18, Виноградов Юрий a écrit :
Good morning everyone! Can you tell me if it is possible to make such a division of the 
sheet music in lilypond? If anyone knows, please tell me.


Юрий Виноградов



--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org 

Re: FYI: recent MacPorts ghostscript upgrade causes Lilypond 2.24.2 warning from Guile

2023-11-16 Thread Thomas Scharkowski



> Am 15.11.2023 um 21:26 schrieb Kenneth Wolcott :
> 
> Thanks, Jean, I wasn't sure that this was a different thing with
> ghostscript or not, just thought I'd mention it.  Yes, I am using the
> Lilypond tarball now in place of the MacPorts Lilypond.  I am looking
> forward to the new Lilypond release...
> 
> Thanks,
> Ken
> 
> On Wed, Nov 15, 2023 at 11:41 AM Jean Abou Samra  wrote:
>> 
>> Thanks, but we already know about this. See 
>> https://gitlab.com/lilypond/lilypond/-/issues/6675 and the various recent 
>> threads about Homebrew on this list.
>> 
>> We are unfortunately unlikely to convince package maintainers to downgrade 
>> Ghostscript to 10.02.0 since the change that broke LilyPond was a security 
>> fix.
>> 
>> LilyPond 2.24.3 is going to be released quite soon with a workaround on our 
>> side that should fix this issue. Meanwhile, it's best to use binaries from 
>> lilypond.org.
> 
I get this error with MacPorts lilypond 2.25.8 and ghostscript @10.02.1_0+x11
/opt/local/share/lilypond/2.25.8/ly/init.ly:66:2: Fehler: Guile signaled an 
error for the expression beginning here
#
 (let ((book-handler (if (defined? 'default-toplevel-book-handler)
Throw to key `ly-file-failed' with args `()'.

I downgraded to ghostscript @10.02.0_0+x11 so it works again.

Thomas
 


Separation of the musical notation.

2023-11-16 Thread Виноградов Юрий
Good morning everyone! Can you tell me if it is possible to make such a division of the sheet music in lilypond? If anyone knows, please tell me.Юрий Виноградов