Convert-ly (my apologies)

2016-06-17 Thread Ralph Palmer
Oops. Sorry for the noise. Found it, of course, in the Notation Reference.

My apologies,

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


convert-ly

2016-06-17 Thread Ralph Palmer
Greetings -

I'm running LilyPond 2.19.43 under Win7.

Does anyone have a command-line command that will run convert-ly on all .ly
and .ily files, including subfolders? I used to have a command that worked,
but I've lost it.

Thanks for your help,

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: In divisi lyrics, \skip in the top line skips two notes and causes bottom line to skip one note

2016-06-17 Thread Edward Usher
Yes, this works very nicely in my original score.  Thank you, Simon and
David, for the explanation and correction.

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


Re: In divisi lyrics, \skip in the top line skips two notes and causes bottom line to skip one note

2016-06-17 Thread David Kastrup
Simon Albrecht  writes:

> On 17.06.2016 21:47, David Kastrup wrote:
>>
>> Of course the solution is _not_ to put simultaneous music under the
>>control of \lyricsto, or the relation of "simultaneousness" will have
>>an effect _before_ \lyricsto is applied for making the combined lyrics
>>match the melody.
>
> Unfortunately, the technique of nesting \new Lyrics is from an example
> in our very own manuals, as Edward pointed out in the other subthread.

Including a \lyricto around both?  The problem is that then a \skip 1 is
only "equal" to one lyric when the lyrics all have length 1 as well
(either giving the first lyric an explicit 1, or having the preceding
entered note duration happen to be 1).

That's not all that easy to get right and explain.  Maybe we need to
figure out a different construct then.

-- 
David Kastrup

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


Re: In divisi lyrics, \skip in the top line skips two notes and causes bottom line to skip one note

2016-06-17 Thread Simon Albrecht

On 17.06.2016 21:51, Simon Albrecht wrote:
Unfortunately, the technique of nesting \new Lyrics is from an example 
in our very own manuals, as Edward pointed out in the other subthread.
The only reliable solution I can think of right now is having all 
lyrics contexts start at the beginning, and skipping some time manually. 


I’m working on the fourth example from 
 
now. It works if done like this:


%%
\version "2.19.42"
\score {
  <<
\new Staff {
  \new Voice = "melody" {
\relative {
  a'4 a a a
  \repeat volta 2 { b4 b b b }
}
  }
}
\new Lyrics \lyricsto "melody" {
  Not re -- peat -- ed.
  The first time words.
}
\new Lyrics \lyricsto "melody" {
  \repeat unfold 4 \skip 1
  Se -- cond time words.
}
  >>
}
%

It would be very nice to just do this:


\version "2.19.42"
\score {
  <<
\new Staff {
  \new Voice = "melody" {
\relative {
  a'4 a a a
  \repeat volta 2 { b4 b b b }
}
  }
}
\new Lyrics \lyricsto "melody" {
  Not re -- peat -- ed.
  The first time words.
}
{
  \skip 1
  \new Lyrics \lyricsto "melody" {
Se -- cond time words.
  }
}
  >>
}
%%%

but by a known issue the \lyricsto doesn’t catch the note at the 
timestep when it’s issued.


Best, Simon

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


Re: In divisi lyrics, \skip in the top line skips two notes and causes bottom line to skip one note

2016-06-17 Thread Simon Albrecht

On 17.06.2016 21:47, David Kastrup wrote:

Edward Usher  writes:


A question on the following MWE:

\version "2.18.2"
\score {
   <<
 \new Voice = "melody" {
   \time 3/4
   c'4 c'4 c'4 | c'4 c'4 c'4 | c'2. |
 }
 \new Lyrics \lyricsto "melody" {
   <<
 { a \skip 1 c }
 \new Lyrics {
   \set associatedVoice = "melody"
   a b c d
 }
   >>
 }
   >>
}

I expected the notes to be labeled "a [gap] c [gap] [gap] [gap] [gap]" on
the first line and "a b c d [gap] [gap] [gap]" on the second.  But the
actual output is "a [gap] [gap] c [gap] [gap] [gap]" and "a b c [gap] d
[gap] [gap]".

Is there an error in the MWE, or is this a bug?  If a bug, is there a
workaround?

I don't even know what you are trying to achieve by nesting Lyrics (with
associated Voice, to boot) inside of \lyricsto.

\lyricsto synchronizes its context to the associated voice.  Now here
its context contains of _parallel_ music, so the synchronization is
... interesting.

All of your lyrics have a default duration of the last entered duration,
which is 2. (the last preceding duration).

So in the first step, we are synchronizing two "a2." notes.

Now the inner Lyrics are synchronized separately, so with the next note,
both "b2." and "\skip 1" are emitted.  So the next event in that common
stream is after the "b2." and is the "c2." in the lower voice.  Which
means that the next event is the "c2." in the upper voice.  The upper
voice is now finished, so only the lower voice now needs to be tagged
off.  That's a single "d2." and then everything is over.

This was somewhat straightforward to pick apart.  However, this nested
construct has a lot more potential for weirdness, and adding more
material here is likely to lead to stranger results.

Changing the \skip 1 to \skip 2. presumably leads to the result you
think you should see, with both c on top of each other.  Changing it to
2 puts the top c before the bottom one.

Of course the solution is _not_ to put simultaneous music under the
control of \lyricsto, or the relation of "simultaneousness" will have an
effect _before_ \lyricsto is applied for making the combined lyrics
match the melody.


Unfortunately, the technique of nesting \new Lyrics is from an example 
in our very own manuals, as Edward pointed out in the other subthread.
The only reliable solution I can think of right now is having all lyrics 
contexts start at the beginning, and skipping some time manually.


Best, Simon

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


Re: In divisi lyrics, \skip in the top line skips two notes and causes bottom line to skip one note

2016-06-17 Thread David Kastrup
Edward Usher  writes:

> A question on the following MWE:
>
> \version "2.18.2"
> \score {
>   <<
> \new Voice = "melody" {
>   \time 3/4
>   c'4 c'4 c'4 | c'4 c'4 c'4 | c'2. |
> }
> \new Lyrics \lyricsto "melody" {
>   <<
> { a \skip 1 c }
> \new Lyrics {
>   \set associatedVoice = "melody"
>   a b c d
> }
>   >>
> }
>   >>
> }
>
> I expected the notes to be labeled "a [gap] c [gap] [gap] [gap] [gap]" on
> the first line and "a b c d [gap] [gap] [gap]" on the second.  But the
> actual output is "a [gap] [gap] c [gap] [gap] [gap]" and "a b c [gap] d
> [gap] [gap]".
>
> Is there an error in the MWE, or is this a bug?  If a bug, is there a
> workaround?

I don't even know what you are trying to achieve by nesting Lyrics (with
associated Voice, to boot) inside of \lyricsto.

\lyricsto synchronizes its context to the associated voice.  Now here
its context contains of _parallel_ music, so the synchronization is
... interesting.

All of your lyrics have a default duration of the last entered duration,
which is 2. (the last preceding duration).

So in the first step, we are synchronizing two "a2." notes.

Now the inner Lyrics are synchronized separately, so with the next note,
both "b2." and "\skip 1" are emitted.  So the next event in that common
stream is after the "b2." and is the "c2." in the lower voice.  Which
means that the next event is the "c2." in the upper voice.  The upper
voice is now finished, so only the lower voice now needs to be tagged
off.  That's a single "d2." and then everything is over.

This was somewhat straightforward to pick apart.  However, this nested
construct has a lot more potential for weirdness, and adding more
material here is likely to lead to stranger results.

Changing the \skip 1 to \skip 2. presumably leads to the result you
think you should see, with both c on top of each other.  Changing it to
2 puts the top c before the bottom one.

Of course the solution is _not_ to put simultaneous music under the
control of \lyricsto, or the relation of "simultaneousness" will have an
effect _before_ \lyricsto is applied for making the combined lyrics
match the melody.

-- 
David Kastrup

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


Re: In divisi lyrics, \skip in the top line skips two notes and causes bottom line to skip one note

2016-06-17 Thread Edward Usher
Ah, looks I misappropriated code that was intended for multiple verses.  So
my revised question would be about

%%%
\version "2.18.2"
\score {
  <<
\new Staff {
  \new Voice = "melody" {
\time 3/4
\repeat volta 2 {
  c'4 c'4 c'4 | c'4 c'4 c'4 | c'2. |
}
  }
}
\new Lyrics \lyricsto "melody" {
  <<
{ a \skip 1 c }
\new Lyrics {
  \set associatedVoice = "melody"
  a b c d
}
  >>
}
  >>
}
%%%

which is based on the fourth and fifth examples at
http://lilypond.org/doc/v2.19/Documentation/notation/techniques-specific-to-lyrics.en.html#lyrics-and-repeats
.

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


Re: In divisi lyrics, \skip in the top line skips two notes and causes bottom line to skip one note

2016-06-17 Thread Simon Albrecht

Hi Edward,

On 17.06.2016 20:48, Edward Usher wrote:

A question on the following MWE:

\version "2.18.2"
\score {
  <<
\new Voice = "melody" {
  \time 3/4
  c'4 c'4 c'4 | c'4 c'4 c'4 | c'2. |
}
\new Lyrics \lyricsto "melody" {
  <<
{ a \skip 1 c }
\new Lyrics {
  \set associatedVoice = "melody"
  a b c d
}
  >>
}
  >>
}

I expected the notes to be labeled "a [gap] c [gap] [gap] [gap] [gap]" 
on the first line and "a b c d [gap] [gap] [gap]" on the second.  But 
the actual output is "a [gap] [gap] c [gap] [gap] [gap]" and "a b c 
[gap] d [gap] [gap]".


Is there an error in the MWE, or is this a bug?


Well, I can’t quite describe the internal proceedings that lead to this 
indeed unexpected result. But your input code is very odd for a start, 
and the following standard way works as expected:



\version "2.18.2"
\score {
  <<
\new Voice = "melody" {
  \time 3/4
  c'4 c'4 c'4 | c'4 c'4 c'4 | c'2. |
}
\new Lyrics \lyricsto "melody" {
  a \skip 1 c
}
\new Lyrics \lyricsto "melody" {
  a b c d
}
  >>
}
%%%

You’d have to give us more context on why you chose this particular 
nesting of expressions.


Best, Simon

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


In divisi lyrics, \skip in the top line skips two notes and causes bottom line to skip one note

2016-06-17 Thread Edward Usher
A question on the following MWE:

\version "2.18.2"
\score {
  <<
\new Voice = "melody" {
  \time 3/4
  c'4 c'4 c'4 | c'4 c'4 c'4 | c'2. |
}
\new Lyrics \lyricsto "melody" {
  <<
{ a \skip 1 c }
\new Lyrics {
  \set associatedVoice = "melody"
  a b c d
}
  >>
}
  >>
}

I expected the notes to be labeled "a [gap] c [gap] [gap] [gap] [gap]" on
the first line and "a b c d [gap] [gap] [gap]" on the second.  But the
actual output is "a [gap] [gap] c [gap] [gap] [gap]" and "a b c [gap] d
[gap] [gap]".

Is there an error in the MWE, or is this a bug?  If a bug, is there a
workaround?  (I can't use "  " in place of \skip 1 in the actual score
because I need to terminate a melisma.)

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


Re: RE:Programming error - cross fingers

2016-06-17 Thread Stephen MacNeil
Hi Graham

I do use %{ comments blocks, but typically only when testing new code. It's
much .. much faster to highlight a block and delete it. The alternative is
sectioning out a block... and then another etc... etc... etc... Granted the
time difference is minimal, but can add up in a large score especially when
narrowing an error down, and after all time is precious (to me anyway).
Also, my way tends to appeal greatly to the circumstance which is usually
great frustration. Somehow ... it just makes me happy :)

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


Context collision

2016-06-17 Thread Frédéric Bron
Dear all,

The attached score show a context collision.

In an orchestra score, I like to have the bar numbers at the top left
and bottom left of each system. Also, I like to gather all textual
informations at the top. For this, I defined 2 new contexts :TextLine
and BarNumberLine.
Problem: text scripts collide with notes.
In the attached minimum example, I have left only 1 instrument. You
can see that as soon as there is a bar number at the beginning of the
line, the text scripts overlap with the notes.

If I remove the BarNumberLine, the text scripts are OK.

What do I do wrong?

Kind regards,

Frédéric
\version "2.18.0"

\layout {
	\context { \name "TextLine"
		\type "Engraver_group"
		\consists "Staff_collecting_engraver"
		\consists "Metronome_mark_engraver"
			\override MetronomeMark.padding = #0
			\override MetronomeMark.outside-staff-priority = #200
			\override MetronomeMark.font-size = #2
		\consists "Text_spanner_engraver"
			\override TextSpanner.font-size = #2
		\consists "Mark_engraver"
			\override RehearsalMark.outside-staff-priority = #75
			\override RehearsalMark.font-size = #4
		\consists "Volta_engraver"
			\override VoltaBracketSpanner.outside-staff-priority = #100
			\override VoltaBracket.font-size = #-2
		\consists "Text_engraver"
	}
	\context { \name "BarNumberLine"
		\type "Engraver_group"
		\consists "Axis_group_engraver"
			\override VerticalAxisGroup.default-staff-staff-spacing = #'((basic-distance . 1) (minimum-distance . 1) (padding . 1) (stretchability . 0))
			\override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 1) (minimum-distance . 1) (padding . 1) (stretchability . 0))
		\consists "Bar_number_engraver"
			\override BarNumber.font-size = #0
			\override BarNumber.font-series = #'bold
			\override BarNumber.extra-offset = #'(-1 . 0)
	}
	\context { \Score
		\remove "Mark_engraver"
		\remove "Metronome_mark_engraver"
		\remove "Bar_number_engraver"
		\remove "Staff_collecting_engraver"
		\remove "Volta_engraver"
		\accepts TextLine
		\accepts BarNumberLine
	}
}

Indications = {
  \tempo "Un poco Adagio"
  \time 4/4
  s1*20 \bar "|."
}

T = \markup { \bold "TUTTI" }
S = \markup { \bold "SOLO" }
TS = { \repeat unfold 10 { s1^\S s1^\T } }

\score {
  \new Score <<
\new BarNumberLine \Indications
\new TextLine << \Indications \TS >>
\new Staff <<
  \Indications
  { \repeat unfold 20 \repeat unfold 4 e'''4 }
>>
\new BarNumberLine \Indications
  >>
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Custom / Fine tuning vertical space between piano staff lines

2016-06-17 Thread Simon Albrecht

On 17.06.2016 02:28, Harald Christiansen wrote:

Hi,

I need to add some supplemental white space between piano staff lines 
(to avoid a crowded look and near clashes).


I looked long and hard at TFM _and_ whatever snippets I could find, 
but unfortunately I am still none the wiser :|


The only thing that I found (and made sense to me) was the global page 
settings, but I don't want to change the global parameters, only to 
fine tune and add some vertical space between selected piano staff rows.


It’s intentional that you can normally only change global behaviour, to 
ensure a consistent spacing. The only proper possibility (apart from 
adding invisible objects, which would be really nasty and hard to 
maintain) seems using explicit staff and system positioning 
.


HTH, Simon

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


Re: How to add chordnames to the solution

2016-06-17 Thread Bernhard Kleine
Sorry


Am 17.06.2016 um 12:02 schrieb Bernhard Kleine:
> Hi,
>
> I have included an condensed example. The template has chordnames
> included and I would like to include them. With the repitition the
> placing of chordnames is not at all evident. Please point me to a solution.
>
> Kind regards
>
> Bernhard
\version "2.19.5"
\language "deutsch"

global = {
  \key c \major
  \time 4/4
}

RefrainSopran = \relative c'' {
  \global
  \override Stem.direction = #UP
  \repeat volta 2 {
  c4. c8 c4 c  | h a g e |  }
  \alternative { { d8 d d d d4 e } {  d8 d d d d4 c } }
}
RefrainAlt = \relative c' {
  \global
  \override Stem.direction = #DOWN
  \slurDown
  \repeat volta 2 {e4. e8 e4 e | e e d d |  }
  \alternative { {a8 a a a a4 c  } { a8 a a a a4 a   \bar "|."}} 
}
RefrainTenor = \relative c' {
  \global
  \clef bass
  \override Stem.direction = #UP
  \repeat volta 2 { g4. g8 g4 g |g a h g |  }
  \alternative { { f8 f f f f4 a } { f8 f f f f4 f \bar "|."}}
}
RefrainBass = \relative c {
  \global
  \clef bass
  \override Stem.direction = #DOWN
  \repeat volta 2 { e4. e8 e4 e |g g g g |   }
  \alternative { { f8 f f f f4 f } { f8 f f f c4 c | \bar "|."}}
}

mehrstimmigText = \lyricmode {
Gut, dass wir ein -- an -- der ha -- ben,
 und auf ei -- nem We -- ge
\repeat unfold 2 { \skip 1 }
}
mehrstimmigZwei = \lyricmode {
Gut,  dass wir nicht uns nur ha -- ben,
\repeat unfold 6 { \skip 1 }
hier in uns -- rer Mit -- te   
}

\layout {
  indent = 0
}
\score {
  \new ChoirStaff <<
 \new Staff <<
  \new Voice = "RefrainS" {
\RefrainSopran
  }
  \new Voice = "RefrainA" {
\RefrainAlt
  }
 
  \new Lyrics \lyricsto "RefrainA" {
\mehrstimmigText
  }
  \new Lyrics \lyricsto "RefrainA" {
\mehrstimmigZwei
  }
>>
\new Staff <<
  \new Voice = "RefrainT" {
\RefrainTenor
  }
  \new Voice = "RefrainB" {
\RefrainBass
  }
>>
  >>
}

   


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


Re: How to add chordnames to the solution

2016-06-17 Thread David Kastrup
Bernhard Kleine  writes:

> Hi,
>
> I have included an condensed example. The template has chordnames
> included and I would like to include them. With the repitition the
> placing of chordnames is not at all evident. Please point me to a solution.

I think your example is a bit too condensed.  There is nothing left of
it...

-- 
David Kastrup

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


Re: How to add chordnames to the solution

2016-06-17 Thread Bernhard Kleine
Hi,

I have included an condensed example. The template has chordnames
included and I would like to include them. With the repitition the
placing of chordnames is not at all evident. Please point me to a solution.

Kind regards

Bernhard

--
spitzhalde9
79853 lenzkirch
bernhard.kle...@gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09


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


Re: RE:Programming error - cross fingers

2016-06-17 Thread Graham King
On Thu, 2016-06-16 at 13:24 -0400, Stephen MacNeil wrote:

> The way I approach an error like this may or may not help. But I can
> tell you what I do. I start deleting large sections of the source.
> Bottom up.

Stephen doubtless already knows this but, for the benefit of all:

block
comments
%{ delineated 
by
percent-openbrace
and
percent-closebrace
%}
are your friend
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user