Re: Alternative bar numbering [0.18571]

2016-08-26 Thread Ralph Palmer
On Thu, Aug 25, 2016 at 1:33 PM, Pastor Neubauer  wrote:

> I have a problem that seems to be part of the way lilypond works. I’m
> using the code below. What I am wondering is how to change the lines
> following the \break command. These lines seem to ignore all page formatt
> ing. The first line is indented and the remaining lines are not.
>

I apologize for taking so long to respond.

 I don't remember when, where, or how I found this, but setting "\indent"
to zero works, at least as late as Ly 1.18.2. I set it in a \layout block,
thus :

\score {
*music*
  }
  \layout {
indent = 0
  }

Hope this helps,

Ralph

-- 
Ralph Palmer
Brattleboro, VT
USA
palmer.r.vio...@gmail.com
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Alternative bar numbering [0.18571]

2016-08-25 Thread Abraham Lee
On Thu, Aug 25, 2016 at 2:53 PM, Pastor Neubauer  wrote:

> I’ve gotten two pieces of information that have clarified the problem. By
> using \relative so often I am essentially doing first lines each time
> with their indent being set at 10, but when Lilypond does the automatic
> line breaking it is using the “short-indent” value which is “0”. The
> solution is to set both indent and short-indent to the same value.
>
> Thanks for your replies.
>
You're welcome! It's actually more than that. The use of \relative will not
inherently start a new score. It's that since LilyPond saw it as the
outermost expression (enclosed by braces {...}), then it knew to wrap it in
a \score block internally. Let me itemize some important things to know
from this adventure we've gone on:

1. All music must be enclosed in either braces { ... } (for things that
should appear sequentially in time) or double angle brackets << ... >> (for
things that should appear simultaneously in time) for LilyPond to generate
any score.
2. Each outermost set of braces or double angle brackets will generate its
own score.
3. Each score has its own "indent" and "short-indent" properties, the first
system of each score preceded by the "indent" value and each system
thereafter in the same score preceded by the "short-indent" value. These
values can be changed within a \paper block or within a specific score's
\layout block.

Hope that helps clarify things a little bit more,
Abraham
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Alternative bar numbering [0.18571]

2016-08-25 Thread Malte Meyn
Oh, and because you mentioned time savers: You don’t have to write the 
duration of every note. If you don’t write the duration the last 
duration is repeated.


So
  c4 d4 e4 r4 f8 e8 f4
is the same as
  c4 d e r f8 e f4

Am 25.08.2016 um 23:00 schrieb Malte Meyn:

Pleae always reply to the list (at least as CC) so others can see when
your problem is solved or new questions arise ;)

Am 25.08.2016 um 22:39 schrieb Pastor Neubauer:

Is there any way to not have the first line indent?


Yes: replace line 10 (“indent = #10”) by “indent = #0”. You can also
omit the #, i. e. “indent = 0” is sufficient.


And to remove the
numbers above the staff (measure numbers)?


Yes: Put “\omit Score.BarNumber” at the beginning of the music (there
are other ways but this is probably the simplest for your use case). Of
course you won’t need “\set Score.alternativeNumberingStyle = #'numbers”
anymore (this changes the numbering but there are no numbers ;)).


I would also like to put a little
more vertical space between the lines of music.


Try “system-system-spacing.basic-distance = 15” in the \paper block. You
can experiment with different values.

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


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


Re: Alternative bar numbering [0.18571]

2016-08-25 Thread Malte Meyn
Pleae always reply to the list (at least as CC) so others can see when 
your problem is solved or new questions arise ;)


Am 25.08.2016 um 22:39 schrieb Pastor Neubauer:

Is there any way to not have the first line indent?


Yes: replace line 10 (“indent = #10”) by “indent = #0”. You can also 
omit the #, i. e. “indent = 0” is sufficient.



And to remove the
numbers above the staff (measure numbers)?


Yes: Put “\omit Score.BarNumber” at the beginning of the music (there 
are other ways but this is probably the simplest for your use case). Of 
course you won’t need “\set Score.alternativeNumberingStyle = #'numbers” 
anymore (this changes the numbering but there are no numbers ;)).



I would also like to put a little
more vertical space between the lines of music.


Try “system-system-spacing.basic-distance = 15” in the \paper block. You 
can experiment with different values.


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


Re: Alternative bar numbering [0.18571]

2016-08-25 Thread David Kastrup
"Pastor Neubauer"  writes:

> I have a problem that seems to be part of the way lilypond works. I'm using
> the code below. What I am wondering is how to change the lines following the
> \break command. These lines seem to ignore all page formatting. The first
> line is indented and the remaining lines are not.
>
> \relative c'{
>   \set Score.alternativeNumberingStyle = #'numbers
>   \repeat volta 3 { c4 d e f | }
> \alternative {
>   { c4 d e f | c2 d \break }
>   { f4 g a b | f4 g a b | f2 a | \break }
>   { c4 d e f | c2 d }
> }
>   c1 \break
>   \set Score.alternativeNumberingStyle = #'numbers-with-letters
>   \repeat volta 3 { c,4 d e f | }
> \alternative {
>   { c4 d e f | c2 d \break }
>   { f4 g a b | f4 g a b | f2 a | \break }
>   { c4 d e f | c2 d }
> }
>   c1
> }

The first line is indented using the "indent" variable in the \paper or
\layout block.  All of the following lines are indented using the
"short-indent" variable (normally zero).

This is described in the manual
.

-- 
David Kastrup

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


Re: Alternative bar numbering [0.18571]

2016-08-25 Thread Malte Meyn



Am 25.08.2016 um 21:12 schrieb Pastor Neubauer:

I am not using  score blocks. I never really trained in on Lilypond, just sort 
of started finding what worked so I am going line by line using addlyrics. I 
know I have had some difficulties that could be worked out if I used more 
“formal” methods.


There are no explicit \score blocks but every \relative creates a score 
implicitely in this case.


You should have only one score per piece, not one score per line; 
LilyPond does good line breaking for you (and if you’re not satisfied 
you can help by using \break, \noBreak or setting the system-count, i. 
e. the total number of systems LilyPond should print, in the \paper block).


Attached you find the whole piece in one score. I put everything in one 
\relative and two \addlyrics blocks. Also, for better code readability, 
I put a line break after every measure and deleted all the unnecessary 
things like extra \bar commands or unused settings in the \layout block.


Also I replaced \laissezVibrer and \repeatTie by ~, added a r2 to 
measure 12, and changed r1 (whole measure rest) to R1 (this makes it 
centered).
\version "2.18.2"

#(set-global-staff-size 17.82)

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

\layout {
  indent = #10
  left-margin = #20
  line-width = #185
}

\header {
  title = "Cornerstone"
  copyright = \markup \center-column {
"Words and music by Lenny LeBlanc |Paul Baloche"
\line { \char ##x00A9 "1999 Integrity’s Hosanna! Music | LenSongs Publishing." }
"Used by permission. CCLI License # 11090669"
  }
}


\relative c' {
  \key c \major
  \compressFullBarRests
  \override MultiMeasureRest.expand-limit = #2
  \set beamExceptions = #'() % this saves a lot of manual beams in this example
  \set Score.alternativeNumberingStyle = #'numbers
  R1*6
  \repeat volta 2 {
r8 c8 e8 g8 g4 r8 c,8
d8 e8 e4 r2
r8 f8 f8 a8 a4 r8 e8
e8 d8 d4~ d8 r8 r4
r8 c8 e8 g8 g4 r8 c,8
d8 e8 e4 r2
r8 f8 f8 e8 d8. e16 d4~
  }
  \alternative {
{
  d16 c8 c16~ c2.
  R1
}
{ d16\repeatTie c8 c16~ c2 r4 }
  }
  r2 e4 d4
  c4 r4 f4 e4
  d4 r4 e4 d4
  c4. c16 c16 f4~f16 e8 d16~
  d4 r4 e4 g4
  c,4 r4 f4 e4
  d4 r4 e4 d4
  c2. r4
  R1
  r8 c8 e8 g8 g4 r8 c,8
  d8 e8 e4 r2
  r8 f8 f8 a8 a4 r8 e8
  e8 d8 d4~ d8 r8 r4
  r8 c8 e8 g8 g4 r8 c,8
  d8 e8 e4 r2
  r8 f8 f8 e8 d8. e16 d4~
  d16 c8 c16~ c2.
  \bar "||"
  r8 f'8 f8 e8 d8. e16 d4~
  d16 c8 c16~ c2.
  r2 e4 d4
  \repeat volta 3 {
c4 r4 f4 e4
d4 r4 e4 d4
c4. c16 c16 f4~ f16 e8 d16~
d4 r4 e4 g4
c,4 r4 f4 e4
  }
  \alternative {
{
  d4 r4 e4 d4
  c2. r4
  r2 e4 d8( c8)
  e8( d32 c32 c16~ c4) r2
  r2 e4 d4
  f4.( e8~ e4. d8~
  d8) r8 r4 e4 d4
}
{
  d4 r4 e4 d4
  c2 r2
  r2 e4 d4
}
{
  d4 r4 e4 d4
  c2. r4
  R1*3^\markup { \tiny \italic { to verse 3 } }
}
  }
}
\addlyrics {
  \set stanza = "1." My hope is built on noth -- ing less, than Je -- sus’ blood and
  right -- eous -- ness I dare not trust the sweet -- est frame,
  bu whol -- ly trust in Je -- sus’ Name. - sus’ Name.
  Christ a -- lone. Corn -- er -- stone. Weak made strong in the Sav -- ior’s love.
  Through the storm, He is Lord. Lord of all.
  \set stanza = "2." When dark -- ness seems to hide His face, I rest on His un -- chang -- ing grace.
  In ev -- ’ry high and storm -- y gale, my an -- chor holds with -- in the veil.
  My an -- chor holds with -- in the veil. Christ a -- lone. Corn -- er-
  stone. Weak made strong in the Sav -- ior’s love. Through the storm, He is Lord. Lord of all. He is Lord. __ Lord of all. __ Christ a- Lord. Lord of all. Christ a- Lord. Lord of all.
}
\addlyrics {
  \repeat unfold 58 _ % skip 58 syllables
  \set stanza = #"3." When He shall come with trump -- et sound, oh may I then in Him be found.
  Dressed in His righ -- eous -- ness a -- lone. Fault -- less to stand be -- fore the throne.
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Alternative bar numbering [0.18571]

2016-08-25 Thread Pastor Neubauer
I am not using  score blocks. I never really trained in on Lilypond, just sort 
of started finding what worked so I am going line by line using addlyrics. I 
know I have had some difficulties that could be worked out if I used more 
“formal” methods.

I’ve attached the .ly file for brevities sake.

 

 

From: Abraham Lee [mailto:tisimst.lilyp...@gmail.com] 
Sent: Thursday, August 25, 2016 1:41 PM
To: Pastor Neubauer
Cc: Kevin Barry; LilyPond Users
Subject: Re: Alternative bar numbering [0.18571]

 

On Thu, Aug 25, 2016 at 12:33 PM, Pastor Neubauer <rev...@unitelc.com> wrote:

Thanks for getting back to me. I've attached the pdf of what I've done so far 
so you can see the formatting issue.

 

That is indeed strange. Mind sharing the source file? I'm pretty sure the 
solution will be obvious then. Are you using multiple \score blocks?

 

Best,

Abraham

 

P.S. Please CC the list so this thread gets recorded

#(set-global-staff-size 17.82)
\paper {
 #(set-paper-size "letter")
}

\layout {
  indent = #10
  left-margin = #20
  right-margin = #40
  line-width = #185
  ragged-right = ##f
  check-consistency = ##t
}

\header {
title = "Cornerstone" 
subtitle = " "
   copyright = \markup \center-column { 
	\line {" "}
\line { "Words and music by Lenny LeBlanc |Paul Baloche"   }
\line { \char ##x00A9" 1999 Integrity's Hosanna! Music | LenSongs Publishing."}
\line { "Used by permission. CCLI License # 11090669" }

  }
}


\relative c' {
\key c \major
\override Staff.TimeSignature #'stencil = ##f
\compressFullBarRests
\override MultiMeasureRest.expand-limit = #2
 R1*6

\bar ".|:" r8 c8 e8[ g8] g4 r8 c,8 d8 e8 e4 r2 r8  f8 f8[ a8] a4 r8 e8
}

\addlyrics {
\set stanza = #"1. " My hope is built on noth -- ing less, than Je -- sus' blood and
}



\relative c' {
\key c \major
\override Staff.TimeSignature #'stencil = ##f

e8[ d8] d4~ d8 r8 r4 r8 c8 e8[ g8] g4 r8 c,8 d8 e8 e4
}

\addlyrics {
right -- eous -- ness I dare not trust the sweet -- est frame,
}


\relative c' {
\key c \major
\override Staff.TimeSignature #'stencil = ##f
\repeat volta 2 {
r8 f8 f8[ e8] d8. e16 d4~ }
\alternative { { d16 c8 c16~ c2. r1 \bar ":|." } { d16\repeatTie c8 c16~c2 r4 } }	
}

\addlyrics {
bu whol -- ly trust in Je -- sus' Name. - sus' Name.
}


%Chorus 1
\relative c' {
\key c \major
\override Staff.TimeSignature #'stencil = ##f

r2 e4 d4 c4 r4 f4 e4 d4 r4 e4 d4 c4. c16 c16 f4~f16 e8 d16\laissezVibrer
}

\addlyrics {
Christ a -- lone. Corn -- er -- stone. Weak made strong in the Sav -- ior's love.
}


\relative c' {
\key c \major
\override Staff.TimeSignature #'stencil = ##f

d4\repeatTie r4 e4 g4 c,4 r4 f4 e4 d4 r4 e4 d4 c2. r4 r1
}

\addlyrics {
_ Through the storm, He is Lord. Lord of all.
}


%Verse 2 and 3
\relative c' {
\key c \major
\override Staff.TimeSignature #'stencil = ##f

r8 c8 e8[ g8] g4 r8 c,8 d8 e8 e4 r2 r8 f8 f8[ a8] a4 r8 e8 e8 d8 d4~ d8 r8 r4
}

\addlyrics {
\set stanza = #"2. " When dark -- ness seems to hide His face, I rest on His un -- chang -- ing grace.
}

\addlyrics {
\set stanza = #"3. " When He shall come with trump -- et sound, oh may I then in Him be found.
}


\relative c' {
\key c \major
\override Staff.TimeSignature #'stencil = ##f

r8 c8 e8[ g8] g4 r8 c,8 d8 e8 e4 r2 r8 f8 f8[ e8] d8. e16 d8~ d16 c8 c16~ c2. \bar "||"
}

\addlyrics {
In ev -- 'ry high and storm -- y gale, my an -- chor holds with -- in the veil.
}

\addlyrics {
Dressed in His righ -- eous -- ness a -- lone. Fault -- less to stand be -- fore the throne.
}



%Chorus 2
\relative c'' {
\key c \major
\override Staff.TimeSignature #'stencil = ##f

r8 f8 f8[ e8] d8. e16 d4~ d16 c8 c16~ c2. r2 e4 d4 \bar ".|:" c4 r4 f4 e4
}

\addlyrics {
My an -- chor holds with -- in the veil. Christ a -- lone. Corn -- er-
}



\relative c'' {
\key c \major
\override Staff.TimeSignature #'stencil = ##f
 \set Score.alternativeNumberingStyle = #'numbers
  \repeat volta 3 { d4 r4 e4 d4 c4. c16 c16 f4~f16 e8 d16~ d4 r4 e4 g4 c,4 r4 f4 e4 }
\alternative {
  { d4 r4 e4 d4 c2. r4 r2 e4 d8( c8) e8( d32 c32 c16~ c4) r2 r2 e4 d4 \break f4.( e8~ e4. d8~ d8) r8 r4 e4 d4 \bar ":|." }
  { d4 r4 e4 d4 c2 r2 r2 e4 d4 \bar ":|." \break }
  { d4 r4 e4 d4 c2. r4 r1 r1 r1^\markup { \tiny \italic { to verse 3 } } }
}
}

\addlyrics {
stone. Weak made strong in the Sav -- ior's love. Through the storm, He is Lord. Lord of all. He is Lord. __ Lord of all. __ Christ a- Lord. Lord of all. Christ a- Lord. Lord of all.
}







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


Re: Alternative bar numbering [0.18571]

2016-08-25 Thread Abraham Lee
On Thu, Aug 25, 2016 at 12:33 PM, Pastor Neubauer 
wrote:

> Thanks for getting back to me. I've attached the pdf of what I've done so
> far so you can see the formatting issue.
>

That is indeed strange. Mind sharing the source file? I'm pretty sure the
solution will be obvious then. Are you using multiple \score blocks?

Best,
Abraham

P.S. Please CC the list so this thread gets recorded
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Alternative bar numbering [0.18571]

2016-08-25 Thread Kevin Barry
Hi Pastor,

I see nothing unusual in the output; can you be more specific about
what you want to see? Indentation only affects the first system of a
score. What page formatting have you set that is being ignored?

Kevin

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


Re: Alternative bar numbering [0.18571]

2016-08-25 Thread Abraham Lee
On Thu, Aug 25, 2016 at 11:33 AM, Pastor Neubauer 
wrote:

> I have a problem that seems to be part of the way lilypond works. I’m
> using the code below. What I am wondering is how to change the lines
> following the \break command.
>
Which \break you are talking about (since there are 5 of them)?

> These lines seem to ignore all page formatting.
>
Which formatting are you trying to change?

> The first line is indented and the remaining lines are not.
>
This is standard practice to indent just the first line of a score and not
the others and LilyPond follows this since it is all in a single \score
(albeit implicitly here). Which other line did you expect to be indented?

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