Re: Differing header position depending on tallest letter

2017-03-10 Thread Alexander Kobel
Hi Peter,

On 2017-03-09 17:32, Peter Crighton wrote:
> Hello all,
> 
> I noticed that the title (and other header types) doesn’t get vertically 
> positioned according to its baseline (which would make sense to me), but to 
> its cap height or ascender height.

According to NR 4.1.4 
,
 the reference point of top-level markups is indeed their highest point, not 
the baseline (as opposed to, e.g., Lyrics lines).

> So if there are several scores with titles with different maximum letter 
> heights, the scores will begin at different vertical positions.

Yes, unfortunately. If you want consistent spacing (assuming that you don't put 
anything fancy in your titles, such as graphics or multi-line stuff, and that 
you use a font with sane glyph heights), you should be fine with an additional 
\strut in the title (see 
).

  title = \markup \concat { \strut "Title" }
  title = \markup \concat { \strut "e" }

You could also adjust bookTitleMarkup or scoreTitleMarkup (see NR 3.2.2 

 and /usr/share/lilypond/*/ly/titling-init.ly or the equivalent on your system 
for the default) to take that into account; e.g., change the line

  \fromproperty #'header:title
to
  \concat { \strut \fromproperty #'header:title }

in the definition of bookTitleMarkup.


HTH,
Alexander



smime.p7s
Description: S/MIME Cryptographic Signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: ANN: Frescobaldi 2.20.0, Frescobaldi 3.0.0, python-ly 0.9.5

2017-03-10 Thread Klaus Blum

Hi Jones,

Am 09.03.2017 um 08:58 schrieb 19joh...@gmail.com:
Please install the Visual Studio 2015 Redistribution pack which you 
can download here: 
https://www.microsoft.com/en-US/download/details.aspx?id=48145
Make sure you download the x86 Version. This should fix the problem. I 
will integrate the installation of this package in the next setup version


Cheers
Jones



thanks for your information. Unfortunately, it didn't fix the problem.
The installation program offered to deinstall or repair-install the 
Redistribution pack, so it must already have been on my system.
I've tried to repair it (no luck), afterwards to deinstall and 
re-install it, and finally even deinstalled the x64 version that was on 
my system as well.

The problem with frescobaldi persists.

Is there a way to check if all components of the Redistribution pack are 
correctly available to the system?


Cheers,
Klaus

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


Re: Differing header position depending on tallest letter

2017-03-10 Thread Peter Crighton
Hmm, that doesn’t seem to work.
I didn’t know about \strut before, and I’m not sure if I
correctly understand how it works, but doesn’t the size of the box depend
on the whitespace character and not on the tallest character? I don’t know
which height, if any, a whitespace character in a font normally has, but at
least with LilyPond’s standard text font and with Gentium Book Basic, which
is the one I’m currently using, it doesn’t work.


--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de

2017-03-10 12:27 GMT+01:00 Alexander Kobel :

> Hi Peter,
>
> On 2017-03-09 17:32, Peter Crighton wrote:
> > Hello all,
> >
> > I noticed that the title (and other header types) doesn’t get vertically
> positioned according to its baseline (which would make sense to me), but to
> its cap height or ascender height.
>
> According to NR 4.1.4  19/Documentation/notation/flexible-vertical-spacing-
> paper-variables#structure-of-flexible-vertical-spacing-alists>, the
> reference point of top-level markups is indeed their highest point, not the
> baseline (as opposed to, e.g., Lyrics lines).
>
> > So if there are several scores with titles with different maximum letter
> heights, the scores will begin at different vertical positions.
>
> Yes, unfortunately. If you want consistent spacing (assuming that you
> don't put anything fancy in your titles, such as graphics or multi-line
> stuff, and that you use a font with sane glyph heights), you should be fine
> with an additional \strut in the title (see  19/Documentation/notation/other#index-_005cstrut-1>).
>
>   title = \markup \concat { \strut "Title" }
>   title = \markup \concat { \strut "e" }
>
> You could also adjust bookTitleMarkup or scoreTitleMarkup (see NR 3.2.2 <
> http://lilypond.org/doc/v2.19/Documentation/notation/
> custom-titles-headers-and-footers#custom-layout-for-titles> and
> /usr/share/lilypond/*/ly/titling-init.ly or the equivalent on your system
> for the default) to take that into account; e.g., change the line
>
>   \fromproperty #'header:title
> to
>   \concat { \strut \fromproperty #'header:title }
>
> in the definition of bookTitleMarkup.
>
>
> HTH,
> Alexander
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Push note column to the right when it has a broken tie/slur attached

2017-03-10 Thread Urs Liska
Hi all,

Is it possible to push the first note column of a system to the right
when it ends a tie or slur?

I'm working on a custom stencil for ties and slurs and in this situation
it needs much space between the Time/key/clef and the first note. I
assume that when overriding the stencil I can't move the note column
anymore, is that correct?

So is there another option to determine that a note column is

* the first in a line and
* ends a broken tie/slur

and still being able to move it?

TIA
Urs


-- 
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: Differing header position depending on tallest letter

2017-03-10 Thread Robin Bannister

Peter Crighton wrote:

Hmm, that doesn’t seem to work.
I didn’t know about \strut before, and I’m not sure if I
correctly understand how it works, but doesn’t the size of the box depend
on the whitespace character and not on the tallest character?



I once solved a lyrics spacing problem using a strut of my own making.
Something like:
\markup \transparent \huge "|"


Cheers,
Robin


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


Re: Differing header position depending on tallest letter

2017-03-10 Thread Peter Crighton
2017-03-10 20:01 GMT+01:00 Robin Bannister :

> I once solved a lyrics spacing problem using a strut of my own making.
> Something like:
> \markup \transparent \huge "|"


Yes, this would indeed work, but the approach is quite ugly:

\header {
  title = \markup \overlay {
\transparent \fontsize #1 "|"
"Title"
  }
}

Also, the PDF file’s title would be “| Title”, which is annoying (but could
probably be avoided by adjusting \bookTitleMarkup).

I don’t suppose there is a way to change a markup’s reference point to
being the baseline?


--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Differing header position depending on tallest letter

2017-03-10 Thread Kieren MacMillan
Hi Peter,

> this would indeed work, but the approach is quite ugly:

You should really handle the presentation manipulation in the presentation 
layer, not the content layer:

\version "2.19.54"

\paper {
  scoreTitleMarkup = \markup {
\combine \fromproperty #'header:title \transparent "Tj"
  }
}

\header {
  title = "Title"
}

{ c'4 }

Hope this helps!
Kieren.

p.s.

> I don’t suppose there is a way to change a markup’s reference point to being 
> the baseline?

This is a long-standing request of mine.  =)


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: Differing header position depending on tallest letter

2017-03-10 Thread David Kastrup
Kieren MacMillan  writes:

> Hi Peter,
>
>> this would indeed work, but the approach is quite ugly:
>
> You should really handle the presentation manipulation in the presentation 
> layer, not the content layer:
>
> \version "2.19.54"
>
> \paper {
>   scoreTitleMarkup = \markup {
> \combine \fromproperty #'header:title \transparent "Tj"
>   }
> }
>
> \header {
>   title = "Title"
> }
>
> { c'4 }
>
> Hope this helps!
> Kieren.
>
> p.s.
>
>> I don’t suppose there is a way to change a markup’s reference point
>> to being the baseline?
>
> This is a long-standing request of mine.  =)

A markup's reference point _is_ the baseline.  It's more a question of
what to do with _stacks_ of markups because a single reference point
cannot simultaneously represent the height of the top line and the depth
of the bottom line.

-- 
David Kastrup

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


Re: Differing header position depending on tallest letter

2017-03-10 Thread Kieren MacMillan
Hi David,

> A markup's reference point _is_ the baseline.

Really??

> It's more a question of what to do with _stacks_ of markups

These aren’t stacked:

\version "2.19.54"

{
\override Score.RehearsalMark.extra-spacing-width = #'(-0.5 . 1)
\override Score.RehearsalMark.self-alignment-X = #LEFT
\mark "ALL CAPS"
c''1
\mark "jumping"
c''1
\mark "the big dig"
c''1
}

So why aren’t they baseline aligned?

Thanks,
Kieren.


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: Differing header position depending on tallest letter

2017-03-10 Thread David Kastrup
Kieren MacMillan  writes:

> Hi David,
>
>> A markup's reference point _is_ the baseline.
>
> Really??
>
>> It's more a question of what to do with _stacks_ of markups
>
> These aren’t stacked:
>
> \version "2.19.54"
>
> {
> \override Score.RehearsalMark.extra-spacing-width = #'(-0.5 . 1)
> \override Score.RehearsalMark.self-alignment-X = #LEFT
>   \mark "ALL CAPS"
>   c''1
> \mark "jumping"
> c''1
> \mark "the big dig"
> c''1
> }
>
> So why aren’t they baseline aligned?

Because there isn't enough room for that?

Try

  \override Score.RehearsalMark.Y-offset = 4

and you'll see the baselines aligning.

-- 
David Kastrup

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


Re: CMYK colours

2017-03-10 Thread David Kastrup
u...@openlilylib.org writes:

> Hi all,
>
> I just came across the issue of printing coloured scores and wondered
> if it's possible to use CMYK colours in LilyPond. From what the NR
> says this seems impossible but I wanted to ask anyway.
>
> If it is *not* possible, what would be - theoretically - the
> complexity of adding support for that?
> It might be rather straightforward to provide a conversion function in
> Scheme (ignoring the issue of colour profiles), but I'm talking of
> native support.

LilyPond does not actually track colors in any manner if I remember
correctly.  It just passes them through.  So take a look at how RGB
support is done, and CMYK support should be straightforward to add.
Instead of adding new user-level commands, you could just permit the
color commands to accept lists with 4 members as well as three and then
just let the backends emit different commands.

That's minimally invasive but would not allow us to use RGBA in a
similar manner.  But maybe partial transparency is better dealt with
using separate primitives anyway.

-- 
David Kastrup

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


Re: CMYK colours

2017-03-10 Thread Andrew Bernard
Hi Urs,

Not directly the answer to your question, but. Adobe Acrobat DC allows one
to convert the colour model in a PDF to  large set of choices, including
CMYK. Therefore it is possible to post process lilypond colour output to
CMYK. Granted, not an open source solution, but the pre-press technology is
certainly readily available.

Do you really want CMYK colours or is it that you want spot colours in your
output?

Most professional print shops will do RGB to CMYK conversion nowadays as
required for their particular print devices. What is the reason for wanting
to specify CMYK rather than RGB in the lilypond source?

Andrew


On 11 March 2017 at 09:19,  wrote:

>
> I just came across the issue of printing coloured scores and wondered if
> it's possible to use CMYK colours in LilyPond. From what the NR says this
> seems impossible but I wanted to ask anyway.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Control of spacing between left edge and first note

2017-03-10 Thread Thomas Liggett
Hi all,

I have a staff without any initial clef, time signature or key signature, and 
want to increase the space between the left edge of the stave and the first 
note. The method below works for the first system, but then reverts to the 
default (closer) spacing for the second system.

I’ve referred to the manuals and this snippet: 
http://lsr.di.unimi.it/LSR/Item?id=648

(I could only seem to control the spacing by retaining the clef (although made 
invisible as a point-stencil) between the left edge and the first note, 
although it would seem preferable to omit it if possible.)

Thanks,
Thomas


\version "2.19.41"

\paper { indent = 0 }

\layout {
  \context {
\Score
\override LeftEdge.space-alist.clef = #'(extra-space . 1) % space between 
left edge and clef
\remove Bar_number_engraver
  }
  \context {
\Staff
\override Clef.stencil = #point-stencil % make clef effectively invisible
\override Clef.space-alist.first-note = #'(extra-space . 1) % space between 
clef and first note
\remove Time_signature_engraver
\remove Bar_engraver
  }
}
\score { 
  \relative c'' { 
\stemUp
b8 b c c d d e e f f g g a a b b \break
b,, b c c d d e e f f g g a a b b
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Control of spacing between left edge and first note

2017-03-10 Thread Andrew Bernard
Hi Thomas,

Try this perhaps.

[You have to retain clefs and barlines and render them transparent, so that
they exist to reference off. One ought to be able to just set the value
(key-signature extra-space . 8) say, but I am not sure why we need the
whole shebang alist.]


Andrew

== snip

\version "2.19.56"

\paper { indent = 0 }

\score {
  \relative c'' {

\override Staff.KeySignature.stencil = #point-stencil
\override Staff.Clef.stencil = #point-stencil
\override Staff.BarLine.transparent = ##t

\key a \major
\stemUp
%
b8 b c c d d e e f f g g a a b b
\break
b,, b c c d d e e f f g g a a b b
  }

  \layout {
\context {
  \Score
  \remove Bar_number_engraver
}
\context {
  \Staff
  \remove Time_signature_engraver

  \override Clef.space-alist =
  #'((ambitus extra-space . 2.0)
 (breathing-sign minimum-space . 0.0)
 (cue-end-clef extra-space . 0.8)
 (clef extra-space . 0.8)
 (cue-clef extra-space . 0.8)
 (staff-bar extra-space . 0.0)
 (key-cancellation extra-space . 0.0)
 (key-signature extra-space . 8)
 (time-signature extra-space . 1.0)
 (custos extra-space . 0.0)
 (first-note fixed-space . 0.0)
 (right-edge extra-space . 0.0))

}
  }
}

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