Re: How to merge two scores into one?

2017-01-05 Thread Malte Meyn


Am 05.01.2017 um 22:45 schrieb Jeff Epstein:
> I'm not understanding how to merge two scores into one. The song just 
> continues, but it's a different section with a different voice configuration. 
> The first section has a single voice, the second has two. The only way I can 
> figure it out so far is to print out two scores. Is there a way to merge 
> these into a single score, so the song continues on the same line? Thanks.

It looks like \RemovesEmptyStaves and friends are what you are looking
for: This command removes staves which contain only rests from the score
so you can have two staves all the time but fill the verse of the lower
staff with rests. In LilyPond 2.18 you might need an extra \override.
The code below shows how the command is used.

\version "2.18.2"

\header {
  title = "How to hide empty staves"
}

melodyTop = \relative {
  \clef treble
  \key c \major
  \time 4/4
  c'8 d e f g a b4
  \break
  c8 b a g f e d4
  \break
  c d e f g a b c
  \break
  R1*2
}

melodyBottom = \relative {
  \clef bass
  \key c \major
  \time 4/4
  R1
  c'2 f,2
  R1*2
  c1 c2 c
}

lyricsTop = \lyricmode {
  do re mi fa so la ti
  do ti la so fa me re
  so -- lo so -- lo so -- lo so -- lo
}

lyricsBottom = \lyricmode {
  do fa
  bass so -- lo
}

\score {
  <<
\new Voice = "top" { \autoBeamOff \melodyTop }
\new Lyrics \lyricsto "top" \lyricsTop
\new Voice = "bottom" { \autoBeamOff \melodyBottom }
\new Lyrics \lyricsto "bottom" \lyricsBottom
%% might be easier:
%{
{ \autoBeamOff \melodyTop }
\addlyrics \lyricsTop
{ \autoBeamOff \melodyBottom }
\addlyrics \lyricsBottom
%}
  >>
  \layout {
\context {
  \Staff
  %% LilyPond 2.18
  %% removes empty staves (but not in the first line)
  \RemoveEmptyStaves
  %% removes empty staves in the first line
  \override VerticalAxisGroup.remove-first = ##t
  %% LilyPond 2.19
  %% removes empty staves everywhere;
  %% \RemoveEmptyStaves still exists in 2.19
  %\RemoveAllEmptyStaves
}
  }
}

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


How to merge two scores into one?

2017-01-05 Thread Jeff Epstein
I'm not understanding how to merge two scores into one. The song just 
continues, but it's a different section with a different voice configuration. 
The first section has a single voice, the second has two. The only way I can 
figure it out so far is to print out two scores. Is there a way to merge these 
into a single score, so the song continues on the same line? Thanks.
Code file:

https://dl.dropboxusercontent.com/u/3865910/mergely/two_scores.ly

Generated output:
https://dl.dropboxusercontent.com/u/3865910/mergely/two_scores.pdf

Full code:
    \version "2.18.2"        \header {       title = "How to merge two scores 
into one?"    }        melodyVerse = \relative c' {       \clef treble       
\key c \major       \time 4/4           c8 d e f g a b4    }        
melodyChorusTop = \relative c'' {       \clef treble       \key c \major       
\time 4/4           c8 b a g f e d4    }        melodyChorusBottom = \relative 
c {       \clef bass       \key c \major       \time 4/4          c'2 f,2    }  
          lyricsVerse = \lyricmode {      do re mi fa so la ti    }        
lyricsChorusTop = \lyricmode {       do ti la so fa me re    }        
lyricsChorusBottom = \lyricmode {       do fa    }                \score {     
<<     \new Voice = "verse" { \autoBeamOff \melodyVerse }     \new Lyrics 
\lyricsto "verse" \lyricsVerse     >>     \layout { }    }        \score {     
<<     \new Voice = "chorusTop" { \autoBeamOff \melodyChorusTop}     \new 
Lyrics \lyricsto "chorusTop" \lyricsChorusTop         \new Voice = 
"chorusBottom" { \autoBeamOff \melodyChorusBottom}     \new Lyrics \lyricsto 
"chorusBottom" \lyricsChorusBottom     >>     \layout { }    }


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


Re: Replicating chord slurs

2017-01-05 Thread tisimst
Hi, Joel!

On Thu, Jan 5, 2017 at 8:38 AM, Joel C. Salomon [via Lilypond] <
ml-node+s1069038n198891...@n5.nabble.com> wrote:

> Neighbors,
>
> I’m trying to replicate the chord slurs in the attached image. This
> shows the closest two versions I’ve managed (image also attached):
>
> \version "2.19.54"
> \language "english"
>
> \score {
>   \relative c' {
> \time 3/4
> 2
> 4
>
> 2
> 4
>   }
>   \layout {}
> }
>
> The first has the right notes slurred together, but looks bad; the
> second looks less bad, but still isn’t right. Can anyone suggest another
> tweak I might try here?
>

A couple of thoughts for you (sorry, I'm using absolute pitch in all my
examples below). From top to bottom in the original score, here's what I
see:

1. as' ( b' )
2. g' ~ g'
3. e!' ( g' )
4. cs' ( d' )

Personally, I think this is overkill with the slurs since you really only
need one from one chord to the next, two max (is this for piano?). Now that
I'm looking at it a little closer, I wonder what the purpose of the slur in
e'! ( g' ) is supposed to mean in the first place... You can't play it AND
the tie at the same time, unless it's indicating a finger exchange or
something like that. So, here's what I'd recommend:

1. If you MUST replicate the original, re-map the curves to include the
tie, then adjust shapes as necessary (I think the tie is all you may need
to adjust--maybe flip its direction to DOWN?):

  2 4

2. Re-notate the progression with two voices, and combine the tied g' into
a single note, like so:

  << { g'2. } \\ { 2 ( 4 ) } >>
OR
  << { 2 ( 4 ) } \\ { g'2. } >>

depending on which order appears better to you.

3. If the tie is superfluous, then

  2 ( 4 )

4. If the second g' is really supposed to be sustained, then I'd do #2 and
omit the g' from the second slurred chord:

  << { g'2. } \\ { 2 ( 4 } >>

If I had to choose one, I'd go with #3 or #4.

HTH,
Abraham

[image: Inline image 2]


image.png (25K) 





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Replicating-chord-slurs-tp198891p198896.html
Sent from the User mailing list archive at Nabble.com.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Replicating chord slurs

2017-01-05 Thread Thomas Morley
2017-01-05 16:32 GMT+01:00 Joel C. Salomon :
> Neighbors,
>
> I’m trying to replicate the chord slurs in the attached image. This
> shows the closest two versions I’ve managed (image also attached):
>
> \version "2.19.54"
> \language "english"
>
> \score {
>   \relative c' {
> \time 3/4
> 2
> 4
>
> 2
> 4
>   }
>   \layout {}
> }
>
> The first has the right notes slurred together, but looks bad; the
> second looks less bad, but still isn’t right. Can anyone suggest another
> tweak I might try here?
>
> ––Joel C. Salomon



Hi,

setting spanner-id via \=... has still some shortcomings.

In _this_ and only this case I'd go for a complete stencil-rewrite,
tailored at mass (every bow starts/ends at same height.

\version "2.19.52"

myStil =
  #(lambda (grob)
(let* ((c-ps (ly:slur::calc-control-points grob))
   (thick 0.1)
   (angularity 0.5)
   (height (/ (ly:grob-property grob 'minimum-length) 10)))
   (ly:stencil-add
(make-bow-stencil
  (cons (+ (car (car c-ps)) 1) (- (cdr (car c-ps)) 0))
  (cons (- (car (fourth c-ps)) 1) (- (cdr (car c-ps)) 0))
  thick angularity height UP)
(make-bow-stencil
  (cons (+ (car (car c-ps)) 1) (- (cdr (car c-ps)) 1))
  (cons (- (car (fourth c-ps)) 1) (- (cdr (car c-ps)) 1))
  thick angularity height UP)
(make-bow-stencil
  (cons (+ (car (car c-ps)) 0) (- (cdr (car c-ps)) 2.4))
  (cons (- (car (fourth c-ps)) 1) (- (cdr (car c-ps)) 2.4))
  thick angularity height DOWN)
(make-bow-stencil
  (cons (+ (car (car c-ps)) 0) (- (cdr (car c-ps)) 3.7))
  (cons (- (car (fourth c-ps)) 1) (- (cdr (car c-ps)) 3.7))
  thick angularity height DOWN

mySlur =
\tweak minimum-length #10
\tweak direction #UP
\tweak stencil \myStil
\etc


\new Staff \relative c' {
2 -\mySlur (
4)
}


Hopefully someone comes up with a better idea.

Cheers,
  Harm

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


Re: MultiMeasureRest symbol spacing

2017-01-05 Thread Jan-Peter Voigt

Hi David,

thank you!
I am looking forward to receive this patch 2.19.5x. And I'd say 8 is a 
reasonable default value. But the key point is, it is overridable!


Best
Jan-Peter


Am 05.01.2017 um 15:56 schrieb David Nalesnik:

On Mon, Jan 2, 2017 at 5:32 PM, David Nalesnik  wrote:

Hi Jan-Peter!

On Mon, Jan 2, 2017 at 2:46 PM, Jan-Peter Voigt  wrote:

Hi David,

happy new year!
I do understand the concerns about this matter. Most instrumental parts
shouldn't have this problem, as the measures will be spaced well. And in
most cases spreaded church rests probably indicate bad spacing or
line-breaking.

But still - in my opinion - an option to set a maximum distance would serve
for cases I am facing right now, where long church rests are followed by one
measure of cues which indicate the end of a recitative and display the last
notes and words. You will not find such cues very often, but whenever I
prepare parts like that I receive thanks from the musicians. In the attached
image your patch prevents spreading the 6-measure-rest. Perhaps an optional
maximum would be acceptable.



It should.  In this case (I project that) you would do an override like this:

\override MultiMeasureRest.max-symbol-separation = 2

That would make 2 staff-spaces the effective distance in your example,
because obviously LilyPond would want to make the distance much
greater.

(In fact, with a value like 2, you'd probably get a uniform spacing
throughout the document, since it's probably rare that default spacing
would be less than that.)

Setting the value to something like 6 would allow the distance to vary
with shorter measures of different sizes, but would cap the spread to
6 so the rest would still be legible when spacing is loose.




OK, a new patch set is up.  It implements max-symbol-separation as
described above.

I've created a default max of 8.0 staff-spaces, so there is still some
variability in ordinary measures.  If somebody has a better number,
I'm all for it.  (In any case, it's easily overridden, and the default
value will be displayed on the IR page.)

Best,
David




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


Replicating chord slurs

2017-01-05 Thread Joel C. Salomon
Neighbors,

I’m trying to replicate the chord slurs in the attached image. This
shows the closest two versions I’ve managed (image also attached):

\version "2.19.54"
\language "english"

\score {
  \relative c' {
\time 3/4
2
4

2
4
  }
  \layout {}
}

The first has the right notes slurred together, but looks bad; the
second looks less bad, but still isn’t right. Can anyone suggest another
tweak I might try here?

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


Re: MultiMeasureRest symbol spacing

2017-01-05 Thread David Nalesnik
On Mon, Jan 2, 2017 at 5:32 PM, David Nalesnik  wrote:
> Hi Jan-Peter!
>
> On Mon, Jan 2, 2017 at 2:46 PM, Jan-Peter Voigt  wrote:
>> Hi David,
>>
>> happy new year!
>> I do understand the concerns about this matter. Most instrumental parts
>> shouldn't have this problem, as the measures will be spaced well. And in
>> most cases spreaded church rests probably indicate bad spacing or
>> line-breaking.
>>
>> But still - in my opinion - an option to set a maximum distance would serve
>> for cases I am facing right now, where long church rests are followed by one
>> measure of cues which indicate the end of a recitative and display the last
>> notes and words. You will not find such cues very often, but whenever I
>> prepare parts like that I receive thanks from the musicians. In the attached
>> image your patch prevents spreading the 6-measure-rest. Perhaps an optional
>> maximum would be acceptable.
>>
>
> It should.  In this case (I project that) you would do an override like this:
>
> \override MultiMeasureRest.max-symbol-separation = 2
>
> That would make 2 staff-spaces the effective distance in your example,
> because obviously LilyPond would want to make the distance much
> greater.
>
> (In fact, with a value like 2, you'd probably get a uniform spacing
> throughout the document, since it's probably rare that default spacing
> would be less than that.)
>
> Setting the value to something like 6 would allow the distance to vary
> with shorter measures of different sizes, but would cap the spread to
> 6 so the rest would still be legible when spacing is loose.
>


OK, a new patch set is up.  It implements max-symbol-separation as
described above.

I've created a default max of 8.0 staff-spaces, so there is still some
variability in ordinary measures.  If somebody has a better number,
I'm all for it.  (In any case, it's easily overridden, and the default
value will be displayed on the IR page.)

Best,
David

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


Re: systems-per-page = 3 ... except on first and last pages?

2017-01-05 Thread Urs Liska


Am 05.01.2017 um 11:07 schrieb Jan-Peter Voigt:
> ... and if you want to use manual page-breaks, you can apply them
> using the edition-engraver
> (https://github.com/openlilylib/edition-engraver) ... 

OK, while we're at that, there's my "page-layout" package
(https://github.com/openlilylib/page-layout) that greatly simplifies
this process. You can specify an arbitrary number of break sets (line
breaks, page breaks, page turns) and name them (e.g. "a4paper"/"screen"
or "manuscript"/"original-edition" or whatever) to be easily chosen for
a given compilation.
Breaks are given as a simple list, and it even handles mid-measure
breaks by implicitly inserting the \bar "" commands.

> time will come and I explain it in detail on lilypondblog.org.
>

Ehm, same here ;-)

But I can of course give some usage/"installation" instructions

Best
Urs

> But still the issue of ragged/unragged pages remains. Sometime I
> insert a markup of arbitrary height to fill the bottom of a last or
> the head of a first page. That is not a generic solution, but still ...
>
> Jan-Peter
>
> Am 05.01.2017 um 10:58 schrieb Federico Bruni:
>> Il giorno mer 4 gen 2017 alle 23:00, Trevor Bača 
>> ha scritto:
>>> I'm using ...
>>>
>>> systems-per-page = 3
>>>
>>> ... in the \paper block of a current score.
>>>
>>> However, the big block of title text on the first page makes three
>>> systems cramped. (Two would be better.) Correspondingly, fewer
>>> measures of music on the last page makes each of the three systems on
>>> the last page too short. (Again two systems would be better.)
>>>
>>> Is there an (inline) way to override the effect of systems-per-page on
>>> only select pages?
>>
>> I'm afraid that the only way is using manual \pageBreaks.
>>
>> \version "2.19.53"
>>
>> \header {
>>  title = "Hello"
>> }
>>
>> \paper {
>>  indent = 0
>>  markup-system-spacing.padding = 30
>>  system-count = 17 % 68 bars divided on 17 systems = 4 bars per system
>>  systems-per-page = 7
>> }
>>
>> {
>>  % 1st page: 3 systems
>>  \repeat unfold 12 R1
>>  \pageBreak
>>
>>  % 2nd page: 7 systems;
>>  % 3rd page: 5 systems (\pageBreak overrides systems-per-page)
>>  \repeat unfold 48 R1
>>  \pageBreak
>>
>>  % last page: 2 systems
>>  \repeat unfold 8 R1
>> }
>>
>>
>>
>>
>> ___
>> 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

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org


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


Re: Which Linux distro for Lilypond

2017-01-05 Thread Dr Nicholas Bailey
Watch out for Debian. There isn't a Lilypond in Testing (Stretch) AFAIK. It's 
because they've removed the old scheme version. I develop in Testing in the 
hope that by the time I get around to releasing anything, it will be 
compatible with Stable :) Stable released rather infrequently, but I use it on 
our servers and it is very, well, *stable*.

It's easy to install the Stable lilypond debian package on a Testing Debian 
box, fortunately. Debian is my favourite distro: I've tried others but always 
returned. Shame about the scheme thing, but it will sort itself out sooner or 
later (if it hasn't already!). I guess the clue's in the distribution name: 
"Testing" ;)

Nick/.

On Friday, 23 December 2016 22:37:32 GMT David Wright wrote:
> On Sat 24 Dec 2016 at 13:06:23 (+1000), Craig Dabelstein wrote:
> > Hi Lilyponders,
> > 
> > Just a quick question. I'm taking the plunge and moving to Linux. Which
> > distro would you recommend for running Lilypond and Frescobaldi?
> 
> I don't know where you're moving from, but I think you should choose
> your distribution on what you and your computer find most comfortable
> to use.
> 
> Assuming you're coming from, say, windows or a mac, you would probably
> run a Desktop Environment, in which case the choice of DE could be as
> important as the distribution.
> 
> OTOH with an older machine that's past being able to run windows,
> Frescobaldi should run happily on X and the simplest of Window
> Managers, like fvwm for example (and maybe a DE too).
> 
> The version of LP that the distribution supports can be made
> irrelevant by downloading it/them from the lilypond.org website,
> and I assume the same goes for F. (Debian stable, currently jessie,
> will always bundle comparatively old versions of software.)
> So I would say that you should sort out your platform first.
> 
> (I wasn't aware of oddities with OpenSuse Leap 42.1, nor whether these
> involved only its bundled versions or all versions.)
> 
> Cheers,
> David.
> 
> ___
> 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: systems-per-page = 3 ... except on first and last pages?

2017-01-05 Thread Jan-Peter Voigt
... and if you want to use manual page-breaks, you can apply them using 
the edition-engraver (https://github.com/openlilylib/edition-engraver) 
... time will come and I explain it in detail on lilypondblog.org.


But still the issue of ragged/unragged pages remains. Sometime I insert 
a markup of arbitrary height to fill the bottom of a last or the head of 
a first page. That is not a generic solution, but still ...


Jan-Peter

Am 05.01.2017 um 10:58 schrieb Federico Bruni:

Il giorno mer 4 gen 2017 alle 23:00, Trevor Bača 
ha scritto:

I'm using ...

systems-per-page = 3

... in the \paper block of a current score.

However, the big block of title text on the first page makes three
systems cramped. (Two would be better.) Correspondingly, fewer
measures of music on the last page makes each of the three systems on
the last page too short. (Again two systems would be better.)

Is there an (inline) way to override the effect of systems-per-page on
only select pages?


I'm afraid that the only way is using manual \pageBreaks.

\version "2.19.53"

\header {
 title = "Hello"
}

\paper {
 indent = 0
 markup-system-spacing.padding = 30
 system-count = 17 % 68 bars divided on 17 systems = 4 bars per system
 systems-per-page = 7
}

{
 % 1st page: 3 systems
 \repeat unfold 12 R1
 \pageBreak

 % 2nd page: 7 systems;
 % 3rd page: 5 systems (\pageBreak overrides systems-per-page)
 \repeat unfold 48 R1
 \pageBreak

 % last page: 2 systems
 \repeat unfold 8 R1
}




___
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: systems-per-page = 3 ... except on first and last pages?

2017-01-05 Thread Federico Bruni
Il giorno mer 4 gen 2017 alle 23:00, Trevor Bača 
 ha scritto:

I'm using ...

systems-per-page = 3

... in the \paper block of a current score.

However, the big block of title text on the first page makes three 
systems cramped. (Two would be better.) Correspondingly, fewer 
measures of music on the last page makes each of the three systems on 
the last page too short. (Again two systems would be better.)


Is there an (inline) way to override the effect of systems-per-page 
on only select pages?


I'm afraid that the only way is using manual \pageBreaks.

\version "2.19.53"

\header {
 title = "Hello"
}

\paper {
 indent = 0
 markup-system-spacing.padding = 30
 system-count = 17 % 68 bars divided on 17 systems = 4 bars per system
 systems-per-page = 7
}

{
 % 1st page: 3 systems
 \repeat unfold 12 R1
 \pageBreak

 % 2nd page: 7 systems;
 % 3rd page: 5 systems (\pageBreak overrides systems-per-page)
 \repeat unfold 48 R1
 \pageBreak

 % last page: 2 systems
 \repeat unfold 8 R1
}




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