Re: How do I change the size of lyric text?

2019-05-17 Thread Gregory Hollands
Abraham,

I make a lot of lead sheets, and I do the following:

%%%
\version "2.19"

\layout {
  \override LyricText #'font-size = #2
}

Chords = \chordmode {
  c2 e2:m
}

Music = \relative c' {
  c4 d4 e4 f4
}

Lyrics = \lyricmode {
  Do re me fa
}

<<
  \new ChordNames { \Chords }
  \new Staff <<
\new Voice = "Verse" { \Music }
\new Lyrics \lyricsto "Verse" { \Lyrics }
  >>
>>
%%%

You can add multiple lyrics to the same music -- for multiple verses. And
when there are slight rhythmic variation that you don't want to notate, you
can use \new NullVoice to add a hidden voice to an existing staff, as shown
below.

%%%
<<
  \new Staff <<
\new Voice = "VerseA" { \MusicA }
\new Lyrics \lyricsto "VerseA" { \LyricsA }
\new Lyrics \lyricsto "VerseA" { \LyricsB }
\new NullVoice = "VerseC" { \MusicC }
\new Lyrics \lyricsto "VerseC" { \LyricsC }
  >>
>>
%%%

Best Regards,
Gregory Hollands
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: ChordName Font Size

2019-05-17 Thread Gregory Hollands
Aaron,

I noticed that the scaling factor -- #3 in the example below -- is not the
same between this method and the standard method ( \override Chordname
#'font-size).
This isn't a problem, as I was able to adjust the font size to my liking,
however I am curious as to why the difference exists.

%%%
\version "2.19"

embiggenChordNames = #(define-scheme-function (size) (number?)
   #{ \with {
 chordNameFunction = #(lambda (in-pitches bass inversion context)
   (define (helper mu)
 (if (list? mu)
   (if (eq? (car mu) musicglyph-markup)
 (markup (#:fontsize (- size) mu))
 (map helper mu))
   mu))
   (let ((orig (ignatzek-chord-names in-pitches bass inversion
context)))
 (markup (#:fontsize size (helper orig)
   } #} )

Chords = \chordmode {
  \override ChordName #'font-name = #"Source Sans Pro"
  a:dim bes c:maj7 d:m e:aug fis g:7/b
}

<<
  \new ChordNames
\with \embiggenChordNames #3
\Chords
>>

<<
  \new ChordNames
\with { \override ChordName #'font-size = #3 }
\Chords
>>
%%%

On Tue, May 14, 2019 at 9:23 PM Gregory Hollands <
gregory.j.holla...@gmail.com> wrote:

> Aaron,
>
> This function is working nicely, except the major seventh triangle is
> still growing with the font size.
> I *was* able to put this in an included .ily file. I had been including
> the wrong file before  ¯\_(ツ)_/¯
>
> %%%
> \version "2.19"
>
> embiggenChordNames = #(define-scheme-function (size) (number?)
>#{ \with {
>  chordNameFunction = #(lambda (in-pitches bass inversion context)
>(define (helper mu)
>  (if (list? mu)
>(if (eq? (car mu) musicglyph-markup)
>  (markup (#:fontsize (- size) mu))
>  (map helper mu))
>mu))
>(let ((orig (ignatzek-chord-names in-pitches bass inversion
> context)))
>  (markup (#:fontsize size (helper orig)
>} #} )
>
> Chords = \chordmode {
>   \override ChordName #'font-name = #"Source Sans Pro"
>   a:dim bes c:maj7 d:m e:aug fis g:7/b
> }
>
> <<
>   \new ChordNames \with \embiggenChordNames #3 { \Chords }
> >>
> %%%
>
> Thanks for helping me out,
> Greg
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How do I change the size of lyric text?

2019-05-17 Thread Peter Toye
Abraham,

That's fantastic. Thanks. I owe you a beer too.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Friday, May 17, 2019, 6:18:54 PM, Abraham Lee wrote:


Hey, Peter!

On Fri, May 17, 2019 at 9:16 AM Peter Toye  wrote:

I want to add lyrics to a cue staff, but can't see how to change the font size 
to match the rest of the staff. I've tried the followoing, but it doesn't 
change anything, whatever I set LyricText.font-size to. The text says it all...

\version "2.19.52"

\language "english"

\score {
  \new Staff \with {
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
\override LyricText.font-size = #-6
  }
  {
   c''1  
  }
  \addlyrics {
Help!
  }  
}

The first thing to know is that you're setting the LyricText font size in a 
"Staff" context, which is why it's ignored since LyricText grobs don't live in 
the "Staff" context, but in the "Lyrics" context. So, you can fix this by 
moving that override to the score's \layout block like this:

\score {
  \new Staff \with {
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
  }
  {
c''1
  }
  \addlyrics {
Help!
  }
  \layout {
\override Lyrics.LyricText.font-size = #-6
  }
}

Personally, I'd strongly recommend *against* using \addlyrics for proper lyrics 
because it really is only designed for use in the most basic of situations and 
will cause lots of problems if you go beyond that. Just something to consider.

HTH,
Abraham___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How do I change the size of lyric text?

2019-05-17 Thread Abraham Lee
Hey, Peter!

On Fri, May 17, 2019 at 9:16 AM Peter Toye  wrote:

> I want to add lyrics to a cue staff, but can't see how to change the font
> size to match the rest of the staff. I've tried the followoing, but it
> doesn't change anything, whatever I set LyricText.font-size to. The text
> says it all...
>
> \version "2.19.52"
>
> \language "english"
>
> \score {
>   \new Staff \with {
> fontSize = #-3
> \override StaffSymbol.staff-space = #(magstep -3)
> \override LyricText.font-size = #-6
>   }
>   {
>c''1
>   }
>   \addlyrics {
> Help!
>   }
> }
>

The first thing to know is that you're setting the LyricText font size in a
"Staff" context, which is why it's ignored since LyricText grobs don't live
in the "Staff" context, but in the "Lyrics" context. So, you can fix this
by moving that override to the score's \layout block like this:

\score {
  \new Staff \with {
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
  }
  {
c''1
  }
  \addlyrics {
Help!
  }
  \layout {
\override Lyrics.LyricText.font-size = #-6
  }
}

Personally, I'd strongly recommend *against* using \addlyrics for proper
lyrics because it really is only designed for use in the most basic of
situations and will cause lots of problems if you go beyond that. Just
something to consider.

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


Re: Can I force a staff to continue for a new key signature?

2019-05-17 Thread Peter Toye
Pierre, Kieren,

Thanks to both of you for getting me a solution so quickly. I owe you both a 
beer.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Friday, May 17, 2019, 4:44:39 PM, Pierre Perol-Schneider wrote:


Hi,

Le ven. 17 mai 2019 à 17:39, Kieren MacMillan  a 
écrit :
> Note: I’m 100% there are better ways…  ;)

Yep,
\version "2.19.80"

\language "english"

\score {
  \new Staff {
\key c \major
c''1 1 1 1
\bar "||"
\key a \major
  }
  \layout {
\context {
  \Staff
  \override StaffSymbol.break-align-symbols = #'(time-signature 
key-signature staff-bar break-alignment)
}
  }
}

Cheers,
Pierre___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Can I force a staff to continue for a new key signature?

2019-05-17 Thread Pierre Perol-Schneider
> \tweak X-extent #'(0.25 . 4) \key a \major

Nice, better output!
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Can I force a staff to continue for a new key signature?

2019-05-17 Thread Kieren MacMillan
Hi Pierre,

> How about

Yes! I just found that, too [with slightly different values]:

\tweak X-extent #'(0.25 . 4) \key a \major

Thanks!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Can I force a staff to continue for a new key signature?

2019-05-17 Thread Pierre Perol-Schneider
Hi Kieren,
How about:

\score {
  \new Staff {
\key c \major
c''1 1 1 1
\bar "||"
\once\override Staff.KeySignature.X-extent = #'(0 . 4.3)
\key a \major
  }
  \layout {
\context {
  \Staff
  \override StaffSymbol.break-align-symbols = #'(time-signature
key-signature staff-bar break-alignment)
}
  }
}



Le ven. 17 mai 2019 à 18:10, Kieren MacMillan 
a écrit :

> Hi Pierre,
>
> In your solution, what’s the best way to "pad" the end of the staff (so
> that there’s space between the right edge of the key signature and the
> right edge of the staff)?
>
> \tweak-ing the KeySignature.extra-spacing-width doesn’t seem to work.  =(
>
> Thanks!
> Kieren.
> 
>
> Kieren MacMillan, composer
> ‣ website: www.kierenmacmillan.info
> ‣ email: i...@kierenmacmillan.info
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Can I force a staff to continue for a new key signature?

2019-05-17 Thread Kieren MacMillan
Hi Pierre,

In your solution, what’s the best way to "pad" the end of the staff (so that 
there’s space between the right edge of the key signature and the right edge of 
the staff)?

\tweak-ing the KeySignature.extra-spacing-width doesn’t seem to work.  =(

Thanks!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Can I force a staff to continue for a new key signature?

2019-05-17 Thread Kieren MacMillan
Hi Pierre,

>> Note: I’m 100% there are better ways…  ;)
> Yep


Of course. Thanks for that!

Related: Lilypond is so awesome.  =)

Cheers,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Can I force a staff to continue for a new key signature?

2019-05-17 Thread Pierre Perol-Schneider
Hi,

Le ven. 17 mai 2019 à 17:39, Kieren MacMillan 
a écrit :
> Note: I’m 100% there are better ways…  ;)

Yep,
\version "2.19.80"

\language "english"

\score {
  \new Staff {
\key c \major
c''1 1 1 1
\bar "||"
\key a \major
  }
  \layout {
\context {
  \Staff
  \override StaffSymbol.break-align-symbols = #'(time-signature
key-signature staff-bar break-alignment)
}
  }
}

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


Re: Can I force a staff to continue for a new key signature?

2019-05-17 Thread Kieren MacMillan
Hi Peter,

> I want to do something slightly unusual: at the end of a score I want a new 
> key signature.

If you don’t mind a hack…

\version "2.19.80"

\language "english"

\score {
  \new Staff {
\key c \major
c''1 1 1 1
\bar "||"
   \tweak X-extent #empty-interval \tweak extra-offset #'(1 . 0) \key a \major
s128 \bar ""
  }
}

Note: I’m 100% there are better ways…  ;)

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Pitched Trill: two notes on the same parenthesis

2019-05-17 Thread Stefano Troncaro
Really? That's a surprise. I suppose I'll have to figure out a way to
generate them manually then

El jue., 16 may. 2019 a las 9:06, Andrew Bernard ()
escribió:

> Hi Stefano,
>
> I think this has been an enhancement request since 2008. I have no idea if
> it has ever been implemented,
>
> Sorry I cannot be more helpful.
>
> Andrew
>
>
> On Thu, 16 May 2019 at 13:28, Stefano Troncaro 
> wrote:
>
>> Hello everyone, is there a way to have two notes one the same parenthesis
>> in a pitched tril?
>>
>>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Can I force a staff to continue for a new key signature?

2019-05-17 Thread Peter Toye
I want to do something slightly unusual: at the end of a score I want a new key 
signature. (I'm extracting bits and don't want the next bar, but do want the 
key change).

I tried this but the key change is printed without the staff lines.

\version "2.19.52"

\language "english"

\score {
  \new Staff {
\key c \major
c''1 1 1 1
\bar "||"
\break
\key a \major
%  a'1 1 1 1
  }
}

If I uncomment the last text line I get the staff lines back. Is there any way 
of doing this without printing the nest line?
  
Regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


How do I change the size of lyric text?

2019-05-17 Thread Peter Toye
I want to add lyrics to a cue staff, but can't see how to change the font size 
to match the rest of the staff. I've tried the followoing, but it doesn't 
change anything, whatever I set LyricText.font-size to. The text says it all...

\version "2.19.52"

\language "english"

\score {
  \new Staff \with {
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
\override LyricText.font-size = #-6 
  }
  {
   c''1  
  }
  \addlyrics {
Help!
  }  
}

 
Regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: tie four 8 note to 4 chord

2019-05-17 Thread MING TSANG
 Andrew:
Thank you very much.
Once the tieWaitForNote = ##t is set, it continues to work. Is this the 
intention?  Is it necessary to reset to it's default?
Thanks,Ming 
On Thursday, May 16, 2019, 7:41:14 p.m. EDT, Andrew Bernard 
 wrote:  
 
 Hi Ming,
\set tieWaitForNote = ##t
It's in the Notation Reference manual.
Andrew

  ___
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-17 Thread Kieren MacMillan
Hi Alexander (et al.),

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

I *so* wish I could use it… but I keep running into bugs that I never have time 
to MWE-ize, and so I end up bailing on it.

The one you point out here is one of the issues that I’ve been hit by.
Another is somehow related to using non-ASCII characters (e.g., Cyrillic lyrics 
somehow break it).

This "LyricWord" grob/concept is something I desperately want to be worked out 
"for good" so that I can use it without worry. Here’s hoping this thread moves 
us in that direction!

Thanks,
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


programming error: mis-predicted force, 108.120472 ~= 108.191480 continuing, cross fingers

2019-05-17 Thread MING TSANG
Hi, lilyponders:
What is it mean "...miss-predicted..."?How to resolve the following error?
Thank you for the help.Ming

error log after compile:
Starting lilypond-windows.exe 2.19.83 [speechless-praise.ly]...
Processing `C:/Users/yming 
tsang/Documents/S_team/2019-06-02/Speechless-Praise/speechless-praise.ly'

Parsing...

Interpreting music...[8][16][24][32][40][48][56][64][72][80]

Preprocessing graphical objects...

Interpreting music...

MIDI output to `speechless-praise.mid'...

programming error: mis-predicted force, 108.120472 ~= 108.191480

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 107.961819

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 107.957163

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 108.191480

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 107.961819

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 107.957163

continuing, cross fingers

programming error: mis-predicted force, 108.120472 ~= 106.800315

continuing, cross fingers

Finding the ideal number of pages...

Fitting music on 2 or 3 pages...

Drawing systems...

Layout output to `./tmp-lilypond-spwyxH'...

Converting to `speechless-praise.pdf'...

Deleting `./tmp-lilypond-spwyxH'...

Success: compilation successfully completed

Completed successfully in 5.7".

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


Re: Initial (but only initial) staff hiding

2019-05-17 Thread Michael Welsh Duggan
Kieren MacMillan  writes:

> Hi Michael,
>
>> I want the VocalStaff group not to begin until the system with the
>> first non-rest (interesting) event, but after that I want all staff
>> in the staffgroup to always exist, regardless of notes or lack
>> thereof.
>
> showMMRs = {
>   \set Staff.keepAliveInterfaces =
> #'( rhythmic-grob-interface
> multi-measure-rest-interface
> lyric-interface
> stanza-number-interface
> percent-repeat-interface) }
>
> Once there’s something interesting, put \showMMRs to force the staff
> to show no matter what.

Nice!  That does exactly what I want, and, what's more, I understand how
it works.  Thank you!

-- 
Michael Welsh Duggan
(m...@md5i.com)

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


staff-space as a variable

2019-05-17 Thread Edward Neeman
Hello,

How can I modify my tweaks to take into account a smaller staff-space? In the 
example below, I’d like to set the padding to 1.1 * the staff-space, instead of 
explicitly writing 0.7.

Previously I was using \magnifyStaff but that caused issues with the final bar 
line.

Thanks,
Edward

\version "2.19.83"

<<
  \relative {
  \override Staff.StaffSymbol.staff-space = #(magstep -4)
  \override Staff.StaffSymbol.thickness = #(magstep -4)
  \set Staff.fontSize = #-4
  \override TupletBracket.padding = #0.7
  \tuplet 3/2 { c' c c }
}
 \relative {
  \tuplet 3/2 { c' c c }
}
>>

---
Dr. Edward Neeman
www.neemanpianoduo.com




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