Flared hairpin across line break

2019-03-10 Thread Andrew Bernard
I'd like to have flared hairpins that only flare at the terminating end
after a line break.

The following example shows that using the flared hairpin stencil in a
simple minded way causes it to flare at the first break, which I want to
not have.

Is there some magic that can be done with alter-broken?

Andrew

%==
\version "2.19.82"

{
  \time 2/4
  c''2
  \once \override Hairpin.stencil = #flared-hairpin
  c''\<
  \break
  c''2 c''\!
}

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


Re: Hairpin with centered text

2019-03-10 Thread Andrew Bernard
Hi Harm,

Thanks for this. Brilliant as always. This works fine in the context of my
complicated string quartet score, where almost anything breaks it! So
that's a good sign, I'd say this is ready to replace LSR 233. Your code is
clearer and more compact, and as you say, does not struggle against the
defaults.

As for having the text inside the hairpin, this only occurs in the
handwritten MS I an engraving from, and it's not at all necessary. It
creates far too many problems, I know, and does not add any semantic extras.

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


Re: Change stanza formatting

2019-03-10 Thread David F.


On Mar 1, 2019, at 6:21 PM, Aaron Hill  wrote:

> On 2019-03-01 10:20 am, David F. wrote:
>> There’s one small issue that I noticed.  I’m engraving music with
>> simultaneous bilingual lyrics and I’m using the stanza number to print
>> the language name. Since the language name is almost always longer
>> than the first syllable, it is making that first note column wider
>> than it would be without the stanza number. Is there a way to keep the
>> sanza number from influencing the width of the note column?
>> (On the one hand, the extra space isn’t necessarily a big deal.  But
>> the whole reason I want to print the language names on top of the
>> lyrics instead of to the left of them is that I’ve run into cases
>> where the extra text in the stanza number is preventing me from
>> getting everything I want onto the first line of music.)
> 
> Would it work to use abbreviations for the languages?  (e.g. "E:" and "F:" 
> for "English" and "Français".)  Unless your first LyricText is particularly 
> wide, there should be enough room for such an abbreviation as a traditional 
> StanzaNumber without the need to play around with properties.

That’s a great suggestion, but English and French are just what were in the 
snippet I got from the Lilypond manual.  We’re actually singing in English and 
Español.  So I could do “Eng.” and “Esp.”, but I’m worried that abbreviations 
would be more confusing than helpful.

> As an alternative, you could see if right-aligning the StanzaNumbers works 
> for you.  Since this means the LyricTexts and StanzaNumbers share a common 
> right extent, there should be no additional space added before the next 
> syllable:
> 
> 
> \version "2.19.82"
> 
> \layout { \context { \Lyrics
>  \override StanzaNumber.direction = #UP
>  \override StanzaNumber.side-axis = #Y
>  \override StanzaNumber.padding = #0.2
>  \override StanzaNumber.X-offset = #(lambda (grob)
>(define (grob-list-property glst prop)
>  (map (lambda (g) (ly:grob-property g prop)) glst))
>(let* ((sse (ly:grob-object grob 'side-support-elements))
>   (lyrics (cdr (ly:grob-array->list sse)))
>   (lyrics-extents (grob-list-property lyrics 'X-extent))
>   (lyrics-widths (map interval-length lyrics-extents))
>   (lyrics-offsets (grob-list-property lyrics 'X-offset))
>   (lyrics-rights (map + lyrics-offsets lyrics-widths))
>   (lyrics-right (apply max lyrics-rights))
>   (grob-extent (ly:grob-property grob 'X-extent))
>   (grob-width (interval-length grob-extent)))
> (- lyrics-right grob-width)))
> } }
> 
> \new Voice \relative { \time 3/4 g'2 e4 a2 f4 g2. }
> \addlyrics { \set stanza = #"English" Hi, my name is Bert. }
> \addlyrics { \set stanza =  #"Français" Oooh, ché -- ri, je t'aime }
> 
> 
> NOTE: The code above considers all of the LyricTexts in the column, not just 
> the current line.  As a result, there is a consistent right-alignment of the 
> StanzaNumbers based on the widest of the LyricTexts.

I had to add \override StanzaNumber.Y-offset = 
#ly:side-position-interface::y-aligned-side in order for the stanza text to not 
overlap the lyrics.  And I did’t like the way it looked at first.  But it’s 
grown on me.  I’ll probably play with it some more.

> Assuming you want left-alignment without the added space to the right, you 
> will probably have to resort to altering the actual extents of the 
> StanzaNumber:
> 
> 
> \version "2.19.82"
> 
> #(define (interval-max . args) (reduce interval-union empty-interval args))
> #(define ((side-support-property func prop) grob)
>  (let* ((sse (ly:grob-object grob 'side-support-elements))
> (elems (cdr (ly:grob-array->list sse)))
> (props (map (lambda (g) (ly:grob-property g prop)) elems)))
>(apply func props)))
> 
> \layout { \context { \Lyrics
>  \override StanzaNumber.direction = #UP
>  \override StanzaNumber.side-axis = #Y
>  \override StanzaNumber.padding = #0.2
>  \override StanzaNumber.X-offset = #(side-support-property min 'X-offset)
>  \override StanzaNumber.X-extent = #(side-support-property interval-max 
> 'X-extent)
>  \override StanzaNumber.Y-offset = #ly:side-position-interface::y-aligned-side
> } }
> 
> \new Voice \relative { \time 3/4 g'2 c,4 a'2 f4 g2. }
> \addlyrics { \set stanza = #"English" Hi, my name is Bert. }
> \addlyrics { \set stanza =  #"Français" Oooh, ché -- ri, je t'aime }
> 
> 
> But be advised this approach can generate overlapping ink.  In the example 
> above, I lowered the E in the first measure to middle C to demonstrate this.  
> The collision occurs because we told LilyPond that the StanzaNumber only 
> extended as far to the right as the supporting LyricTexts.

This does what I was looking for.  Thanks for all your help!  I see your point 
about overlapping ink.  I suspect that in practice it won’t be much of an 
issue.  And I can always set the StanzaNumber.Y-extent to put some vertical 
padding between the Stanza and what ever 

Re: lilypond-user Digest, Vol 196, Issue 33

2019-03-10 Thread J Martin Rushton


On 10/03/2019 19:53, Aaron Hill wrote:
> On 2019-03-10 9:46 am, Joseph Austin wrote:
>> CANNOT ACCESS SERVER
>> 
>> http://lilypond.org/doc/v2.18/Documentation/notation/line-breaking
>>
>> Internal Server Error
>>
>> The server encountered an internal error or misconfiguration and was
>> unable to complete your request.
>>
>> Please contact the server administrator at [no address given] to
>> inform them of the time this error occurred, and the actions you
>> performed just before this error.
>>
>> More information about this error may be available in the server error
>> log.
>>
>> Apache/2.4.18 (Ubuntu) Server at lilypond.org Port 80
>> 
>>
>> Not Found
>>
>> The requested URL
>> /share/doc/lilypond/html/offline-root/Documentation/notation/other-_005cpaper-variables.cs.html
>>
>> was not found on this server.
>>
>> Apache/2.2.22 (Debian) Server at www.omet.ca Port 80
>> =
>> MAR 10 2019 12:40P EDT.
>> Trying to link to Lilypond Notation Reference
> 
> For what its worth, that link as well as the rest of the site appears to
> be working for me.  Mayhaps the issue was resolved?
> 
> -- Aaron Hill
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
When Joseph posted the link it failed for me exactly as he said, as did
 http://lilypond.org.  Aaron, as you have noticed it is working now.  I
therefore agree it was probably an issue at the server end that has been
fixed.

-- 
J Martin Rushton MBCS



signature.asc
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-user Digest, Vol 196, Issue 33

2019-03-10 Thread Aaron Hill

On 2019-03-10 9:46 am, Joseph Austin wrote:

CANNOT ACCESS SERVER

http://lilypond.org/doc/v2.18/Documentation/notation/line-breaking

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator at [no address given] to
inform them of the time this error occurred, and the actions you
performed just before this error.

More information about this error may be available in the server error 
log.


Apache/2.4.18 (Ubuntu) Server at lilypond.org Port 80


Not Found

The requested URL
/share/doc/lilypond/html/offline-root/Documentation/notation/other-_005cpaper-variables.cs.html
was not found on this server.

Apache/2.2.22 (Debian) Server at www.omet.ca Port 80
=
MAR 10 2019 12:40P EDT.
Trying to link to Lilypond Notation Reference


For what its worth, that link as well as the rest of the site appears to 
be working for me.  Mayhaps the issue was resolved?


-- Aaron Hill

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


Re: lilypond-user Digest, Vol 196, Issue 33

2019-03-10 Thread Joseph Austin
CANNOT ACCESS SERVER

http://lilypond.org/doc/v2.18/Documentation/notation/line-breaking

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to 
complete your request.

Please contact the server administrator at [no address given] to inform them of 
the time this error occurred, and the actions you performed just before this 
error.

More information about this error may be available in the server error log.

Apache/2.4.18 (Ubuntu) Server at lilypond.org Port 80


Not Found

The requested URL 
/share/doc/lilypond/html/offline-root/Documentation/notation/other-_005cpaper-variables.cs.html
 was not found on this server.

Apache/2.2.22 (Debian) Server at www.omet.ca Port 80
=
MAR 10 2019 12:40P EDT.
Trying to link to Lilypond Notation Reference
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Hairpin with centered text

2019-03-10 Thread Thomas Morley
Hi Andrew,

Am Sa., 9. März 2019 um 02:54 Uhr schrieb Andrew Bernard
:
>
> LSR 233 is useful. But when used across a line break, the hairpin falls short 
> of the length of a normal hairpin. This is the case whether to-barline is 
> turned on or off. I'd like it to be the same length as the unadorned hairpin.
>
> Can anybody assist?

I've the impression
http://lsr.di.unimi.it/LSR/Item?id=233
fights defaults, my approach tries to use them.
Please test, if it proofs to be better I'd change the LSR-snippet.

>
> [For extra credit, would it be possible to have the text inside the hairpin? 
> I know that might be complicated - I suppose the hairpin would have to be 
> drawn manually.]

Well, the text is usually too tall to fit inside a Hairpin. One could
use a (very) small fontsize or widen the Hairpin.
Without having tried any of this I suspect ugly output.
Do you have images from nice printings?

Here my code:

%% works with
\version "2.18.2"

\paper { ragged-right = ##t }

hairpinWithCenteredText =
#(define-music-function (parser location text) (markup?)
#{
  \once \override Hairpin.stencil =
#(lambda (grob)
   (let* ((stencil (ly:hairpin::print grob))
  (stencil-x-ext (ly:stencil-extent stencil X))
  (txt-stil (grob-interpret-markup grob text))
  ;; Get 'direction from DynamicLineSpanner
  (par-y (ly:grob-parent grob Y))
  (dir (ly:grob-property par-y 'direction))
  (new-stencil
(ly:stencil-combine-at-edge
  stencil
  Y dir
  (ly:stencil-translate-axis
(ly:stencil-aligned-to txt-stil X CENTER)
(interval-center stencil-x-ext)
X)
  ;; TODO make padding settable?
  ;;  For now zero is hardcoded
  0)))
 (ly:grob-set-property! grob 'Y-offset 0)
 new-stencil))
#})

treble = {
  \time 2/4
  %\override Hairpin.to-barline = ##f
  \hairpinWithCenteredText \markup { \italic "moltissimo" }
  c''1
\p
\<
  c''\break
  c''
  c''\break
  c''
  c''
\p
\!
}

\score {
  \new Staff {
\treble
  }

  \layout {}
}

HTH,
  Harm

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


Re: lilypond.org error 500

2019-03-10 Thread bart deruyter
I've got the same thing here in Belgium.
https://esmiltania.be
On Twitter 
On Google+ 


Op zo 10 mrt. 2019 om 09:25 schreef Andrew Bernard :

> Also seeing it here in Australia. Error 500.
>
> On Sun, 10 Mar 2019 at 19:02, Saul Tobin 
> wrote:
>
>> Currently getting Internal Server Error 500 on Lilypond.org. Also looks
>> like the site is only on http, no https.
>>
>> ___
> 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: lilypond.org error 500

2019-03-10 Thread Andrew Bernard
Also seeing it here in Australia. Error 500.

On Sun, 10 Mar 2019 at 19:02, Saul Tobin  wrote:

> Currently getting Internal Server Error 500 on Lilypond.org. Also looks
> like the site is only on http, no https.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


lilypond.org error 500

2019-03-10 Thread Saul Tobin
Currently getting Internal Server Error 500 on Lilypond.org. Also looks
like the site is only on http, no https.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user