Re: Articulate has trouble with grace note at time signature change

2023-11-24 Thread Werner LEMBERG


>> Please check the looong list of bugs related to `\articulate`
>> whether it has already been reported.
> 
> Seems to be #3696, reported - by you - in 2013.

D'oh :-)


Werner



Re: Books with alternative lyrics minimizing code duplication?

2023-11-24 Thread David Wright
On Fri 24 Nov 2023 at 16:23:52 (+0200), YTG 123 wrote:
> 
> I have alternative versions of lyrics text, which I would like to
> export in different files (or \book blocks). The music, order of
> staves, etc. is identical.
> 
> Ideally, I would want to do this as cleanly and with as little code
> duplication as possible.

Perhaps an easy way to do this is as in the attached files.

Place all the lyrics for one version in one file (o-sing.ily),
using different variable names for all the different sections,
books etc in the piece. (I've just used the voice names for brevity.)

Now write a corresponding file (sing-ye.ily) with the alternative
lyrics, but using all the same corresponding variable names.

Merely include the appropriate lyrics filename in the master file
to produce the appropriate output file(s).

This method uses one simple modification of the master file to
change all the lyrics in all the output files (by removing the
%% in my master file example).

If even that amount of modification of source files is not possible,
then you can instead use the same filename for the two versions
of the lyrics, but place them in two different directories (and
also a different directory from the master file). Then select
which lyrics file is included in the run by using an appropriate
--include= in the LilyPond command line.

Cheers,
David.
sopranotext = \lyricmode {
  O sing joy -- ful -- ly,
}
altotext = \lyricmode {
  O sing joy -- ful -- ly,
}
tenortext = \lyricmode {
  O sing joy -- ful -- ly,
}
basstext = \lyricmode {
  O sing joy -- ful -- ly,
}
sopranotext = \lyricmode {
  Sing ye joy -- ful -- ly,
}
altotext = \lyricmode {
  Sing ye joy -- ful -- ly,
}
tenortext = \lyricmode {
  Sing ye joy -- ful -- ly,
}
basstext = \lyricmode {
  Sing ye joy -- ful -- ly,
}
\language english
\include "o-sing.ily"
%%\include "sing-ye.ily"

global = {
  \key af \major
  \time 3/4
  s2. * 2
}
soprano = \relative {
  af'2 af4
  af4. af8 af4
}
alto = \relative {
  ef'2 ef4
  f4. f8 ef4
}
tenor = \relative {
  c'2 c4
  df4. df8 ef4
}
bass = \relative {
  af2 af4
  df,4. df8 c4
}

\book {
  \bookOutputSuffix "choir"
  \score {
\new ChoirStaff <<
  \new Staff <<
\clef treble \global
\new Voice { \soprano }
\addlyrics { \sopranotext }
  >>
  \new Staff <<
\clef treble \global
\new Voice { \alto }
\addlyrics { \altotext }
  >>
  \new Staff <<
\clef "treble_8" \global
\new Voice { \tenor }
\addlyrics { \tenortext }
  >>
  \new Staff <<
\clef bass \global
\new Voice { \bass }
\addlyrics { \basstext }
  >>
>>
\layout { }
  }
}

\book {
  \bookOutputSuffix "piano"
  \score {
\new PianoStaff <<
  \new Staff = up <<
\clef treble \global
\new Voice { \voiceOne \soprano }
\addlyrics \with { alignAboveContext = up } { \sopranotext }
\new Voice { \voiceTwo \alto }
  >>
  \new Staff <<
\clef bass \global
\new Voice { \voiceOne \tenor }
\new Voice { \voiceTwo \bass }
\addlyrics { \basstext }
  >>
>>
\layout { }
  }
}


Re: suggestion for slur?

2023-11-24 Thread Shane Brandes
 _\startTrillSpan

answers for that.

On Fri, Nov 24, 2023 at 5:16 PM David Kastrup  wrote:

> Mario Bolognani  writes:
>
> >\override TrillSpanner.bound-details.left.text = #'()
> >   \startTrillSpan
> >  works for 2.24
> >
> > This is an acceptable result :
>
> What piece of standalone code got you get this output?  Without
> providing any code to experiment with, you easily require 10-fold the
> amount of work for anybody willing to help you.  That decreases your
> chances of finding volunteers to make useful suggestions.
>
> --
> David Kastrup
>
>


Re: suggestion for slur?

2023-11-24 Thread David Kastrup
Mario Bolognani  writes:

>\override TrillSpanner.bound-details.left.text = #'()
>   \startTrillSpan
>  works for 2.24 
>
> This is an acceptable result :

What piece of standalone code got you get this output?  Without
providing any code to experiment with, you easily require 10-fold the
amount of work for anybody willing to help you.  That decreases your
chances of finding volunteers to make useful suggestions.

-- 
David Kastrup



Re: suggestion for slur?

2023-11-24 Thread Mario Bolognani

>   \override TrillSpanner.bound-details.left.text = #'()
>  \startTrillSpan
> works for 2.24 

This is an acceptable result :


but I would like the have the wavy line under the notes not above….

Mario Bolognani
mario.bologn...@gmail.com



> Il giorno 24 nov 2023, alle ore 19:06, Shane Brandes 
>  ha scritto:
> 
> 
> regards,
> 
> Shane
> 
> On Fri, Nov 24, 2023 at 12:24 PM Mario Bolognani  > wrote:
>> Hello,
>> 
>> any suggestion for this kind of slur? Many thanks for any good idea...
>> 
>> 
>> 
>> 
>> Mario Bolognani
>> mario.bologn...@gmail.com 
>> 
>> 
>> 



Re: LilyPond 2.24.3 and Norton 360

2023-11-24 Thread Knute Snortum
On Fri, Nov 24, 2023 at 9:51 AM Karlin High  wrote:

> On 11/24/2023 9:38 AM, Knute Snortum wrote:
> > My hope is this will help others in the same situation.
>
> To further that hope, Norton has a website for reporting false-positives.
>
> Hub page:
>
> <
> https://support.norton.com/sp/en/us/home/current/solutions/kb20090602171902EN
> >
>
> File submission:
>
> 
>

Thanks!  Great information.

--
Knute Snortum


Re: 2.25.10 *-1.pdf

2023-11-24 Thread Paul Scott

On 11/24/23 10:49 AM, Jean Abou Samra wrote:

I only have one \book block in my case as I think I always do. As I
mentioned the file-1.pdf usually is accompanied by error messages
leading to a fix which eliminates the file-1.pdf but not in this case.
At this point it's just a nuisance not worth creating a MWE.


The other \book might be implicit as in

\book { { c' } }
{ c' }


Oops!

  I actually was in transition from an old style of my .ly files.  I 
had a temporary \score{ } before the \book block.


Thank you!,

Paul















Re: suggestion fo slur?

2023-11-24 Thread Ralph Palmer
On Fri, Nov 24, 2023 at 9:24 AM Mario Bolognani 
wrote:

> Hello,
>
> any suggestion for this kind of slur? Many thanks for any good idea...
>
> [image: Screenshot 2023-11-24 alle 18.22.25.png]
>
>
> Mario Bolognani
> mario.bologn...@gmail.com
>

Greetings, Mario Bolognani -
If it's the "slur" between the last note in the first measure and the first
note in the second measure, it's a tie, which you can get by using a tilde
after the note in the first measure :
g~
All the best,
Ralph


__
Ralph Palmer
Seattle
USA
(he, him, his)
palmer.r.vio...@gmail.com


Re: suggestion fo slur?

2023-11-24 Thread Shane Brandes
  \override TrillSpanner.bound-details.left.text = #'()
 \startTrillSpan
works for 2.24

regards,

Shane

On Fri, Nov 24, 2023 at 12:24 PM Mario Bolognani 
wrote:

> Hello,
>
> any suggestion for this kind of slur? Many thanks for any good idea...
>
> [image: Screenshot 2023-11-24 alle 18.22.25.png]
>
>
> Mario Bolognani
> mario.bologn...@gmail.com
>
>
>
>


Re: LilyPond 2.24.3 and Norton 360

2023-11-24 Thread Karlin High

On 11/24/2023 9:38 AM, Knute Snortum wrote:

My hope is this will help others in the same situation.


To further that hope, Norton has a website for reporting false-positives.

Hub page:



File submission:


--
Karlin High
Missouri, USA




Re: 2.25.10 *-1.pdf

2023-11-24 Thread Jean Abou Samra

> I only have one \book block in my case as I think I always do. As I
> mentioned the file-1.pdf usually is accompanied by error messages 
> leading to a fix which eliminates the file-1.pdf but not in this case. 
> At this point it's just a nuisance not worth creating a MWE.


The other \book might be implicit as in

\book { { c' } }  
{ c' }










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


Re: 2.25.10 *-1.pdf

2023-11-24 Thread Paul Scott

On 11/24/23 2:15 AM, Jean Abou Samra wrote:

This typically happens when you have several \book blocks,
which requests separate output files. For example


\book { { c' } } % => file.pdf
\book { { c' } } % => file-1.pdf

Jean, Thank you for your reply.

I only have one \book block in my case as I think I always do. As I 
mentioned the file-1.pdf usually is accompanied by error messages 
leading to a fix which eliminates the file-1.pdf but not in this case. 
At this point it's just a nuisance not worth creating a MWE.


Paul



Best,
Jean






suggestion fo slur?

2023-11-24 Thread Mario Bolognani
Hello,

any suggestion for this kind of slur? Many thanks for any good idea...




Mario Bolognani
mario.bologn...@gmail.com





Re: Books with alternative lyrics minimizing code duplication?

2023-11-24 Thread Michael Werner
Hi,

On Fri, Nov 24, 2023 at 9:25 AM YTG 123  wrote:

> Hello,
>
> I have alternative versions of lyrics text, which I would like to export
> in different files (or \book blocks). The music, order of staves, etc.
> is identical.
>
> Ideally, I would want to do this as cleanly and with as little code
> duplication as possible.
>

I do something a bit like this on a regular basis - generating multiple
versions from the same music. In my case, instead of doing different lyrics
I'm doing some instrument specific formatting and such. But the basic idea
is pretty similar. Perhaps something like this?

\version "2.25.10"

music = { c'4 d' e' }
lyricsOne = \lyricmode { do re mi }
lyricsTwo = \lyricmode { a b c }

% Header info common to all versions
main_header =
\header {
  title = "Main Title"
  composer = "Written by Foo Bar"
}

% Here is the main body of the score, so we can call it as needed
main_score = <<
  \new Staff {
\new Voice = "VOne" {
  \music
}
  }
  \tag #'(showLyricsOne) {
\new Lyrics  \lyricsto "VOne" {
  \lyricsOne
}
  }
  \tag #'(showLyricsTwo) {
\new Lyrics  \lyricsto "VOne" {
  \lyricsTwo
}
  }
>>

% With what I usually do everything from here down is in a separate file,
that includes in everything above

\book {
  \paper {
output-suffix = "both_lyrics"
  }
  \header {
pdftitle = "Song Title - Both Lyrics"
subtitle = "Both Lyrics"
  }
  \main_header
  \score {
\main_score
\layout {
  % As needed
}
  }
}

\book {
  \paper {
output-suffix = "first_lyrics"
  }
  \header {
pdftitle = "Song Title - First Lyrics"
subtitle = "First Lyrics"
  }
  \main_header
  \score {
\keepWithTag #'showLyricsOne
%\removeWithTag #'showLyricsTwo
\main_score
\layout {
  % As needed
}
  }
}

\book {
  \paper {
output-suffix = "second_lyrics"
  }
  \header {
pdftitle = "Song Title - Second Lyrics"
subtitle = "Second Lyrics"
  }
  \main_header
  \score {
\keepWithTag #'showLyricsTwo
%\removeWithTag #'showLyricsOne
\main_score
\layout {
  % As needed
}
  }
}

As a source file named example1.ly this produces 3 PDFs:
example1-both_lyrics.pdf, example1-first_lyrics.pdf and
example1-second_lyrics.pdf
http://lilypond.org/doc/v2.25/Documentation/notation/output-file-names
goes over how to control the output file names.

Using pdftitle in a \header block to set the displayed PDF title gets
covered in
http://lilypond.org/doc/v2.25/Documentation/notation/creating-output-file-metadata

In this example I'm using tags to control which lyrics get shown when.
There are 2 ways to use them: \keepWithTag and \removeWithTag  Details on
how they both get used are in
http://lilypond.org/doc/v2.25/Documentation/notation/using-tags
Short version: \keepWithTag keeps music with that tag and untagged music,
while \removeWithTag keeps everything but the music with the selected tag.
There's more to it than that - especially if you get into using multiple
tags at the same time. But this example is simple enough that it could work
either way - swap the two commented tag commands in each score to try it
out, and you'll see that the output is the same.
-- 
Michael


Re: LilyPond in Guile

2023-11-24 Thread Jean Abou Samra
> I'd like to include LilyPond code blocks in SXML documents. Is it 
> possible to import a module to use LilyPond expressions from actual 
> Guile, and not LilyPond's Guile?
> 
> (use-modules (lilypond))
> `((img (@ (src #{c'4 e'4 g'2 #}

No, sorry. LilyPond is designed as a standalone program, not as
an importable Guile library.




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


LilyPond 2.24.3 and Norton 360

2023-11-24 Thread Knute Snortum
I found that Norton 360 thought the LilyPond executable was a virus on
Windows 11. The symptom was that Lilypond exits with a code of 1 and no PDF
is created. In case this happens to anyone else, here are the steps to
exclude LIlyPond from Norton's real time protection:

1) Open Norton 360 app
2) Click on Open next to Device Security
3) Click on Settings
4) Click on Antivirus
5) Click on Data Protector
6) Click on Configure next to Process Exclusions
7) Click on Add
8) Navigate to where you installed LilyPond and in the bin folder, choose
lilypond.exe

My hope is this will help others in the same situation.

--
Knute Snortum


LilyPond in Guile

2023-11-24 Thread Caleb Herbert

Hi LilyPond,

I'd like to include LilyPond code blocks in SXML documents. Is it 
possible to import a module to use LilyPond expressions from actual 
Guile, and not LilyPond's Guile?


(use-modules (lilypond))
`((img (@ (src #{c'4 e'4 g'2 #}

Thanks,

Caleb




Books with alternative lyrics minimizing code duplication?

2023-11-24 Thread YTG 123

Hello,

I have alternative versions of lyrics text, which I would like to export 
in different files (or \book blocks). The music, order of staves, etc. 
is identical.


Ideally, I would want to do this as cleanly and with as little code 
duplication as possible.


%%%

music = { c'4 d' e' }
lyricsOne = \lyricmode { do re mi }
lyricsTwo = \lyricmode { a b c }

%% Somehow, store the structure of the score in a variable and 
substitute lyrics later?
%% This is not so bad, but the actual use case has more staves, 
properties in \with, etc.
%% and the file has managed to get than 1,000 lines long (with the 
actual notes and

%% lyrics being in different files; just the \books).

\book {
    \new Staff << \music \addlyrics \lyricsOne \addlyrics \lyricsTwo >>
}

\book {
    \new Staff << \music \addlyrics \lyricsOne >>
}

\book {
    \new Staff << \music \addlyrics \lyricsTwo >>
}

%%%

Thank you.




Re: start/stop staff

2023-11-24 Thread Michael Werner
Hi David,

On Thu, Nov 23, 2023 at 7:10 PM bobr...@centrum.is 
wrote:

> I have a quartet piece with a recitative type section in one part.  The
> other parts play, essentially, punctuation.  The "solo" part is
> rhythmically complex enough that having it on the accompanying parts would
> make it far easier to play.  I could easily put the entire movement in each
> part as a StaffGroup but I would prefer a two-line staffGroup only for the
> sections where the solo part is not homophonic with the rest.  How would I
> go about starting/stopping such a thing?
>
> Put simply, I want to start the parts with a staffGroup which contains the
> individual part with the solo part above at a reduced size.  Then, when
> that section is done, reduce to the individual part.  Then reintroduce the
> solo part at a later section for the same reason.
>

I'd go about this with something like:

\version "2.25.10"

\paper {
  #(set-paper-size "a6")
}

solo = \relative c' {
  \repeat unfold 2 { a'4 b c d e d c b }
  R1*5
  a4 b c d e d c b
  R1*4  R1
}

individual = \relative c' {
  \repeat unfold 4 { c4 d e f g a b c b a g f e d c d }
}

\new StaffGroup
<<
  \new Staff \with {
\RemoveAllEmptyStaves
\magnifyStaff #2/3
  }
  \new Voice {
\solo
  }

  \new Staff {
\new Voice {
  \individual
}
  }
>>

[image: document.png]

Might take a little trial and error to get the right combination of the R1
multiples, but should be fairly straightforward.

Also, if a section either starts or ends partway through a stave there will
be empty measures - \RemoveAllEmptyStaves goes from line break to line
break. This is shown in the 3rd line of this example.

As this is Lilypond, of course there are other ways to do this. Have a look
at
http://lilypond.org/doc/v2.25/Documentation/notation/ossia-staves
and
http://lilypond.org/doc/v2.25/Documentation/notation/hiding-staves
for some other examples.
-- 
Michael


Re: 2.25.10 *-1.pdf

2023-11-24 Thread Jean Abou Samra
This typically happens when you have several \book blocks,
which requests separate output files. For example


\book { { c' } } % => file.pdf
\book { { c' } } % => file-1.pdf

Best,
Jean



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