Re: Line-breaking with non-aligned barlines

2018-10-27 Thread Thomas Morley
Am Fr., 26. Okt. 2018 um 23:52 Uhr schrieb David Sumbler :


> But as things are the break here is still unsatisfactory
> because the semiquaver just after the break has 2 long beams stretching
> back to the start of the line, whereas one would ideally want 1 long
> beam and a short one.  I haven't managed to figure out how this can be
> changed: any ideas would be welcome.

A minimal would be:

\paper { indent = 0 ragged-right = ##t }

{
\override Beam.breakable = ##t
s2. s8
c'8[
\break
c'16]
}

Not sure I'd call it a bug. But I'd love to have a method to change
this behaviour easily, currently there's none.
Though, you can dive into Beam deeply and reset 'beam-segments with
custom values. Leading to:

\version "2.19.81"

\paper { indent = 0 ragged-right = ##t }

shortenBrokenBeams =
#(define-music-function (amount)(number-list?)
"
 Shorten broken Beams after line-break.

 We get the 'beam-segments, rebuilding it modified.
 The 'beam-segments-property is an alist of type:
'(((vertical-count . 0) (horizontal 3.865018 . 5.93))
  ((vertical-count . 1) (horizontal 3.865018 . 5.93)))

`vertical-count' is the beam-count.
`horizontal' is the X-extent relative to 'System's 'line-width.

 Applying it only if the left-bound of the 'Beam is 'NonMusicalPaperColumn,
 i.e after a line-break.
 Affecting a broken Beam at line-end is possible, too, but not yet coded.
"
#{
  \override Beam.beam-segments =
#(lambda (grob)
   (let* ((beam-segments (ly:beam::calc-beam-segments grob))
  (rebuild-beam-segments-proc
(lambda (vertical-count horizontal shorten)
  (cons
(cons 'vertical-count vertical-count)
(list
  (cons 'horizontal
(cons (- (car horizontal) shorten)
  (cdr horizontal

   (if (eq? (grob::name (ly:spanner-bound grob LEFT))
'NonMusicalPaperColumn)
   (begin
  (let* ((horizontals
   (map
 (lambda (x) (assoc-get 'horizontal x))
 beam-segments))
 (vertical-counts
   (map
 (lambda (x) (assoc-get 'vertical-count x))
 beam-segments))
 (new-beam-segments
   (map
 rebuild-beam-segments-proc
 vertical-counts horizontals amount)))

    If you want to compare the default and the changed
    settings, uncomment the following lines.
   ;(let* ((new-horizontals
   ; (map
   ;   (lambda (x) (assoc-get 'horizontal x))
   ;   new-beam-segments)))
   ; (display "\n\thorizontals \t")(write horizontals)
   ; (display "\n\tnew-horizontals ")(write new-horizontals))
  new-beam-segments))
   beam-segments)))
#})


{
\override Beam.breakable = ##t
s2. s8
\shortenBrokenBeams #'(-2.239194 0)
c'8[
\break
c'16]
}


HTH,
  Harm

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


Re: interlocking/overlapping HorizontalBracket

2018-10-27 Thread Thomas Morley
Am So., 28. Okt. 2018 um 00:28 Uhr schrieb Kieren MacMillan
:
>
> Hi Harm,
>
> > your example works here out of the box and without any problem.
> > So I don't understand the problem.
>
> They’re nested, not interlocking/overlapping (as I want them to be).
> Even though I set the ids to be "interlocking": 1start, 2start, 1end, 2end.
>
> Cheers,
> K.

Ah, I overlooked that.

I don't think looking at spanner-id is implemented for HorizontalBracket.

Ofcourse you could use a second Voice.
Or use a second Voice like below, although very cumbersome.

\version "2.19.80"
\layout { \context { \Voice \consists "Horizontal_bracket_engraver" } }
\new Staff
<<
%% Initiate Voices and keep them alive
\new Voice = "1"
  s1*4
\new Voice = "2"
  \with { \override HorizontalBracket.staff-padding = 3 }
  s1*4
%% Distribute HorizontalBrackets to the different voices
\context Voice = "1"
\fixed c'' {
  c1\startGroup
  \context Voice = "2" { d\startGroup }
  e\stopGroup
  \context Voice = "2" { f\stopGroup }
}
>>

I'd love someone would demonstrate a better way.


Cheers,
  Harm

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


Re: interlocking/overlapping HorizontalBracket

2018-10-27 Thread Kieren MacMillan
Hi Harm,

> your example works here out of the box and without any problem.
> So I don't understand the problem.

They’re nested, not interlocking/overlapping (as I want them to be).
Even though I set the ids to be "interlocking": 1start, 2start, 1end, 2end.

Cheers,
K.


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: interlocking/overlapping HorizontalBracket

2018-10-27 Thread Thomas Morley
Am So., 28. Okt. 2018 um 00:04 Uhr schrieb Kieren MacMillan
:
>
> Hi all,
>
> I’d like to use spanner-id (or similar) to interlock/overlap 
> HorizontalBracket spanners.
> Is this possible?
>
> Thanks,
> Kieren.
>
> %%%  MWE BEGINS
> \version "2.19.80"
> \layout { \context { \Voice \consists "Horizontal_bracket_engraver" } }
> \fixed c'' { c1\=1\startGroup c\=2\startGroup c\=1\stopGroup c\=2\stopGroup }
> %%%  MWE BEGINS

Hi Kieren,

your example works here out of the box and without any problem.
So I don't understand the problem.

Cheers,
  Harm

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


interlocking/overlapping HorizontalBracket

2018-10-27 Thread Kieren MacMillan
Hi all,

I’d like to use spanner-id (or similar) to interlock/overlap HorizontalBracket 
spanners.
Is this possible?

Thanks,
Kieren.

%%%  MWE BEGINS
\version "2.19.80"
\layout { \context { \Voice \consists "Horizontal_bracket_engraver" } }
\fixed c'' { c1\=1\startGroup c\=2\startGroup c\=1\stopGroup c\=2\stopGroup }
%%%  MWE BEGINS


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: purple highlight in Frescobaldi

2018-10-27 Thread Joseph Austin
Thanks, Andrew; issue solved.

> On Oct 27, 2018, at 2:59 AM, lilypond-user-requ...@gnu.org wrote:
> 
> From: Andrew Bernard  >
> Subject: Re: purple highlight in Frescobaldi
> 
> Hello Joseph,
> 
> Something that tricked me for a long time also. Many people don't realize
> F. has a 'mark current line' function,
> 
> Andrew

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


Re: Complex --evaluate command line option

2018-10-27 Thread Hans Åberg

> On 27 Oct 2018, at 10:29, Jacques Menu  wrote:
> 
>> Le 26 oct. 2018 à 18:42, Hans Åberg  a écrit :
>> 
>> The devel is in the details. :-)
> 
> That’s an excellent one!

Thanks! Something to watch out for!



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


Re: Complex --evaluate command line option

2018-10-27 Thread Jacques Menu


> Le 26 oct. 2018 à 18:42, Hans Åberg  a écrit :
> 
> The devel is in the details. :-)

That’s an excellent one!

JM


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


Re: purple highlight in Frescobaldi

2018-10-27 Thread Urs Liska



Am 27. Oktober 2018 08:59:30 MESZ schrieb Andrew Bernard 
:
>Hello Joseph,
>
>Something that tricked me for a long time also. Many people don't
>realize
>F. has a 'mark current line' function, accessible from the View menu,
>or
>Ctrl-B by default. It's a useful feature for bookmarking lines of
>interest.
>You can have more than one mark. When you move off the line, it's
>highlighted in purple, just as you say. There is a 'clear all marks'
>function int he View menu as well.
>
>Once you know about this, it's really useful, I find.

It's easy to hit ctrl-b instead of ctrl-m, for example...

>
>Andrew

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


Re: purple highlight in Frescobaldi

2018-10-27 Thread Andrew Bernard
Hello Joseph,

Something that tricked me for a long time also. Many people don't realize
F. has a 'mark current line' function, accessible from the View menu, or
Ctrl-B by default. It's a useful feature for bookmarking lines of interest.
You can have more than one mark. When you move off the line, it's
highlighted in purple, just as you say. There is a 'clear all marks'
function int he View menu as well.

Once you know about this, it's really useful, I find.

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