Re: Line-breaking with non-aligned barlines - again!

2018-12-11 Thread David Sumbler


-Original Message-
From: David Sumbler 
Reply-To: da...@aeolia.co.uk
To: Thomas Morley 
CC: lilypond-user 
Subject: Re: Line-breaking with non-aligned barlines - again!
Date: Mon, 10 Dec 2018 22:58:58 +

-Original Message-
From: Thomas Morley 
To: David Sumbler 
CC: lilypond-user 
Subject: Re: Line-breaking with non-aligned barlines - again!
Date: Mon, 10 Dec 2018 22:00:51 +0100

Well, you could try like below, but it has it's own short-comings:

\version "2.19.82"


\paper {
  ragged-right = ##f
}

harps = {
  \time 2/4
  \scaleDurations 8/11 {
b16[ b b b] b[ b b b] \bar "|" \noBreak b[ b b \bar ""
  }
  \noBreak
  \override Staff.TimeSignature.stencil = ##f
  \time 3/8
  \scaleDurations 3/4 {
b16] b[ b b b] \bar "|" \noBreak b[ b b \bar ""
  }
  \noBreak
  \time 5/8
  \scaleDurations 10/13 {
b16] b[ b b b] \bar "|" \noBreak  b[ b b b] b[ b b b]
  }
}

\score { \new Staff { \time 2/4 \repeat unfold 32 b16 } }

\score { \new Staff { \harps } }

\score {
  <<
\new Staff { \harps }
\new Staff {
  \time 2/4 b4 b |
  \time 3/8 b4 b8 |
  \time 5/8 b4 b b8 |
}
  >>
  \layout {
\context {
  \Score
  \remove "Timing_translator"
  \remove "Default_bar_line_engraver"
  %% !
  \override SpacingSpanner.strict-note-spacing = ##t
}
\context {
  \Staff
  \consists "Timing_translator"
  \consists "Default_bar_line_engraver"
}
  }
}

I'm not really convinced, thus I didn't post this before...

Cheers,
  Harm


I was very excited when I saw the output of the above with its one
extra line.  Although the upper line looked slightly oddly spaced, it
would certainly be acceptable in the full score.

Unfortunately the real orchestral parts are considerably more
complicated than the line of crotchets and quavers I used in the
example, and the short-comings of strict-note-spacing became clear:
notes in the orchestra were actually being printed over the time
signatures.

I wondered what would happen if I removed SpacingSpanner from the Score
context and added it to Staff.  Then, just in the harpsichord part, I
could add 

\override Staff.SpacingSpanner.strict-note-spacing = ##t

at the relevant point.  Sure enough, the orchestra parts were correctly
lined up just as they normally would be; but unfortunately the
harpsichord part was also still spaced to conform with them, just as in
my original version.

But thanks for the suggestion - and it has also directed my attention
to some parts of the Lilypond "engine" that I didn't know about
previously.

David

-

Having slept on this, I came up with a new idea.  I have changed the
crotchets and quavers in the lower part of the example into
semiquavers, to illustrate the sort of problem that occurs in the
"orchestra" parts using strict-note-spacing.  Then I used
\scaleDurations to reposition things in that line too.  This is the
result:

\version "2.19.82"

\paper {
  ragged-right = ##f
}

harps = {
  \time 2/4
  \scaleDurations 8/11 {
b16[ b b b] b[ b b b] \bar "|" \noBreak b[ b b \bar ""
 }
\noBreak
\override Staff.TimeSignature.stencil = ##f
\time 3/8
\scaleDurations 3/4 {
  b16] b[ b b b] \bar "|" \noBreak b[ b b \bar ""
}
\noBreak
\time 5/8
\scaleDurations 10/13 {
  b16] b[ b b b] \bar "|" \noBreak  b[ b b b] b[ b b b]
  }
}

\score { \new Staff { \time 2/4 \repeat unfold 32 b16 } }

\score { \new Staff { \harps } }

\score {
  <<
\new Staff { \harps }
\new Staff {
  \time 2/4 \scaleDurations 11/12 { b16[ b b b] b[ b b }
b16*19/12]  |
  \time 3/8 \scaleDurations 8/9 { b16[ b b b b } b16*14/9] |
  \time 5/8 b16[ b b b b b] b[ b b b] |
}
  >>
  \layout {
\context {
  \Score
  \remove "Timing_translator"
  \remove "Default_bar_line_engraver"
  \override SpacingSpanner.strict-note-spacing = ##t
}
\context {
  \Staff
  \consists "Timing_translator"
  \consists "Default_bar_line_engraver"
}
  }
}

This looks pretty good and the arithmetic is simple, although it could
be further tweaked to make it look even better.

This may well be the answer I need for my full score.  But now that you
have introduced me to "strict-note-spacing" etc., I am again wondering
whether there might perhaps be a way of getting Lilypond to make 2
separate calculations of spacing, one for the harpsichord and another
for the rest of the orchestra; or, in the case of my small example, one
for the top stave and one for the bottom.  Perhaps this can be done by
modifying the stavesFound variable, but I have little idea of how to go
about this.

David



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


URL in footer

2018-12-11 Thread lily-user


Hi Folks,
   How can I incorporate a url in markup, so it becomes a clickable
   link in the lilypond-generated PDF?  For example, to provide a link
   to the CC licence page, or to a page with an Urtext?

Peter C

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


Re: URL in footer

2018-12-11 Thread Sam Bivens

Hi Peter,

How about

\with-url #"http://www.lilypond.org"; "Lilypond"

Enjoy!

Sam


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


Re: URL in footer

2018-12-11 Thread Noeck
Hi,

you are looking for \with-url (it is a bit hidden under the section
“Graphic”):

http://lilypond.org/doc/v2.18/Documentation/notation/graphic#index-_005cwith_002durl-1

  \with-url #"http://lilypond.org/"; "LilyPond"

Best,
Joram

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


Re: URL in footer

2018-12-11 Thread Peter Chubb
> "Noeck" == Noeck   writes:

Noeck> Hi, you are looking for \with-url (it is a bit hidden under the
Noeck> section “Graphic”):

Thanks!  I was searching through the "text" section and missed this.

-- 
Dr Peter Chubb Tel: +61 2 9490 5852  http://ts.data61.csiro.au/
Trustworthy Systems Group Data61, CSIRO (formerly NICTA)

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


score-lines-markup-list in Lyrics?

2018-12-11 Thread Thomas Morley
Hi all,

this works:

\version "2.19.82"

tst = \markuplist \italic #(make-list 2 "buzz")

<<
  \new Staff { R1 \break R1 }
  \new Lyrics \lyricmode { $@tst }
>>

This doesn't work:

tstA =
\markuplist \score-lines { \repeat unfold 80 a'16 }

<<
  \new Staff { R1 \break R1 }
  \new Lyrics \lyricmode { $@tstA }
>>


I have some vague thoughts why it refuses to work, though I can't
really word them ...

Anyway, is it somehow doable?


Cheers,
  Harm

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


Re: lilypond.org Productions page

2018-12-11 Thread Paul Morris

On 12/10/18 5:07 PM, Federico Bruni wrote:


I've just remembered another one, Paul Morris' Clairnote sheets:
https://clairnote.org/sheet-music/


Oh, I like that one! :-)

This free "Anthology of Melodies for Sight-Singing" would be good to 
include:

http://www.lightandmatter.com/sight/sight.html

-Paul



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


Re: URL in footer

2018-12-11 Thread Federico Bruni




Il giorno mer 12 dic 2018 alle 0:32, Peter Chubb 
 ha scritto:

 "Noeck" == Noeck   writes:


Noeck> Hi, you are looking for \with-url (it is a bit hidden under the
Noeck> section “Graphic”):

Thanks!  I was searching through the "text" section and missed this.



I always recommend starting a search from the Notation Reference index:
http://lilypond.org/doc/v2.19/Documentation/notation/lilypond-index.html

If you search (Ctrl+F) "URL" you'll find this direct link:
http://lilypond.org/doc/v2.19/Documentation/notation/graphic#index-inserting-URL-links-into-text




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