Help for \beamExceptions

2015-09-01 Thread Richard Shann
I've been trying to use the music function \beamExceptions which is in
version 2.19.25, I can't find anything much to document it though.
For example, trying this

\version "2.19.25"

MvmntIVoiceI = {
 e'8[ f'8 g'] a'8\noBeam b'8 a'[ g'8 f'] |
 e'8 f' g' a' b' a' g' f' 
}

\score { 
\new Staff {\time 4/4 \MvmntIVoiceI } 
\layout {
\set beamExceptions = \beamExceptions { \time 4/4  e' 8[ f' 8
g' ] a' 8\noBeam b' 8 a' [ g' 8 f' ] }
}
  }

the second bar is not beamed like the first, despite the music argument
to \beamExceptions being a copy of the first bar.

Is the next stop some source file for finding out what can be done, or
am I missing some documentation?

Another topic that came up while I was doing this:
I have used \set beamExceptions here, but I couldn't figure out what is
allowed for setting the context - Voice and Staff worked but \set
Score.beamExceptions was ignored, and I couldn't find out what \set
Timing.beamExceptions was doing - Timing doesn't appear in the hierarchy
of contexts...

Richard
 


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


Re: stacking whole notes of different size

2015-09-01 Thread Stephen MacNeil
>Yup, creating a new Voice and applying force-hshift works, but the last
>tie looks quite different than the other ones:

Yup it does look different. Using \override Tie.Y-offset = #.3 fixes it a
bit but still ugly.

\shape #'((-0.5 . 0.5) (0 . 0.5) (0.5 . 0.3) (0.5 . 0.5)) Tie

looks better I think.

\version "2.18.2"


\relative c'' {

a2. fis4 | a1 |

<<

{ g1 | fis | e | d~ | d1~ | d1~ |

% if you want the notes joined

2 }

\new Voice \with { fontSize = #-3 } {

\override NoteColumn.force-hshift = #0.35

b'1 | bes! | cis | d~ | d1~ |

%looks ok ...

% \override Tie.Y-offset = #.3

% looks better

\shape #'((-0.5 . 0.5) (0 . 0.5) (0.5 . 0.3) (0.5 . 0.5)) Tie

d1~ |

% only if you want the notes together

\hideNotes d2

}

>>

}



> a2. fis4 | a1 |
   > <<
   >   { \voiceTwo g1 | fis | e | d~ | 1~ | 1~ | 2  }
   >  \new Voice \with { fontSize = #-3 } {
   >  \override NoteColumn.force-hshift = #0.15
   >  \voiceOne b'1 | h! | cis | d~ | 1~ | 1~ | 2
   > }
> >>

> see attached picture.

>Marc

Stephen

On Tue, Sep 1, 2015 at 1:21 AM, Marc Hohl  wrote:

> Am 31.08.2015 um 19:09 schrieb Stephen MacNeil:
>
>> \override NoteColumn.force-hshift = #.65 works but you would have to
>> create a new voice i believe.
>>
>
> Yup, creating a new Voice and applying force-hshift works, but the last
> tie looks quite different than the other ones:
>
> a2. fis4 | a1 |
>   <<
>  { \voiceTwo g1 | fis | e | d~ | 1~ | 1~ | 2  }
>  \new Voice \with { fontSize = #-3 } {
>   \override NoteColumn.force-hshift = #0.15
>   \voiceOne b'1 | h! | cis | d~ | 1~ | 1~ | 2
>  }
>   >>
>
> see attached picture.
>
> Marc
>
>>
>>
>> Stephen
>>
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Help for \beamExceptions

2015-09-01 Thread David Kastrup
Richard Shann  writes:

> I've been trying to use the music function \beamExceptions

"scheme function"

> which is in version 2.19.25, I can't find anything much to document it
> though.  For example, trying this
>
> \version "2.19.25"
>
> MvmntIVoiceI = {
>  e'8[ f'8 g'] a'8\noBeam b'8 a'[ g'8 f'] |
>  e'8 f' g' a' b' a' g' f' 
> }
>
> \score { 
> \new Staff {\time 4/4 \MvmntIVoiceI } 
> \layout {
>   \set beamExceptions = \beamExceptions { \time 4/4  e' 8[ f' 8
> g' ] a' 8\noBeam b' 8 a' [ g' 8 f' ] }
> }
>   }
>
> the second bar is not beamed like the first, despite the music argument
> to \beamExceptions being a copy of the first bar.

\beamExceptions only takes explicit beams.  \noBeam is useless here.

> Is the next stop some source file for finding out what can be done, or
> am I missing some documentation?

It's just notes and [ and ].

> Another topic that came up while I was doing this:
> I have used \set beamExceptions here, but I couldn't figure out what is
> allowed for setting the context - Voice and Staff worked but \set
> Score.beamExceptions was ignored, and I couldn't find out what \set
> Timing.beamExceptions was doing - Timing doesn't appear in the hierarchy
> of contexts...

Timing is a context alias established by the Timing_translator.  There
is a hardwired alias Timing for the Score context in case you use Timing
before anything has been called.  The location in ly/engraver-init.ly
where this alias of Timing to Score (which is only relevant if you are
at outer Score level or there is no intervening Timing alias) states:

  \alias "Timing"

  %% An alias for Timing is established by the Timing_translator in
  %% whatever context it is initialized, and the timing variables are
  %% then copied from wherever Timing had been previously established.
  %% The alias at Score level provides a target for initializing
  %% Timing variables in layout definitions before any
  %% Timing_translator has been run.


-- 
David Kastrup

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


Re: Advanced note column handling…

2015-09-01 Thread Simon Albrecht

Am 01.09.2015 um 14:15 schrieb Michael Gerdau:

Dear Simon,


in a Mendelssohn score I encountered a problem on which I’m biting my
teeth off. Have a look at the attachments – that’s easier than making
many words. As you can imagine, the span stem should connect the two
middle voices and the top two voices not collide (no matter in which
direction), but I couldn’t yet figure out how: no combination of
NoteColumn.force-hshift and NoteColumn.ignore-collision that I tried
gave the intended result.

At least optically I can trick the collision away...
Thanks, that’s a good workaround. Looks like there’s room for 
improvement in the #Span_stem_engraver…


Best regards, Simon

%%
\version "2.19.25"

\score {
   \new PianoStaff \with { \consists #Span_stem_engraver }
   <<
 \new Staff
 <<
   \repeat tremolo 4 {
 a'16 bes'16
   }
   \\
   {
 \voiceFour \crossStaff {
   % With this override, the span stem is correct,
   % but the first and second voices collide…
   %\override NoteColumn.ignore-collision = ##t
   \once \override NoteColumn.force-hshift = #0.5 \once \override
Stem.length = #12 4.
 }
   }
 >>
 \new Staff
 <<
   \clef bass
   { \voiceFour \once \override NoteColumn.force-hshift = #1 cis'4. }
   \\
   { \voiceTwo a,2 }
 >>
   >>
}
%%




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


Re: Advanced note column handling…

2015-09-01 Thread Simon Albrecht

Am 01.09.2015 um 19:17 schrieb Simon Albrecht:

Am 01.09.2015 um 14:15 schrieb Michael Gerdau:

Dear Simon,


in a Mendelssohn score I encountered a problem on which I’m biting my
teeth off. Have a look at the attachments – that’s easier than making
many words. As you can imagine, the span stem should connect the two
middle voices and the top two voices not collide (no matter in which
direction), but I couldn’t yet figure out how: no combination of
NoteColumn.force-hshift and NoteColumn.ignore-collision that I tried
gave the intended result.

At least optically I can trick the collision away...

Thanks, that’s a good workaround.


Upon a close look it appeared that there was still a little displacement 
between the stems, so I had to adapt the values a little.


All the best, Simon
\version "2.19.25"
#(set-global-staff-size 40)

\score {
  \new PianoStaff \with { \consists #Span_stem_engraver }
  <<
\new Staff
<<
  \repeat tremolo 4 {
a'16 bes'16
  }
  \\
  {
\voiceFour \crossStaff {
  \once\override Stem.length = 12
  4.
}
  }
>>
\new Staff
<<
  \clef bass
  { \voiceFour \tweak NoteColumn.force-hshift 0.995 cis'4. }
  \\
  { \voiceTwo a,2 }
>>
  >>
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Gallery of Interesting Music Notation

2015-09-01 Thread Trevor Daniels

Simon Albrecht wrote Tuesday, September 01, 2015 1:58 AM

> ...  especially with the complex situation 
> often seen with Chopin).

Indeed.  I chose a few bars from Chopin's Première Ballade, Op. 23 to 
illustrate how to resolve some of the (much easier!) difficulties with 
typesetting his music in the Learning Manual:
http://www.lilypond.org/doc/v2.19/Documentation/learning/real-music-example

Trevor



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


Re: Help for \beamExceptions

2015-09-01 Thread Simon Albrecht

Hello Richard,

if you want to use \beamExceptions, it seems like the only way to do this is
%%
\version "2.19.25"

{
  \time 4/4
  \set Timing.beamExceptions = \beamExceptions { 8[] 8[ 8] 8[]  8[] 8[ 
8 8] }

  e'8 f' g' a' b' a' g' f'
}
%%

– that’s a bit cumbersome and IMO it should lead to the same result with 
{ 8 8[ 8] 8  8 8[ 8 8] }.
So currently this is a case where the immediate, Scheme way is more 
straightforward:



\version "2.19.25"

{
  \time 4/4
  \set Timing.beamExceptions = #'((end . ((1/8 . (1 2 1 1 3))
  (1/12 . (1 6 2 1 2)
  e'8 f' g' a' b' a' g' f'
  \tuplet 3/2 4 { e' f' g' f' g' a' g' a' b' a' g' f' }
}


Yours, Simon

Am 01.09.2015 um 20:37 schrieb Richard Shann:

I've been trying to use the music function \beamExceptions which is in
version 2.19.25, I can't find anything much to document it though.
For example, trying this

\version "2.19.25"

MvmntIVoiceI = {
  e'8[ f'8 g'] a'8\noBeam b'8 a'[ g'8 f'] |
  e'8 f' g' a' b' a' g' f'
}

\score {
 \new Staff {\time 4/4 \MvmntIVoiceI }
 \layout {
\set beamExceptions = \beamExceptions { \time 4/4  e' 8[ f' 8
g' ] a' 8\noBeam b' 8 a' [ g' 8 f' ] }
 }
   }

the second bar is not beamed like the first, despite the music argument
to \beamExceptions being a copy of the first bar.

Is the next stop some source file for finding out what can be done, or
am I missing some documentation?

Another topic that came up while I was doing this:
I have used \set beamExceptions here, but I couldn't figure out what is
allowed for setting the context - Voice and Staff worked but \set
Score.beamExceptions was ignored, and I couldn't find out what \set
Timing.beamExceptions was doing - Timing doesn't appear in the hierarchy
of contexts...

Richard
  



___
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: Lyric in popular score

2015-09-01 Thread Marcos Press
Thanks Simon!
The \skip was what I miss!

I'm not used to input lyrics :)

2015-09-01 23:17 GMT+02:00 Simon Albrecht :

> Hello Marcos,
>
> first: welcome to the list!
>

actualy... I've been in the list for a couple of years ;)
But is always great to be welcome Thanks!

And thanks Lilypond for been a so great software and community!


> Second: It almost always helps if you add a compilable, possibly tiny
> example  to your post – thus it
> will be easier a) to understand the problem and b) to give you a solution.
> Third general remark: Are you familiar with the Learning Manual? <
> http://lilypond.org/doc/v2.18/Documentation/learning/index.html> It’s a
> great resource for getting started with LilyPond and covers all the basics,
> also tutoring you on how to use the other manuals – so you shouldn’t miss
> studying that! It’ll be very rewarding.
>
But now to your question :-)
>
> Am 01.09.2015 um 22:34 schrieb Marcos Press:
>
>> Dear list,
>>
>> Iḿ trying to add the lyric of a folk song to a score.
>>
>> How do I tell the lyric in wich measure to start?
>>
> There are two general ways to enter lyrics: 1) entering them with explicit
> durations and 2) automatically aligning them to a voice through \addlyrics
> or \lyricsto (or \set associatedVoice).
>
> 1) Use a skip of the required length to skip the first part of the music.
> 2) Repeat the skip as many times as there are notes to skip.
>
> Example attached.
>
> You’ll find that with the first method, the syllables are all left-aligned
> to the notes, at least if you use version 2.18.2 or earlier. This is a bug
> fixed only in the more recent development versions, so at least for the
> stable version you’re better off with \lyricsto.
> In simple setups, \addlyrics may be used as well in place of \new Lyrics
> \lyricsto.
>
> Can anyone point me where to look for an answer?
>>
> The Learning Manual has a section on lyrics: <
> http://lilypond.org/doc/v2.18/Documentation/learning/songs>, but the
> answer to your question is hidden deep in the Notation reference, in <
> http://lilypond.org/doc/v2.18/Documentation/notation/techniques-specific-to-lyrics#lyrics-and-repeats
> >.
>
>>
>> Thanks in advance!
>>
> You’re welcome! HTH [Hope that helps].
>
> Simon
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Analysis brackets with text [was: how to get notes without tails?]

2015-09-01 Thread David Nalesnik
On Tue, Sep 1, 2015 at 4:01 PM, Paul Morris  wrote:

> Hi David,
>
> On Aug 31, 2015, at 8:20 AM, David Nalesnik 
> wrote:
>
> Which of course makes them unsuitable for showing phrase elision.
>
> Or longer overlaps:



 \relative c'' {
  c\startGroup d c\startGroup d\stopGroup c d\stopGroup
}

\layout {
  \context {
\Voice
\override HorizontalBracket.direction = #UP
\consists Horizontal_bracket_engraver
  }
}



The first \stopGroup closes the smaller grouping, because the system is
designed so that brackets nest cleanly.

Interestingly, this overlap is possible with slurs:

%

\version "2.19.25"

secondSlur = #(make-music 'SlurEvent 'span-direction START 'spanner-id "2")
secondEnd = #(make-music 'SlurEvent 'span-direction STOP 'spanner-id "2")

\relative c'' {
  c( d c\secondSlur d) c d\secondEnd
}

%%

This, too:



thirdSlur = #(make-music 'SlurEvent 'span-direction START 'spanner-id "3")
thirdEnd = #(make-music 'SlurEvent 'span-direction STOP 'spanner-id "3")

\relative c'' {
  c-\tweak Slur.positions #'(4 . 4) ( \secondSlur
  c\secondEnd\secondSlur -\tweak Slur.positions #'(3 . 3)\thirdSlur
  c\secondEnd\secondSlur
  c)\secondEnd\thirdEnd
  c( d c\secondSlur d) c d\secondEnd
}

%%%

Maybe a system could be devised where brackets nest by default, but a
spanner-id property can be used to create more sophisticated structures?

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


Re: stacking whole notes of different size

2015-09-01 Thread Stephen MacNeil
wow Harm that looks really nice.

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


Re: lilypond: merging rests in polyphonic staff

2015-09-01 Thread Thomas Morley
2015-09-01 22:59 GMT+02:00 Martin Lejeune :
> Hi Everybody,
> here's a newbie question.
> I tried to configure "merging automatically" of rests in polyphonic staffs
> (piano) with a snipped, which I found in the manual.

You likely mean
http://lsr.di.unimi.it/LSR/Item?id=336

Though, please note, it's the "LilyPond Snippet Repository", LSR
The LSR is _not_ part of the manuals.
A lot of snippets are taken from the LSR and included in the snippets-manual.
That's not exactly the same, though ;)

> It doesn't work.

It does.

> What's the mistake, any idea?

If you use a snippet, you have to include the _whole_ snippet into your file
You deleted the entire definition of `merge-rests-on-positioning'!!!
Additionally, there are several mistakes in your code of the snippet.

Again, if you want to try a snippet copy and paste it in your file
_without_ any changes!
Try it and _afterwards_ you may try to apply changes.

Read the description:
"[...] Please note that multi-measure rests are not automatically combined"


There are engravers on the list you may want to try, affecting simple
rests and MultiMeasureRests, though they are not perfect, either:
http://www.mail-archive.com/lilypond-user%40gnu.org/msg69703.html


>
> Thanks very much!
>
> Cheers
> Martin
>
> PS:
>
> My example:

Your example could be then:

#(define has-one-or-less (lambda (lst) (or (null? lst) (null? (cdr lst)
#(define has-at-least-two (lambda (lst) (not (has-one-or-less lst
#(define (all-equal lst pred)
  (or (has-one-or-less lst)
  (and (pred (car lst) (cadr lst)) (all-equal (cdr lst) pred

#(define merge-rests-engraver
   (lambda (context)
 (let ((rest-same-length
 (lambda (rest-a rest-b)
   (eq? (ly:grob-property rest-a 'duration-log)
(ly:grob-property rest-b 'duration-log
   (rests '()))
 `((start-translation-timestep . ,(lambda (trans)
(set! rests '(
   (stop-translation-timestep . ,(lambda (trans)
   (if (and (has-at-least-two rests)
 (all-equal rests rest-same-length))
 (for-each
   (lambda (rest)
(ly:grob-set-property! rest 'Y-offset 0))
   rests
   (acknowledgers
 (rest-interface . ,(lambda (engraver grob source-engraver)
  (if (eq? 'Rest (assoc-ref
(ly:grob-property grob 'meta) 'name))
(set! rests (cons grob rests))

#(define merge-mmrests-engraver
   (lambda (context)
 (let* ((mmrest-same-length
  (lambda (rest-a rest-b)
(eq? (ly:grob-property rest-a 'measure-count)
 (ly:grob-property rest-b 'measure-count
(merge-mmrests
  (lambda (rests)
(if (all-equal rests mmrest-same-length)
  (let ((offset
  (if
   (eq? (ly:grob-property (car rests) 'measure-count) 1)
   1 0)))
(for-each
  (lambda (rest)
(ly:grob-set-property! rest 'Y-offset offset))
  rests)
(curr-rests '())
(rests '()))
 `((start-translation-timestep . ,(lambda (trans)
(set! curr-rests '(
   (stop-translation-timestep . ,(lambda (trans)
   (if (has-at-least-two curr-rests)
 (set! rests (cons curr-rests rests)
   (finalize . ,(lambda (translator)
  (for-each merge-mmrests rests)))
   (acknowledgers
 (rest-interface . ,(lambda (engraver grob source-engraver)
  (if (eq? 'MultiMeasureRest (assoc-ref
(ly:grob-property grob 'meta) 'name))
(set! curr-rests (cons grob curr-rests))

\version "2.18.2"

\header {
  title = "merging rests"
}

global = { \time 4/4 }
Key = { \key g\major }

%% -- Piano --
rhUpper = \relative c''
{
  \voiceOne
  \Key
  R1*4
g4 r8 g r2 |
}

rhLower = \relative c' {
  \voiceTwo
  \Key
R1*4
b4 r8 b r2 |
}

lhUpper = \relative c' {
  \voiceOne
  \Key
  R1*4 |
  g4 r8 g r2 |
}
lhLower = \relative c {
  \voiceTwo
  \Key
  R1*4|
  d4 r8 d r2 |
}

PianoRH = {
  \clef treble
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
\new Voice = "one" \rhUpper
\new Voice = "two" \rhLower
  >>
}
PianoLH = {
  \clef bass
  \global
  \set Staff.midiInstrument = #"acoustic grand"
  <<
\new Voice = "one" \lhUpper
\new Voice = "two" \lhLower
  >>
}

piano = {
  <<
\set PianoStaff.instrumentName = #"Piano"

\new Staff = "upper" \PianoRH
\new Staff = "lower" \PianoLH
 \set Staff.shortInstrumentName 

Re: Analysis brackets with text [was: how to get notes without tails?]

2015-09-01 Thread Paul Morris
Hi David,

> On Aug 31, 2015, at 8:20 AM, David Nalesnik  wrote:
> 
> Which of course makes them unsuitable for showing phrase elision.
> 
> Getting a TextSpanner to begin on a note and another to start on the same 
> note requires some sleight-of-hand (you can see this in Scheme in the 
> regression test scheme-text-spanner.ly ).  I 
> wonder if the to accommodate nested brackets ruled "conflicting note group 
> events" out?

Good point.  I imagine you’re right.  

-Paul

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


Lyric in popular score

2015-09-01 Thread Marcos Press
Dear list,

Iḿ trying to add the lyric of a folk song to a score.

How do I tell the lyric in wich measure to start?

All the things I found in google, the manuals and snippets always deals
lyrics starting at the same moment of the music.

What I need is

\chords { blah blah blah blah }
\music { blah blah blah blah }
\lyric { R2*15 r4. blah blah blah}

Do I have to break the music block into two blocks?

Can anyone point me where to look for an unswer?

Thanks in advance!

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


Re: Lyric in popular score

2015-09-01 Thread Simon Albrecht

Hello Marcos,

first: welcome to the list!
Second: It almost always helps if you add a compilable, possibly tiny 
example  to your post – thus it 
will be easier a) to understand the problem and b) to give you a solution.
Third general remark: Are you familiar with the Learning Manual? 
 It’s a 
great resource for getting started with LilyPond and covers all the 
basics, also tutoring you on how to use the other manuals – so you 
shouldn’t miss studying that! It’ll be very rewarding.

But now to your question :-)

Am 01.09.2015 um 22:34 schrieb Marcos Press:

Dear list,

Iḿ trying to add the lyric of a folk song to a score.

How do I tell the lyric in wich measure to start?
There are two general ways to enter lyrics: 1) entering them with 
explicit durations and 2) automatically aligning them to a voice through 
\addlyrics or \lyricsto (or \set associatedVoice).


1) Use a skip of the required length to skip the first part of the music.
2) Repeat the skip as many times as there are notes to skip.

Example attached.

You’ll find that with the first method, the syllables are all 
left-aligned to the notes, at least if you use version 2.18.2 or 
earlier. This is a bug fixed only in the more recent development 
versions, so at least for the stable version you’re better off with 
\lyricsto.
In simple setups, \addlyrics may be used as well in place of \new Lyrics 
\lyricsto.



Can anyone point me where to look for an answer?
The Learning Manual has a section on lyrics: 
, but the 
answer to your question is hidden deep in the Notation reference, in 
.


Thanks in advance!

You’re welcome! HTH [Hope that helps].

Simon
\version "2.18.2"

music = \relative {
  c'8 c d c~ c4. r8
  g' e d c~ c4.
}

textExplicit = \lyricmode {
  \skip 1
  And8 now with words. _4.
}

textImplicit = \lyricmode {
  % the number after \repeat unfold is the number of notes skipped
  % the duration of the skip is ignored
  \repeat unfold 4 \skip 1
  And now with words.
}

\score {
  <<
\new Voice = "melody" \music
\new Lyrics \textExplicit
\new Lyrics \lyricsto "melody" \textImplicit
  >>
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: stacking whole notes of different size

2015-09-01 Thread Thomas Morley
2015-09-01 7:21 GMT+02:00 Marc Hohl :
> Am 31.08.2015 um 19:09 schrieb Stephen MacNeil:
>>
>> \override NoteColumn.force-hshift = #.65 works but you would have to
>> create a new voice i believe.
>
>
> Yup, creating a new Voice and applying force-hshift works, but the last
> tie looks quite different than the other ones:
>
> a2. fis4 | a1 |
>   <<
>  { \voiceTwo g1 | fis | e | d~ | 1~ | 1~ | 2  }
>  \new Voice \with { fontSize = #-3 } {
>   \override NoteColumn.force-hshift = #0.15
>   \voiceOne b'1 | h! | cis | d~ | 1~ | 1~ | 2
>  }
>   >>
>
> see attached picture.
>
> Marc
>>
>>
>>
>> Stephen
>>
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>

Hi Marc,

I wrote some test

m =
\relative c' {
  c1~ 1~ 2 s2
  \bar "||"
  c1~ 1~ 1
  \bar "||"
  c2~ 2~ 2~ 2~ 2~ 2
  \bar "||"
}

\transpose c c  \m
\transpose c d  \m
\transpose c e  \m
\transpose c f  \m
\transpose c g  \m
\transpose c a  \m
\transpose c b  \m
\transpose c c' \m
\transpose c d' \m
\transpose c e' \m
\transpose c f' \m
\transpose c g' \m

looks like the Ties are different only, if a whole note and one of a
different value are involved _and_ if they are on a staff-line.
With \voiceOne/Two Ties at the bottom and top-lines are affected as well.
The test-code above does not contain this, you may want to play around
with voiceXxx, though.
png attached.

I've found the `intra-space-threshold' form `Tie.details' can be
tweaked to improve the situation:


\version "2.19.25"

#(define (tie-tweak intra-space-threshold-value)
"
 Set @code{intra-space-threshold} of @code{tie}'s @code{details}-property to
 @var{intra-space-threshold-value}.
 Apply it only if the tied note is on a line.
 Limitation: works for default five-line-staff only.
"
  (lambda (grob)
(let* ((right-bound (ly:spanner-bound grob RIGHT))
   (staff-pos (ly:grob-property right-bound 'staff-position)))
;; apply it only if the right-bound is on a line!!
(if (member staff-pos '(-4 -2 0 2 4)) ;; works only for default-staff-symbol
(begin
  ;; for testing, set color:
  ;(ly:grob-set-property! right-bound 'color red)
  (ly:grob-set-nested-property! grob
'(details intra-space-threshold)
intra-space-threshold-value))) ;; default 1.25
)))


%% TEST-EXAMPLES


m =
\relative c' {
  c1~ 1~ 2 s2
  \bar "||"
  c1~ 1~ 1
  \bar "||"
  c2~ 2~ 2~ 2~ 2~ 2
  \bar "||"
}

\layout { \override Tie.after-line-breaking = #(tie-tweak 0.25) }

\transpose c c  \m
\transpose c d  \m
\transpose c e  \m
\transpose c f  \m
\transpose c g  \m
\transpose c a  \m
\transpose c b  \m
\transpose c c' \m
\transpose c d' \m
\transpose c e' \m
\transpose c f' \m
\transpose c g' \m


%% Your EXAMPLE


\relative c'' {
  a2. fis4 | a1 |
  <<
 { \voiceTwo g1 | fis | e | d~ | 1~ | 1~ | 2  }
 \new Voice
 \with {
   fontSize = #-3
   \override Tie.after-line-breaking = #(tie-tweak 10.25)
 }
 {
  \override NoteColumn.force-hshift = #0.15
  \voiceOne bes'1 | b! | cis | d~ | 1~ | 1~ | 2
 }
  >>
}



I hope it helps a bit, although I've found no convincing general value.
png with your example is attached as well.


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


Re: Lyric in popular score

2015-09-01 Thread Simon Albrecht

I’m working on an answer…

Am 01.09.2015 um 22:34 schrieb Marcos Press:

Dear list,

Iḿ trying to add the lyric of a folk song to a score.

How do I tell the lyric in wich measure to start?

All the things I found in google, the manuals and snippets always 
deals lyrics starting at the same moment of the music.


What I need is

\chords { blah blah blah blah }
\music { blah blah blah blah }
\lyric { R2*15 r4. blah blah blah}

Do I have to break the music block into two blocks?

Can anyone point me where to look for an unswer?

Thanks in advance!

Marcos


___
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


lilypond: merging rests in polyphonic staff

2015-09-01 Thread Martin Lejeune
Hi Everybody,here's a newbie question.I tried to configure "merging automatically" of rests in polyphonic staffs (piano) with a snipped, which I found in the manual.It doesn't work. What's the mistake, any idea?Thanks very much!Cheers MartinPS:My example:

Merging rests.ly
Description: Binary data
\version "2.18.2"\header {  title = "merging rests"}global = { \time 4/4 }Key = { \key g\major }%% -- Piano --rhUpper = \relative c''{  \voiceOne   \Key  R1*4g4 r8 g r2 |}rhLower = \relative c' {  \voiceTwo  \KeyR1*4b4 r8 b r2 |}lhUpper = \relative c' {  \voiceOne   \Key  R1*4 |  g4 r8 g r2 | }lhLower = \relative c {  \voiceTwo  \Key  R1*4|  d4 r8 d r2 | }PianoRH = {  \clef treble  \global  \set Staff.midiInstrument = #"acoustic grand"  <<    \new Voice = "one" \rhUpper    \new Voice = "two" \rhLower  >>}PianoLH = {  \clef bass  \global  \set Staff.midiInstrument = #"acoustic grand"  <<    \new Voice = "one" \lhUpper    \new Voice = "two" \lhLower  >>}piano = {  <<    \set PianoStaff.instrumentName = #"Piano"    \new Staff = "upper" \PianoRH     \new Staff = "lower" \PianoLH     \set Staff.shortInstrumentName = #"p"  >>}\score {    <<   \new PianoStaff = "piano" \piano    >>   \layout {    \context { \Staff \RemoveEmptyStaves }    \context {      \Score      \override BarNumber.padding = #3      skipBars = ##t    }  }}the snippet doesn't work:

Merging rest Snippet.ly
Description: Binary data
\version "2.18.2" \new Score {   <<    \new Staff  <<      s4-\markup{ LilyPond default, rests in both voices. }      \relative c'' { c4 d e r | r2  e4 g | R1 }       \\      \relative c'' { c4 b a r | r a g2   | R1 }    >>           \new Staff \with {      \override RestCollision.positioning-done = #merge-rests-on-positioning    }     <<      s4-\markup{Merge rests as per standard notation practice.}      \relative c'' { c4 d e r | r2  e4 g | R1 }       \\      \relative c'' { c4 b a r | r a g2   | R1 }    >>    }  }  \layout {}  \midi {}}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Gallery of Interesting Music Notation

2015-09-01 Thread Simon Albrecht

Am 01.09.2015 um 09:08 schrieb Trevor Daniels:

Simon Albrecht wrote Tuesday, September 01, 2015 1:58 AM


...  especially with the complex situation
often seen with Chopin).
By this I actually meant the situation of textual critique, which with 
autograph(s) and different first editions is usually very difficult in 
Chopin. But of course it’s apparent that Chopin often uses notation 
which challenges the strict logics of LilyPond…


Yours, Simon

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


Re: Advanced note column handling…

2015-09-01 Thread Michael Gerdau
Dear Simon,

> in a Mendelssohn score I encountered a problem on which I’m biting my
> teeth off. Have a look at the attachments – that’s easier than making
> many words. As you can imagine, the span stem should connect the two
> middle voices and the top two voices not collide (no matter in which
> direction), but I couldn’t yet figure out how: no combination of
> NoteColumn.force-hshift and NoteColumn.ignore-collision that I tried
> gave the intended result.

At least optically I can trick the collision away...
%%
\version "2.19.25"

\score {
  \new PianoStaff \with { \consists #Span_stem_engraver }
  <<
\new Staff
<<
  \repeat tremolo 4 {
a'16 bes'16
  }
  \\
  {
\voiceFour \crossStaff {
  % With this override, the span stem is correct,
  % but the first and second voices collide…
  %\override NoteColumn.ignore-collision = ##t
  \once \override NoteColumn.force-hshift = #0.5 \once \override 
Stem.length = #12 4.
}
  }
>>
\new Staff
<<
  \clef bass
  { \voiceFour \once \override NoteColumn.force-hshift = #1 cis'4. }
  \\
  { \voiceTwo a,2 }
>>
  >>
}
%%

-- 
 Michael Gerdau   email: m...@qata.de
 GPG-keys available on request or at public keyserver

signature.asc
Description: This is a digitally signed message part.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Gallery of Interesting Music Notation

2015-09-01 Thread PMA

Trevor Daniels wrote:

... in the Learning Manual:
http://www.lilypond.org/doc/v2.19/Documentation/learning/real-music-example


Should the LH upper 'D' not be an E-flat?

- PMA

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


Re: Gallery of Interesting Music Notation

2015-09-01 Thread Trevor Daniels

PMA wrote Tuesday, September 01, 2015 1:49 PM


> Trevor Daniels wrote:
>> ... in the Learning Manual:
>> http://www.lilypond.org/doc/v2.19/Documentation/learning/real-music-example
> 
> Should the LH upper 'D' not be an E-flat?

It's debatable, but it isn't in my edition (Augener),
but there is a footnote there which says:

"Klindworth has E flat, explaining that he found it
in an English edition, and he retained it in his,
because he liked the effect.  There is no doubt that
D is correct and I have thus altered it.  X.S."

I guess that makes those three bars all the more
interesting :)

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


Advanced note column handling…

2015-09-01 Thread Simon Albrecht

Hello,

in a Mendelssohn score I encountered a problem on which I’m biting my 
teeth off. Have a look at the attachments – that’s easier than making 
many words. As you can imagine, the span stem should connect the two 
middle voices and the top two voices not collide (no matter in which 
direction), but I couldn’t yet figure out how: no combination of 
NoteColumn.force-hshift and NoteColumn.ignore-collision that I tried 
gave the intended result.

‘Is there, is there balm in Gilead?’ :-)

Yours, Simon
\version "2.19.25"

\score {
  \new PianoStaff \with { \consists #Span_stem_engraver }
  <<
\new Staff
<<
  \repeat tremolo 4 {
\once\override NoteColumn.force-hshift = #-1
a'16 bes'16
  }
  \\
  {
\voiceFour \crossStaff {
  % With this override, the span stem is correct,
  % but the first and second voices collide…
  %\once\override NoteColumn.ignore-collision = ##t
  4.
}
  }
>>
\new Staff
<<
  \clef bass
  { \voiceFour cis'4. }
  \\
  { \voiceTwo a,2 }
>>
  >>
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user