Re: bug in lyric syllable magnetic snap

2019-05-27 Thread Thomas Morley
Am Mo., 27. Mai 2019 um 10:40 Uhr schrieb Alexander Kobel :

> unless I additionally engage
>http://lsr.di.unimi.it/LSR/Item?id=1090
> to replace Lily's built-in hyphens by the "proper" Lyric's font hyphens;
> then it breaks again.
>
> I did not have a very close look yet; I thought replacing ly:stencil? by
> (not ly:stencil-empty?) might help, but that's not it. I'll give it
> another shot as soon as time permits.

Instead of doing:
(filter
  (lambda (hyphen)
(ly:stencil? (ly:grob-property hyphen 'stencil)))
  hyphen-grobs)

It works with
(cdr hyphen-grobs)

Tbh, I've no clue why ...


Cheers,
  Harm

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Acciaccatura distoring spacing

2019-05-27 Thread David Sumbler
Firstly let me apologise for my stupidity: I am quite aware of the
problem with gracenotes after barlines.  But in this case, with a
normal barline, there wasn't a problem until I started experimenting
with SpacingSpanner.strict-grace-spacing.  When the problem did arise,
it just didn't occur to me that the lack of dummy graces in the other
parts might be a factor.

Still... there really does still seem to be something odd and very
unsatisfactory going on here.  I have spent hours and hours
experimenting with this, and so far I haven't found a way of getting a
wholly satisfactory result. 

The following example illustrates the sort of problem I get:

\language "english"
#(set-global-staff-size 16)

\score {
   \new StaffGroup <<
 { \new Staff \time 5/4 \relative {
  \tuplet 6/4 {c'''16( d c a g e} c8) r
  \tuplet 3/2 4 {r \acciaccatura a' g-. \acciaccatura a g-.
 \once \hide TupletBracket 
 \acciaccatura a g[-. r \acciaccatura a g]-.
 \acciaccatura a g-. \acciaccatura a g-. r} |
  %% Violin 2-A Score No.1 bar 69
  \tuplet 3/2 4 {\once \hide TupletBracket \acciaccatura a='' g8-.
 \acciaccatura a g-. \acciaccatura a g-.
 r \acciaccatura a g-. \acciaccatura a g-.}
  \acciaccatura a g-.
  r r4
  \tuplet 6/4 {c16( d c a g e)} |
 } }
 { \new Staff \relative {
  r2
  \newSpacingSection
  \override Score.SpacingSpanner.strict-grace-spacing = ##t
  g''16-. g-. e'( c) g-. g-. e'( c) g-. g-. e'( c) |
  \newSpacingSection
  \revert Score.SpacingSpanner.strict-grace-spacing
  %% Violin 2-B Score No.1 bars 69
  \grace s8 g=''16-.
  \newSpacingSection
  \override Score.SpacingSpanner.strict-grace-spacing = ##t
  g-. e'( c) r4
  \newSpacingSection
  \revert Score.SpacingSpanner.strict-grace-spacing
  g16-. g-. e'( c)
  r8 e,16-. fs-. g-. a-. b-. c-. |
 } }
   >>
 }   


At first glance this is reasonable, and certainly the problem of the
barline appearing 4 1/2 beats later than it should has been solved.

But in fact the barline is still not quite where it should be: it is
too far to the left, so that it is almost touching the last semiquaver
of the first bar, and there is an unnecessarily large space before the
acciaccatura in the upper line.

In the original score there are 8 other staves (plus 2 invisible ones),
generally less busy than these 2 staves.  If I could understand how to
get a predictably good result for these 2 staves, hopefully that would
translate into a solution for the whole score.  But at the moment, it's
"doing my head in", as they say.

David


On Mon, 2019-05-27 at 09:20 +1000, Andrew Bernard wrote:
> Hi All,
> 
> Isn't this a well known bug in lilypond? Much discussion in the list
> archives. You need to add the spacer in the other voice.
> 
> Andrew
> 

On Sun, 2019-05-26 at 14:20 -0300, Stefano Troncaro wrote:
> Hi David,
> 
> Look at this:
> 
> %
> \version "2.19.82"
> \language "english"
> #(set-global-staff-size 16)
> 
> strictGraceTrue = {
>   \newSpacingSection
>   \override Score.SpacingSpanner.strict-grace-spacing = ##t }
> 
> strictGraceFalse = {
>   \newSpacingSection
>   \override Score.SpacingSpanner.strict-grace-spacing = ##f }
> 
> \score {
>   \new StaffGroup <<
> \new Staff { s4*5*2 }
> \new Staff \relative { \time 5/4
>   r2
>   \strictGraceTrue
>   \tuplet 3/2 4 {r8 \acciaccatura a'' g-. \acciaccatura a g-.
>  \once \hide TupletBracket
>  \acciaccatura a g[-. r \acciaccatura a g]-.
>  \acciaccatura a g-. \acciaccatura a g-. r} |
>   \noBreak \strictGraceFalse
>   \tuplet 3/2 4 {\once \hide TupletBracket \acciaccatura a g8-.
>  \acciaccatura a g-. \acciaccatura a g-.
>  r \acciaccatura a g-. \acciaccatura a g-.}
>   \acciaccatura a g-.
>   r r2 |
> }
> \new Staff \relative {
>r2 g''16-. g-. e'( c) g-. g-. e'( c) g-. g-. e'( c) |
>\grace s8 g=''16-. \strictGraceTrue g-. e'( c) r4 g16-. g-.
> e'( c)
>r8 e,16-. fs-. g-. a-. b-. c-. |
> }
>   >>
> }  
> %
> 
> I'm sorry I don't have time to write a full explanation, or more
> tests now, but I think the problem lies with the fact that the bar
> starts with an acciacatura in one Voice, but there is a bar check and
> no acciacatura in the other Voice. Writing an acciacatura with a
> spacer rest in the voice that has no printed grace note solves the
> issue. To avoid having the grace (that occupies no time with the
> strict-grace-spacing set to #t) collide with the barline, I changed
> spacing sections.
> 
> Hope this helps,
> Stéfano


___
lilypond-user mailing list
lilypond-user@gnu.org

Re: Less intra-word space in lyrics

2019-05-27 Thread Noeck


Am 31.12.18 um 14:34 schrieb Noeck:
> Hi,
>
> How can I move syllables closer together?
>
> In the example, the word "przyjaciele" (one word) is written like "przy
> ja cie le" and looks like four words. When I remove the minimum-length
> override, I get hyphens like "przy-ja-cie-le". Both versions don't look
> good to me. I would prefer something like "przyja - ciele" or even
> "przyjaciele" centered under these notes.
>
>
> MWE (the attached image is not from this code but from the real song):
>
> \version "2.18.2"
>
> \paper {
>   line-width = 55\mm
>   ragged-right = ##f
> }
>
> \score {
>   <<
> \new Staff \new Voice = "v" { \autoBeamOff e'8 e' d' c'}
> \new Lyrics \lyricsto v { przy -- ja -- cie -- le }
>   >>
>
>   \layout {
> \override Lyrics.LyricHyphen.minimum-length = 1.0
>   }
> }


I guess this is the answer to it (and the whole thread):
http://lists.gnu.org/archive/html/lilypond-user/2019-05/msg00343.html

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bug in lyric syllable magnetic snap

2019-05-27 Thread Alexander Kobel

Hi Harm,

On 22.05.19 23:08, Thomas Morley wrote:

Am Mi., 22. Mai 2019 um 08:17 Uhr schrieb Alexander Kobel :


Hi Harm, hi all,

On 22.05.19 01:20, Thomas Morley wrote:

Am Do., 16. Mai 2019 um 13:25 Uhr schrieb Alexander Kobel :


Hi David, hi Mike, hi all,

I sometimes (still use Lilypond, and when I do, I typically use) your
wonderful snippet for snapping "close" syllables into a single token. [...]

Now I stumbled across an issue with that: two syllables are combined
which are clearly far apart; see the attached screenshot and reduced
working example from an actual engraving. It's not exactly minimal, but
at least it's reasonably short and shows the problem. And the exact
circumstances when the bug occurs are not clear to me, and it's somewhat
sensitive to reduction. [...]


Hi,

probably I've found a fix.

See attached files. There's a change-log on top of the .ily-file.
Main thing is to exclude LyricHyphens without stencil form iterating.

Not sure if the core "magnetic-snapping"-functionality isn't disturbed.
Please test thoroughly.


according to my tests, it works perfectly. I also tried your version in 
a couple of scores where I previously had issues with the original 
version (probably the same problem, but I don't remember exactly) and 
thus commented it out, and couldn't spot any flaws.


Thanks a ton!


That is, unless I additionally engage
  http://lsr.di.unimi.it/LSR/Item?id=1090
to replace Lily's built-in hyphens by the "proper" Lyric's font hyphens; 
then it breaks again.


I did not have a very close look yet; I thought replacing ly:stencil? by 
(not ly:stencil-empty?) might help, but that's not it. I'll give it 
another shot as soon as time permits.




Cheers,
   Harm


Cheers,
Alex



smime.p7s
Description: S/MIME Cryptographic Signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [Lilypond] How to add 12 bars of guitar strumming as Intro

2019-05-27 Thread John Helly
Mahalo. I'll investigate.
J.

On 5/26/19 20:34, Michael Hendry wrote:
>> On 26 May 2019, at 22:35, John Helly  wrote:
>>
>> Aloha.
>>
>> I'm writing a song for guitar and vocal that has the structure below. I 
>> would like to add 12 bars of strumming guitar as an Intro but cannot figure 
>> out how to add it within the Staff since it doesn't have a melody, only 
>> strumming of the chords.
>>
>> I've been trying to figure out how to add this as a Voice 
>> (\Song.Voice.Intro) but can't seem to find the secret sauce or maybe that's 
>> the wrong approach?
>>
>> Mahalos.
>> J.
>>
>> *
>> <<
>> \chords{ \theChords \theChords \theChords  }
>> \new Staff {
>>   \key a \minor
>>   \new Voice = "intro"   { \Song.Voice.Intro  \break }
>>   \new Voice = "verse"   { \Song.Voice.Verse  \bar "||" }
>>   \new Voice = "chorus"  { \Song.Voice.Chorus \bar "||" }
>>   \new Voice = "outro"   { \Song.Voice.Outro  \bar ":|." }
>> }
>> \new Lyrics \lyricsto "verse" { \Song.Lyrics.VerseI }
>> \new Lyrics
>>   <<
>>   \lyricsto "verse"  { \Song.Lyrics.VerseII }
>>   \lyricsto "chorus" { \Song.Lyrics.Chorus }
>>   >>
>> \new Lyrics  \lyricsto "verse" { \Song.Lyrics.VerseIII }
>> \new Lyrics
>>   <<
>>   \lyricsto "verse" { \Song.Lyrics.VerseIV }
>>   \lyricsto "chorus" { \Song.Lyrics.Chorus }
>>   >>
>> \new Lyrics  \lyricsto "verse"  { \Song.Lyrics.VerseV }
>> \new Lyrics  \lyricsto "outro"  { \Song.Lyrics.Outro }
>> *
> Have you had a look here?
>
> http://lilypond.org/doc/v2.19/Documentation/snippets/rhythms
>
> Search for the section marked “Guitar strum rhythms”.
>
> Michael
>

-- 

University of Hawaii, Maui College / Mobile 760.840.8660


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [Lilypond] How to add 12 bars of guitar strumming as Intro

2019-05-27 Thread Michael Hendry
> On 26 May 2019, at 22:35, John Helly  wrote:
> 
> Aloha.
> 
> I'm writing a song for guitar and vocal that has the structure below. I would 
> like to add 12 bars of strumming guitar as an Intro but cannot figure out how 
> to add it within the Staff since it doesn't have a melody, only strumming of 
> the chords.
> 
> I've been trying to figure out how to add this as a Voice (\Song.Voice.Intro) 
> but can't seem to find the secret sauce or maybe that's the wrong approach?
> 
> Mahalos.
> J.
> 
> *
> <<
> \chords{ \theChords \theChords \theChords  }
> \new Staff {
>   \key a \minor
>   \new Voice = "intro"   { \Song.Voice.Intro  \break }
>   \new Voice = "verse"   { \Song.Voice.Verse  \bar "||" }
>   \new Voice = "chorus"  { \Song.Voice.Chorus \bar "||" }
>   \new Voice = "outro"   { \Song.Voice.Outro  \bar ":|." }
> }
> \new Lyrics \lyricsto "verse" { \Song.Lyrics.VerseI }
> \new Lyrics
>   <<
>   \lyricsto "verse"  { \Song.Lyrics.VerseII }
>   \lyricsto "chorus" { \Song.Lyrics.Chorus }
>   >>
> \new Lyrics  \lyricsto "verse" { \Song.Lyrics.VerseIII }
> \new Lyrics
>   <<
>   \lyricsto "verse" { \Song.Lyrics.VerseIV }
>   \lyricsto "chorus" { \Song.Lyrics.Chorus }
>   >>
> \new Lyrics  \lyricsto "verse"  { \Song.Lyrics.VerseV }
> \new Lyrics  \lyricsto "outro"  { \Song.Lyrics.Outro }
> >>
> *

Have you had a look here?

http://lilypond.org/doc/v2.19/Documentation/snippets/rhythms

Search for the section marked “Guitar strum rhythms”.

Michael


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user