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

2023-11-22 Thread Knute Snortum
On Wed, Nov 22, 2023 at 12:09 PM Werner LEMBERG  wrote:

>
> > This fails in 2.24.1 with messages about mid-measure time signature
> > change and failed barcheck:
> >
> > \include "articulate.ly"
> > \articulate
> > {
> >   \time 4/4
> >   c'1 |
> >   \time 3/2
> >   \grace d'8 c'1. |
> > }
> >
> > Succeeds if \articulate is not used.  I can work around it by
> > tagging MIDI and non-MIDI versions of the music, with the time
> > signature change moved somewhere else in the MIDI version, but this
> > becomes complicated given that my actual score has eight parallel
> > variables at the point where it bites, all of which will need
> > alternate versions.
>
> Please check the looong list of bugs related to `\articulate` whether
> it has already been reported.
>
>
> https://gitlab.com/lilypond/lilypond/-/issues/?sort=created_asc=opened=articulate_page_size=100


It looks like this issue:

https://gitlab.com/lilypond/lilypond/-/issues/3696

For some reason, it's been changed from a defect to a warning issue, but
I'm not sure the logic for that is correct.


--
Knute Snortum


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

2023-11-22 Thread mskala
On Wed, 22 Nov 2023, Werner LEMBERG wrote:

> 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.

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before tribes.
https://ansuz.sooke.bc.ca/



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

2023-11-22 Thread Werner LEMBERG


> This fails in 2.24.1 with messages about mid-measure time signature
> change and failed barcheck:
> 
> \include "articulate.ly"
> \articulate
> {
>   \time 4/4
>   c'1 |
>   \time 3/2
>   \grace d'8 c'1. |
> }
> 
> Succeeds if \articulate is not used.  I can work around it by
> tagging MIDI and non-MIDI versions of the music, with the time
> signature change moved somewhere else in the MIDI version, but this
> becomes complicated given that my actual score has eight parallel
> variables at the point where it bites, all of which will need
> alternate versions.

Please check the looong list of bugs related to `\articulate` whether
it has already been reported.

  
https://gitlab.com/lilypond/lilypond/-/issues/?sort=created_asc=opened=articulate_page_size=100


Werner



Articulate has trouble with grace note at time signature change

2023-11-22 Thread mskala
This fails in 2.24.1 with messages about mid-measure time signature
change and failed barcheck:

\include "articulate.ly"
\articulate
{
  \time 4/4
  c'1 |
  \time 3/2
  \grace d'8 c'1. |
}

Succeeds if \articulate is not used.  I can work around it by tagging MIDI
and non-MIDI versions of the music, with the time signature change moved
somewhere else in the MIDI version, but this becomes complicated given
that my actual score has eight parallel variables at the point where it
bites, all of which will need alternate versions.

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before tribes.
https://ansuz.sooke.bc.ca/



Re: Aligning verse text?

2023-11-22 Thread Sebastien Richard
Hello,

Could you provide a tiny example to start with ?

BR

---
 Sébastien RICHARD

From: lilypond-user-bounces+richardsgjm=hotmail@gnu.org 
 on behalf of echo 

Sent: Wednesday, November 22, 2023 20:08
To: Michael Werner ; p...@cassland.org 
Cc: lilypond-user@gnu.org 
Subject: Re: Aligning verse text?

Hello Michael, Paul,
I am copying a choral piece and I need to separate four voices, to make it 
easier for reading. The idea is to keep all syllables (of each voice) just 
highlight mute syllables (pauses) differently. I have just start to use 
LilyPond and reading the manuals at the same time. Sometimes I stuck so thank 
you for help.
Kind Regards.


Re: Aligning verse text?

2023-11-22 Thread echo
Hello Michael, Paul,
I am copying a choral piece and I need to separate four voices, to make it 
easier for reading. The idea is to keep all syllables (of each voice) just 
highlight mute syllables (pauses) differently. I have just start to use 
LilyPond and reading the manuals at the same time. Sometimes I stuck so thank 
you for help.
Kind Regards.


Re: tspan in SVG export

2023-11-22 Thread K. Blum

Hi Johannes,

Am 22.11.2023 um 18:01 schrieb lilypond-user-requ...@gnu.org:

On most browsers there is a large gap between 'of' and 'terza'. I noticed
that lilypond exports such a situation as individual  elements
with absolute coordinates (as in ).

Is there a way to let lilypond combine these words into a single 
element, using  elements to define the formatting?


I don't know how to achieve this, but you could have your output
produced by the Cairo backend.
(Add '--svg' and '-dbackend=cairo' as command line options, see
https://www.mail-archive.com/lilypond-devel@gnu.org/msg77712.html )

This should look the same with any browser.
Drawback: It is graphical output and doesn't contain searchable text.

Cheers,
Klaus



Re: Aligning verse text?

2023-11-22 Thread Michael Werner
Hi there,

On Tue, Nov 21, 2023 at 10:03 AM  wrote:

> ‌How to place (ooo -- oo o -- ooo --) verse to first (r1) rest and (uu --
> u -- uu) to (g'4 fis' g')?
>

Something like this, as in?

\version "2.24.3"

globals = {
  \key f \major
  \time 2/1
}

musicOne = {
  e'4. e'8 e'4 e' e'2 e'4 r | \break
  r1 g'4 fis' g' r
  r1 e'4 e' e' r
}

musicTwo = {
  e'4. e'8 e'4 e' e'2 e'4 e | \break
  e1 g'4 fis' g' g
  g1 e'4 e' e' e
}

verseOne  = \lyricmode {
  x -- xx xx -- xx -- xx -- xx \skip 1
  ooo_--_oo_o_--_ooo -- uu -- u -- uu
}

\score {
  \new Staff <<
\globals
\new Voice = "one" {
  \musicOne
}
\new NullVoice = "two" {
  \musicTwo
}
\new Lyrics \lyricsto "two" {
  \verseOne
}
  >>
}

musicTwo is the same rhythm as musicOne, with notes in place of the rests.
We can get away with doing that, because musicTwo is being used in a
NullVoice context. Details on the NullVoice context are at
http://lilypond.org/doc/v2.24/Documentation/notation/techniques-specific-to-lyrics#index-NullVoice
but the basics here are that this context will accept music as any regular
Voice, but produces no printed output. Near as I can figure, its primary
use is situations just like this - aligning lyrics to a melody other than
what's being printed in the staff. I frequently use this for songs that
have both a melody and a harmony part with different rhythms and common
lyrics that need to align to (usually) the melody rhythm.

Also, the ooo's had to be fiddled a bit to get them to fit. That's why the
underscores - to make that sequence align as if it were all one word. And
the \skip 1 is to skip over the quarter rest at the end of the first line.

Lots of further explanations in the docs - for much of the basics for
dealing with lyrics sections 2.1.1 and 2.1.2 of the Notation Reference will
pretty much cover the basics.
-- 
Michael


tspan in SVG export

2023-11-22 Thread Johannes Keller
Hello!

I use lilypond with the "-dbackend=svg" option. The text in the
resulting SVG files looks very different depending on the browser used
to render it. This concerns text elements with a mix of normal and
italic text, for example:

step of _terza minore_

('terza minore' in italics)

On most browsers there is a large gap between 'of' and 'terza'. I noticed
that lilypond exports such a situation as individual  elements
with absolute coordinates (as in ).

Is there a way to let lilypond combine these words into a single 
element, using  elements to define the formatting? Below I
include an excerpts of an original SVG file and a solution that would
solve the problem.

Thank you!

Johannes



Lilypond source:

\left-align { \concat { \normal-text "step of " \italic "terza minore" } }


Original Lilypond export:



step of 





terza minore




Solution:



step of terza minore