Re: Lilypond font in Adobe Illustrator

2019-07-25 Thread Abraham Lee
Hi, William!

On Thu, Jul 25, 2019 at 4:02 PM William Zeitler 
wrote:

> When I open a PDF generated by Lilypond (2.18.2) on Windows (10), Adobe
> Illustrator complains about not being able to find font "Emmentaler 20".
> I have scoured the web for this font, and found a couple of that name
> which I installed, but the problem persists.
>

The fonts used by LilyPond are installed locally to the application rather
than the system font folder. That's why Illustrator can't find any of them.
If you look in

[LILY_DIR]\usr\share\lilypond\current\fonts\otf

you will find the music fonts LilyPond uses, all called "emmentaler-XX.otf"
where XX is the intended optical point size. If you copy those to your
system folder, Illustrator should be satisfied.

Alternatively, if Illustrator gives you the option to convert any text to
outlines, then I'd recommend that. Inkscape allows this and that's what
I've successfully used quite often before.

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


Re: seeing attachments

2019-07-25 Thread Bill via lilypond-user
Thank you so very much for the detailed instructions David.  I changed my
subscription from text to MIME and now all is good.

PS I wanted to wait and see how the new digests came through before
responding.



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Lilypond font in Adobe Illustrator

2019-07-25 Thread William Zeitler
When I open a PDF generated by Lilypond (2.18.2) on Windows (10), Adobe 
Illustrator complains about not being able to find font "Emmentaler 20". 
I have scoured the web for this font, and found a couple of that name 
which I installed, but the problem persists.


Suggestions?

Many thanks!

William Zeitler



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


Re: Removing lyric hyphens

2019-07-25 Thread David Wright
On Wed 24 Jul 2019 at 15:54:54 (-0400), Benjamin Bloomfield wrote:
> I've been trying to totally get rid of the space where a lyric hyphen might
> go, in cases where that space is already very small, but I have not been
> able to figure it out.
> 
> I have noticed that if I add the lines
> 
> > \override LyricHyphen.minimum-length = #0
> 
> \override LyricHyphen.padding = #0
> 
> in the Lyrics context, then the spacing between the lyrics stays the same,
> but it is more clear where the spaces are that I don't want because they
> show as just little black dots.
> 
> Is there a way to get rid of these spaces instead of having them still
> present as empty space?  I want the syllables to be as close to each other
> as if they were a single syllable.

Is there any reason against setting one note for each *word* that's
entirely on the reciting note, rather than each and every syllable?
Then the remaining hyphens are just the significant ones.

Cheers,
David.

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


Re: Alternating text and music

2019-07-25 Thread Urs Liska
Or you can (but depending on your actual use case this might be total overkill) 
compile your score as individual systems using \include 
"lilypond-book-preamble.ly" and include the resulting slices in a text 
document. Ideally a LaTeX document, and then you could achieve the same with 
the lyluatex package.

Urs

25. Juli 2019 21:23, "Urs Liska"  schrieb:

> 25. Juli 2019 20:30, "Rutger Hofman"  schrieb:
> 
>> Isn't it an option to use \lassezVibrer and \repeatTie?
> 
> That was what I wanted to suggest, but they look totally different.
> 
> I can suggest a solution, but it requires an openLilyLib package (well, it 
> doesn't *really*, one
> could copy that one function oll:grob-system-position ...)
> 
> %%%
> \version "2.19.82"
> 
> \include "oll-core/package.ily"
> \loadModule grob-tools.system
> 
> \paper {
> indent = 0
> }
> 
> #(define (align-text-to-staff grob)
> "Determine the grob's horizontal distance from the staff symbol
> and offset the grob by that amount to align it with the left edge."
> (let*
> ((offset (* -1 (oll:grob-system-position grob X
> (ly:grob-set-property! grob 'extra-offset (cons offset 0
> 
> {
> \override TextScript.after-line-breaking = #align-text-to-staff
> c'1 _\markup "Left-aligned text" ~
> c' ~
> c' ~
> \break
> c' _\markup "Left-aligned text" ~
> c' ~
> \break
> c'
> }
> %%%
> 
> This calculates the horizontal distance of a markup from the left edge of the 
> staff and moves it
> there. You could from there of course tweak the vertical distances and wrap 
> the \markup in a
> function that includes a \once \override (so you don't have to worry about 
> interfering with
> "normal" markups.
> 
> Is that like what you're after?
> 
> HTH
> Urs
> 
>> Rutger
>> 
>> On 7/25/19 8:14 PM, Peter Toye wrote:
>> 
>>> Hi Muzhic,
>>> 
>>> Something like this but with the tie between the staves.
>>> 
>>> Best regards,
>>> 
>>> Peter
>>> mailto:lilyp...@ptoye.com
>>> www.ptoye.com 
>>> 
>>> -
>>> Thursday, July 25, 2019, 6:34:56 PM, Muzhic wrote:
>>> 
>>> Hello Peter,
>>> 
>>> Can you post a picture of what you’re after?
>>> 
>>> JM
>>> 
>>> Envoyé de mon iPhone
>>> 
>>> Le 25 juil. 2019 à 16:45, Peter Toye >> > a écrit :
>>> 
>>> Alternating text and music I want to engrave a piano piece, and have
>>> lines of text between the staff groups. I know I can do this with
>>> several \score blocks, but unfortunately there are a lot of tied notes
>>> at the ends of some of the lines, which need to be engraved, at both the
>>> end and the start of each line.
>>> 
>>> Is there any easy way of doing this? I'm not very good at the \markup
>>> command :(
>>> 
>>> Thanks in advance,
>>> 
>>> Peter
>>> mailto:lilyp...@ptoye.com
>>> www.ptoye.com 
>>> 
>>> ___
>>> 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-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: Alternating text and music

2019-07-25 Thread David Wright
> Le 25 juil. 2019 à 16:45, Peter Toye  a écrit :
> Alternating text and music I want to engrave a piano piece, and have lines of 
> text between the staff groups. I know I can do this with several \score 
> blocks, but unfortunately there are a lot of tied notes at the ends of some 
> of the lines, which need to be engraved, at both the end and the start of 
> each line.
> 
> Is there any easy way of doing this? I'm not very good at the \markup command 
> :(

On Thu 25 Jul 2019 at 19:14:40 (+0100), Peter Toye wrote:
> Something like this but with the tie between the staves.

The easiest way I know, and which gives you total control, is to:
set your single \score with one system per page, ie line ≡ page,
burst¹ the PDF into separate PDF pages, your raw material,
crop² them so that they're not encumbered with white margins,
and assemble³ the cropped PDFs and text into the pages/book.

¹ $ pdftk filename.pdf burst
² $ pdfcrop --margins 1 input.pdf cropped.pdf
³ $ pdflatex (or lualatex) text-fragments-and-includegraphics-directives.tex

It's basically what lilypond-book does, but lets LP divide the score
into systems itself. You might need to set breakbefore to clear any
titling from the first line of music, and of course you don't want
LP's own pagenumbering.

Problems: your final .tex file will need to be kept in sync if
you make changes in the score that alters the linebreaking. This
can be ameliorated if you're using \break directives in the score.

Other methods:

Problem with markup: your text is tied to musical elements rather
than the pages you're building.

Problem with laissezVibrer/repeatTie: you have to slice and dice
the music yourself, and that interferes with other elements of
the scores like dynamics, octavation, etc.

Cheers,
David.

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


Re: Alternating text and music

2019-07-25 Thread Urs Liska
25. Juli 2019 20:30, "Rutger Hofman"  schrieb:

> Isn't it an option to use \lassezVibrer and \repeatTie?

That was what I wanted to suggest, but they look totally different.

I can suggest a solution, but it requires an openLilyLib package (well, it 
doesn't *really*, one could copy that one function oll:grob-system-position ...)

%%%
\version "2.19.82"

\include "oll-core/package.ily"
\loadModule grob-tools.system

\paper {
  indent = 0
}

#(define (align-text-to-staff grob)
   "Determine the grob's horizontal distance from the staff symbol
and offset the grob by that amount to align it with the left edge."
   (let*
((offset (* -1 (oll:grob-system-position grob X
(ly:grob-set-property! grob 'extra-offset (cons offset  0

{
  \override TextScript.after-line-breaking = #align-text-to-staff
  c'1 _\markup "Left-aligned text" ~
  c' ~ 
  c' ~
  \break
  c' _\markup "Left-aligned text" ~
  c' ~
  \break
  c'
}
%%%

This calculates the horizontal distance of a markup from the left edge of the 
staff and moves it there. You could from there of course tweak the vertical 
distances and wrap the \markup in a function that includes a \once \override 
(so you don't have to worry about interfering with "normal" markups.

Is that like what you're after?

HTH
Urs

> 
> Rutger
> 
> On 7/25/19 8:14 PM, Peter Toye wrote:
> 
>> Hi Muzhic,
>> 
>> Something like this but with the tie between the staves.
>> 
>> Best regards,
>> 
>> Peter
>> mailto:lilyp...@ptoye.com
>> www.ptoye.com 
>> 
>> -
>> Thursday, July 25, 2019, 6:34:56 PM, Muzhic wrote:
>> 
>> Hello Peter,
>> 
>> Can you post a picture of what you’re after?
>> 
>> JM
>> 
>> Envoyé de mon iPhone
>> 
>> Le 25 juil. 2019 à 16:45, Peter Toye > > a écrit :
>> 
>> Alternating text and music I want to engrave a piano piece, and have
>> lines of text between the staff groups. I know I can do this with
>> several \score blocks, but unfortunately there are a lot of tied notes
>> at the ends of some of the lines, which need to be engraved, at both the
>> end and the start of each line.
>> 
>> Is there any easy way of doing this? I'm not very good at the \markup
>> command :(
>> 
>> Thanks in advance,
>> 
>> Peter
>> mailto:lilyp...@ptoye.com
>> www.ptoye.com 
>> 
>> ___
>> 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


intertext.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Alternating text and music

2019-07-25 Thread Rutger Hofman

Isn't it an option to use \lassezVibrer and \repeatTie?

Rutger

On 7/25/19 8:14 PM, Peter Toye wrote:

Hi Muzhic,

Something like this but with the tie between the staves.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com 

-
Thursday, July 25, 2019, 6:34:56 PM, Muzhic wrote:


Hello Peter,

Can you post a picture of what you’re after?

JM

Envoyé de mon iPhone

Le 25 juil. 2019 à 16:45, Peter Toye > a écrit :



	Alternating text and music I want to engrave a piano piece, and have 
lines of text between the staff groups. I know I can do this with 
several \score blocks, but unfortunately there are a lot of tied notes 
at the ends of some of the lines, which need to be engraved, at both the 
end and the start of each line.


Is there any easy way of doing this? I'm not very good at the \markup 
command :(



Thanks in advance,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com 


___
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: Alternating text and music

2019-07-25 Thread Ben

On 7/25/2019 2:14 PM, Peter Toye wrote:

Re: Alternating text and music Hi Muzhic,

Something like this but with the tie between the staves.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com 

-
Thursday, July 25, 2019, 6:34:56 PM, Muzhic wrote:


Hello Peter,

Can you post a picture of what you’re after?

JM

Envoyé de mon iPhone

Le 25 juil. 2019 à 16:45, Peter Toye > a écrit :



	Alternating text and music I want to engrave a piano piece, and have 
lines of text between the staff groups. I know I can do this with 
several \score blocks, but unfortunately there are a lot of tied notes 
at the ends of some of the lines, which need to be engraved, at both 
the end and the start of each line.


Is there any easy way of doing this? I'm not very good at the \markup 
command :(



Thanks in advance,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com 


___
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


Peter,

You could just use a simple markup for that, would this help?

\version "2.19.82"

{

  c''1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1
  _\markup \lower #3 " text here"
  ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~
  1 ~ 1 ~ 1 ~ 1 ~ 1 ~
  _\markup \lower #3 " text here"
  1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~
  1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~
  1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~ 1 ~


}



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


Re: Alternating text and music

2019-07-25 Thread Peter Toye
Hi Muzhic,

Something like this but with the tie between the staves.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Thursday, July 25, 2019, 6:34:56 PM, Muzhic wrote:


Hello Peter,

Can you post a picture of what you’re after?

JM

Envoyé de mon iPhone

Le 25 juil. 2019 à 16:45, Peter Toye  a écrit :


Alternating text and music I want to engrave a piano piece, and have lines of 
text between the staff groups. I know I can do this with several \score blocks, 
but unfortunately there are a lot of tied notes at the ends of some of the 
lines, which need to be engraved, at both the end and the start of each line.

Is there any easy way of doing this? I'm not very good at the \markup command :(

 
Thanks in advance,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

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

Markup.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Alternating text and music

2019-07-25 Thread Muzhic
Hello Peter,

Can you post a picture of what you’re after?

JM

Envoyé de mon iPhone

> Le 25 juil. 2019 à 16:45, Peter Toye  a écrit :
> 
> I want to engrave a piano piece, and have lines of text between the staff 
> groups. I know I can do this with several \score blocks, but unfortunately 
> there are a lot of tied notes at the ends of some of the lines, which need to 
> be engraved, at both the end and the start of each line.
> 
> Is there any easy way of doing this? I'm not very good at the \markup command 
> :(
> 
>  
> Thanks in advance,
> 
> Peter
> mailto:lilyp...@ptoye.com
> www.ptoye.com
> ___
> 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: Colored box behind a single note

2019-07-25 Thread Aaron Hill

On 2019-07-21 10:04 am, Werner LEMBERG wrote:

Using

  http://lsr.di.unimi.it/LSR/Item?id=1000

I wonder how to get the effect for a single note.  Ideally, I would
like to write

  \genericSpan <...parameters ...>
  e\startGroup\endGroup

but since `\genericSpan' uses a `HorizontalBracket' grob, this fails;
it needs at least two notes.

I wasn't able to find a suitable solution in the web; IMHO, it would
be a quite useful addition to this snippet.


It appears you could use an invisible grace note as a workaround:


\version "2.19.83"
\include "ColorSpanDef.ily"

omitNotes = {
  % Like hideNotes, but removes the stencils instead.
  \override Dots.stencil = ##f
  \override NoteHead.stencil = ##f
  \override NoteHead.no-ledgers = ##t
  \override Flag.stencil = ##f
  \override Beam.stencil = ##f
  \override Stem.stencil = ##f
  \override Accidental.stencil = ##f
  \override Rest.stencil = ##f
  \override TabNoteHead.stencil = ##f
}

graceStartGroup = \grace { \once \omitNotes b'1\startGroup }

\new Staff {
  g'4 a'8[
  \genericSpan #-1 #1 #-1 #1 \colDarkBlue \colLightBlue #0 #0 ##f ##f
  \graceStartGroup b'8]\stopGroup
  c''8[
  \genericSpan #-1 #1 #-1 #1 \colDarkGreen \colLightGreen #0 #0 ##f ##f
  \graceStartGroup b'16\stopGroup
  a'16]
  \genericSpan #-1 #1 #-1 #1 \colDarkRed \colLightRed #0 #0 ##f ##f
  \graceStartGroup b'4\stopGroup
}



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


Re: Colored box behind a single note

2019-07-25 Thread Werner LEMBERG

Oops, some typos.  Here a corrected algorithm version.

Here's the algorithm.

For a given moment,

(1) count the number of \startGroup and \stopGroup events and push the
events onto a stack so that they can be referenced later on
(function `listen_note_grouping'),

(2) create a HorizontalBracket spanner for every \startGroup event and
link it as necessary (function `process_music'),

(3) set one boundary for every element of the HorizontalBracket stack
(function `acknowledge_note_column'),

(4) [my code addition] check whether there is a \stopGroup within a
bunch of \startGroup's (or a single \startGroup within a bunch of
\stopGroup's) and set the other boundary with the same values to
create a single-moment horizontal bracket for this case (function
`acknowledge_note_column'),

(5) pop an element off the HorizontalBracket stack for every
\stopGroup event (function `stop_translation_timestep').


Werner

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


Re: Colored box behind a single note

2019-07-25 Thread Werner LEMBERG

> So how do you distinguish a nested bracket starting and ending at
> the same musical moment to ending one bracket and starting the next
> at the same musical moment?

Here's the algorithm.

For a given moment,

(1) count the number of \startGroup and \stopGroup events for a given
moment and push the events onto a stack so that they can be
referenced later on (function `listen_note_grouping'),

(2) create a HorizontalBracket spanner for every \startGroup event and
link it as necessary (function `process_music'),

(3) set one boundary for every element of the HorizontalBracket stack
(function `acknowledge_note_column'),

(4) [my code addition] check whether there is a \stopGroup within a
bunch of \startGroup's (or a single \startGroup within a bunch of
\stopGroup's) and create a single-moment horizontal bracket for
this case (function `acknowledge_note_column'),

(5) pop an element off the HorizontalBracket stack for every
\stopGroup event (function `stop_translation_timestep').

For normal HorizontalBracket grobs, the second boundary is set at the
second moment, as usual.

Up to now it wasn't allowed to have \startGroup and \stopGroup events
at the same moment (this is not elegant, I know, but it's not my
code :-) Now it recognizes a single \startGroup/\stopGroup pair and
creates a single-moment horizontal bracket.  Everything else is as
before.


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


Re: Colored box behind a single note

2019-07-25 Thread Werner LEMBERG

> Slightly off-topic: Currently it’s not possible to end one bracket
> and start the next at the same moment, that’s
> https://sourceforge.net/p/testlilyissues/issues/5240/ where I
> mentioned overlapping brackets.  IIRC the brackets are started and
> ended when the bracket count is increased or decreased by
> \startGroup/\endGroup.  That makes the grobs dependent and
> inflexible.

Yes.

> Maybe that whole thing should be rewritten?

Unfortunately, this exceeds my C++ programming capabilities.  My
little patch only meliorates an inconvenience.


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


Alternating text and music

2019-07-25 Thread Peter Toye
I want to engrave a piano piece, and have lines of text between the staff 
groups. I know I can do this with several \score blocks, but unfortunately 
there are a lot of tied notes at the ends of some of the lines, which need to 
be engraved, at both the end and the start of each line.

Is there any easy way of doing this? I'm not very good at the \markup command :(

 
Thanks in advance,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Colored box behind a single note

2019-07-25 Thread Malte Meyn



Am 25.07.19 um 15:26 schrieb David Kastrup:

So how do you distinguish a nested bracket starting and ending at the
same musical moment to ending one bracket and starting the next at the
same musical moment?


Good question.

Slightly off-topic: Currently it’s not possible to end one bracket and 
start the next at the same moment, that’s 
https://sourceforge.net/p/testlilyissues/issues/5240/ where I mentioned 
overlapping brackets. IIRC the brackets are started and ended when the 
bracket count is increased or decreased by \startGroup/\endGroup. That 
makes the grobs dependent and inflexible. Maybe that whole thing should 
be rewritten?


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


Re: Colored box behind a single note

2019-07-25 Thread David Kastrup
Werner LEMBERG  writes:

 Seriously?  C++ has loops, you don't need goto for that.
>>>
>>> What construction do you suggest as a replacement?
>> 
>> A loop?
>
> Well, yes.  However, everything seems quite inelegant and bloated to
> me in comparison to this simple `goto' [and I don't think that such a
> local `goto' is something to be avoided at all costs].
>
> In other words, I would be really thankful for replacement
> suggestions.
>
>>> I have no idea what you are talking about.  What is not coherent in
>>> your opinion?  You don't like the
>>>
>>>   c'4\startGroup\stopGroup
>>>
>>> construction?  For me this looks like a quite natural extension
>>> (which, I guess, most of us have tried already) – at least for
>>> horizontal brackets.
>> 
>> Can you describe in a short paragraph what constructs are allowed,
>> what results are expected, and what constructs may be processed but
>> deliver a warning?  That's sort of what defines a feature.
>
> In NR, there is
>
>   Analysis brackets
>   -
>
>   Brackets are used in musical analysis to indicate structure in
>   musical pieces.  Simple horizontal brackets are supported.
>
>   
>
>   Analysis brackets may be nested.
>
>   
>
> I would only add
>
>   It is possible to start and end a bracket at the same musical
>   moment.
>
>   

So how do you distinguish a nested bracket starting and ending at the
same musical moment to ending one bracket and starting the next at the
same musical moment?

> to the documentation.

The documentation is not an inspiration for experiments but should make
clear what happens when doing what.

-- 
David Kastrup

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


Re: Colored box behind a single note

2019-07-25 Thread Werner LEMBERG

>>> Seriously?  C++ has loops, you don't need goto for that.
>>
>> What construction do you suggest as a replacement?
> 
> A loop?

Well, yes.  However, everything seems quite inelegant and bloated to
me in comparison to this simple `goto' [and I don't think that such a
local `goto' is something to be avoided at all costs].

In other words, I would be really thankful for replacement
suggestions.

>> I have no idea what you are talking about.  What is not coherent in
>> your opinion?  You don't like the
>>
>>   c'4\startGroup\stopGroup
>>
>> construction?  For me this looks like a quite natural extension
>> (which, I guess, most of us have tried already) – at least for
>> horizontal brackets.
> 
> Can you describe in a short paragraph what constructs are allowed,
> what results are expected, and what constructs may be processed but
> deliver a warning?  That's sort of what defines a feature.

In NR, there is

  Analysis brackets
  -

  Brackets are used in musical analysis to indicate structure in
  musical pieces.  Simple horizontal brackets are supported.

  

  Analysis brackets may be nested.

  

I would only add

  It is possible to start and end a bracket at the same musical
  moment.

  

to the documentation.  It would be nice to also have a reference to
`ColorSpanDef.ily' and an example how to use it, but this would rather
be a link to the (external) LSR snippet.

For the implementation, it seems obvious to me that it doesn't make
sense to have more than one single-moment bracket per voice at a given
moment.  AFAICS, excessive numbers of \startGroup and \stopGroup
events are already properly handled (and ignored).


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


Re: slurs and ties to end of bar

2019-07-25 Thread Knut Petersen

Hi Werner!

Attached is a lilypond source that shows how to  use postscript
to crop parts from a lilypond page.

Obviously you still need to find a way to pass the right corner
coordinates to the postscript code ...

Knut
\version "2.21.0"

\pointAndClickOff

#(set-global-staff-size 18)
#(set-default-paper-size "a4")

\book {
  \header {
title = \markup {
  \postscript " 
grestore
/myclipbox{
  newpath
50 -5 moveto 
50 0 rlineto
0 -50 rlineto
-50 0 rlineto
  closepath
  gsave 1 0 0 setrgbcolor stroke grestore
  clip
} def
0 setlinewidth myclipbox
gsave
"
  "Postscript Clipping Example"
  }
tagline = ##f
  }
  
  \relative c' { \repeat unfold 100 { c4 d e f } }
  \addlyrics { \lyricmode { \repeat unfold 100 { foo -- bar A B  } } }
}

#(system "gs -dBATCH -dNOPAUSE -r900 -sDEVICE=png16 -sOutputFile=testclip.png testclip.pdf")
#(system "LD_LIBRARY_PATH= convert testclip.png -trim -shave 4x4 testclip-clipped.pgm")
#(system "LD_LIBRARY_PATH= potrace -b pdf -r 900 testclip-clipped.pgm")
#(system "LD_LIBRARY_PATH= rm testclip.png testclip-clipped.pgm")
#(system "LD_LIBRARY_PATH= okular testclip-clipped.pdf")
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Colored box behind a single note

2019-07-25 Thread David Kastrup
Werner LEMBERG  writes:

>>> Not sure whether the coding fits lilypond's C++ style, however.
>> 
>> Seriously?  C++ has loops, you don't need goto for that.
>
> What construction do you suggest as a replacement?

A loop?

>>> +  // One single-moment bracket is allowed.  Abbreviating a horizontal
>>> +  // bracket's `START' span-direction with `L' and `STOP' with `R', this
>>> +  // means that we can have
>>> +  //
>>> +  //   LLL...LLR
>>> +  //
>>> +  // or
>>> +  //
>>> +  //   LRRR...RR
>>> +  //
>>> +  // events attached to a single moment (we don't take care of the order of
>>> +  // `L' and `R' events).
>>> +
>>>if (d == STOP)
>>>  {
>>>pop_count_++;
>>> -  if (pop_count_ > bracket_stack_.size ())
>>> +  if (pop_count_ > bracket_stack_.size () + 1)
>> 
>> [...]
>> 
>>> \include "ColorSpanDef.ily"
>>>
>>> \new Staff {
>>>   \override HorizontalBracket.line-thickness = #0
>>>   \genericSpan #-4 #-2 #-4 #-2
>>> \colDarkRed \colLightRed #0 #0 ##f ##f
>>>   2\startGroup\stopGroup
>>>
>>>   c'4\startGroup\startGroup\stopGroup
>>>   c'4\startGroup\stopGroup\stopGroup
>>> }
>>>
>>> \layout {
>>>   \context {
>>> \Voice
>>> \consists "Horizontal_bracket_engraver"
>>>   }
>>> }
>> 
>> If the resulting semantics and the allowed and not allowed
>> constructs cannot be described in a reasonably straightforward
>> manner with reasonably straightforward code, we should strive for
>> something more coherent, even if it means a larger effort in coding
>> at the program (rather than the user) level.  Try-it-until-it-works
>> features are indistinguishable from bugs and could work differently
>> in future versions.
>
> I have no idea what you are talking about.  What is not coherent in
> your opinion?  You don't like the
>
>   c'4\startGroup\stopGroup
>
> construction?  For me this looks like a quite natural extension
> (which, I guess, most of us have tried already) – at least for
> horizontal brackets.
>
> If you can improve the code – or even generalize – I would be more
> than glad.

Can you describe in a short paragraph what constructs are allowed, what
results are expected, and what constructs may be processed but deliver a
warning?  That's sort of what defines a feature.

-- 
David Kastrup

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


Re: Fresobaldi landscape printing

2019-07-25 Thread Peter Toye
Urs,

I've just updated Fresco to 2.20, and there seems to be an extra check box in 
the printer dialogue - portrait or landscape (or I missed it before). Set it to 
"landscape" and it prints fine. 

Thanks for the idea.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Thursday, July 25, 2019, 10:46:09 AM, Urs Liska wrote:


What versions of Frescobaldi and LilyPond do you use? I'm asking because there 
have been changes in how Frescobaldi generates the command to invoke LilyPond 
(actually because of another, more annoying issue with a Ghostscript version 
mismatch).

You are using a downloaded LilyPond I assume? What is the exact invocation as 
specified in the Frescobaldi Preferences dialog?

Urs

25. Juli 2019 10:48, "Peter Toye"  schrieb:

David,

Hmmm. Ghostscript doesn't seem to have an "upgrade" path, just a "download". 
Which I did and installed 9.27. But Fresco is still picking up 9.20. Any idea 
how to get Fresco to change its allegiance?

It might be that my 9.20 seems to be the 32-bit version, and I downloaded the 
64-bit version which fits the OS better (windows Home 64 bit).

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Wednesday, July 24, 2019, 8:15:24 PM, David Kastrup wrote:

> Peter Toye  writes:

>> David,

>> Thanks. It's GPL Ghostscript 9.20

> That's from 2016. The changelog mentions

> 2016-09-20 09:03:31 -0700
> Ray Johnston 
> 0e1153bf2d344044cd9fdfb7706f829b63348118

> FitPage should not add in rotation if
> destination page is square.

> If the PageSize was square, it would be
> treated as "not landscape",
> but landscape pages in would be arbitrarily rotated.

> Note this does not change the bahavior
> of PS or EPS page fitting.
> TBD: Add an option to fit to a page and
> never rotate (FitPageNR)

> Resource/Init/pdf_main.ps

> which sounds like GhostScript would rotate of
> its own accord. I think
> we had some kind of fix for that.

> Oh yes:

> commit 84675bc536af363543bdae1fa422903a977e1ec8
> Author: Masamichi Hosoda 
> Date: Thu Apr 27 21:18:41 2017 +0900

> Issue 5126: Prevent Ghostscript's unwanted automatic page rotation
>
> Ghostscript is "too clever" to rotate pages automatically
> with "majority decision".
> This behavior can cause unwanted page rotation.
>
> This commit prevents such behavior
> by adding option `-dAutoRotatePages=/None` to Ghostscript.

> That would be 2.19.60. So it would seem like
> something does not work as
> intended here.

> Maybe that option is only supported in later
> GhostScript versions than
> what you have?___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Colored box behind a single note

2019-07-25 Thread Werner LEMBERG

>> Not sure whether the coding fits lilypond's C++ style, however.
> 
> Seriously?  C++ has loops, you don't need goto for that.

What construction do you suggest as a replacement?

>> +  // One single-moment bracket is allowed.  Abbreviating a horizontal
>> +  // bracket's `START' span-direction with `L' and `STOP' with `R', this
>> +  // means that we can have
>> +  //
>> +  //   LLL...LLR
>> +  //
>> +  // or
>> +  //
>> +  //   LRRR...RR
>> +  //
>> +  // events attached to a single moment (we don't take care of the order of
>> +  // `L' and `R' events).
>> +
>>if (d == STOP)
>>  {
>>pop_count_++;
>> -  if (pop_count_ > bracket_stack_.size ())
>> +  if (pop_count_ > bracket_stack_.size () + 1)
> 
> [...]
> 
>> \include "ColorSpanDef.ily"
>>
>> \new Staff {
>>   \override HorizontalBracket.line-thickness = #0
>>   \genericSpan #-4 #-2 #-4 #-2
>> \colDarkRed \colLightRed #0 #0 ##f ##f
>>   2\startGroup\stopGroup
>>
>>   c'4\startGroup\startGroup\stopGroup
>>   c'4\startGroup\stopGroup\stopGroup
>> }
>>
>> \layout {
>>   \context {
>> \Voice
>> \consists "Horizontal_bracket_engraver"
>>   }
>> }
> 
> If the resulting semantics and the allowed and not allowed
> constructs cannot be described in a reasonably straightforward
> manner with reasonably straightforward code, we should strive for
> something more coherent, even if it means a larger effort in coding
> at the program (rather than the user) level.  Try-it-until-it-works
> features are indistinguishable from bugs and could work differently
> in future versions.

I have no idea what you are talking about.  What is not coherent in
your opinion?  You don't like the

  c'4\startGroup\stopGroup

construction?  For me this looks like a quite natural extension
(which, I guess, most of us have tried already) – at least for
horizontal brackets.

If you can improve the code – or even generalize – I would be more
than glad.


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


Re: accessing broken part of frameextender

2019-07-25 Thread Thomas Morley
Am Di., 23. Juli 2019 um 15:57 Uhr schrieb Neil Thornock
:
>
> Hello all, I'm trying to modify the broken part of FrameExtender in the 
> frameEngraver-bars-and-boxes.ily code. \alterBroken fails with an error 
> stating that it is not a spanner.
>
> So, how to access and modify the broken part, after the system break?
>
> Thanks,
> Neil

Hi Neil,

it would be helpful to link to the
frameEngraver-bars-and-boxes.ily-file you use, there are so many
flying around.
Furthermore some example-code of your use-case would be nice.

At least
\alterBroken color #(list red green) FrameExtender
works for me in my setup.


Cheers,
  Harm

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


Re: Fresobaldi landscape printing

2019-07-25 Thread Urs Liska
What versions of Frescobaldi and LilyPond do you use? I'm asking because there 
have been changes in how Frescobaldi generates the command to invoke LilyPond 
(actually because of another, more annoying issue with a Ghostscript version 
mismatch).

You are using a downloaded LilyPond I assume? What is the exact invocation as 
specified in the Frescobaldi Preferences dialog?

Urs

25. Juli 2019 10:48, "Peter Toye" mailto:lilyp...@ptoye.com?to=%22Peter%20Toye%22%20)> 
schrieb:
 David,

Hmmm. Ghostscript doesn't seem to have an "upgrade" path, just a "download". 
Which I did and installed 9.27. But Fresco is still picking up 9.20. Any idea 
how to get Fresco to change its allegiance?

It might be that my 9.20 seems to be the 32-bit version, and I downloaded the 
64-bit version which fits the OS better (windows Home 64 bit).

Best regards,

Peter
mailto:lilyp...@ptoye.com (mailto:lilyp...@ptoye.com)
www.ptoye.com (http://www.ptoye.com)

-
Wednesday, July 24, 2019, 8:15:24 PM, David Kastrup wrote:

> Peter Toye mailto:lilyp...@ptoye.com)> writes:

>> David,

>> Thanks. It's GPL Ghostscript 9.20

> That's from 2016. The changelog mentions

> 2016-09-20 09:03:31 -0700
> Ray Johnston mailto:ray.johns...@artifex.com)>
> 0e1153bf2d344044cd9fdfb7706f829b63348118

> FitPage should not add in rotation if
> destination page is square.

> If the PageSize was square, it would be
> treated as "not landscape",
> but landscape pages in would be arbitrarily rotated.

> Note this does not change the bahavior
> of PS or EPS page fitting.
> TBD: Add an option to fit to a page and
> never rotate (FitPageNR)

> Resource/Init/pdf_main.ps

> which sounds like GhostScript would rotate of
> its own accord. I think
> we had some kind of fix for that.

> Oh yes:

> commit 84675bc536af363543bdae1fa422903a977e1ec8
> Author: Masamichi Hosoda mailto:truer...@trueroad.jp)>
> Date: Thu Apr 27 21:18:41 2017 +0900

> Issue 5126: Prevent Ghostscript's unwanted automatic page rotation
>
> Ghostscript is "too clever" to rotate pages automatically
> with "majority decision".
> This behavior can cause unwanted page rotation.
>
> This commit prevents such behavior
> by adding option `-dAutoRotatePages=/None` to Ghostscript.

> That would be 2.19.60. So it would seem like
> something does not work as
> intended here.

> Maybe that option is only supported in later
> GhostScript versions than
> what you have?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Colored box behind a single note

2019-07-25 Thread David Kastrup
Werner LEMBERG  writes:

>> Using
>> 
>>   http://lsr.di.unimi.it/LSR/Item?id=1000
>> 
>> I wonder how to get the effect for a single note.  Ideally, I would
>> like to write
>> 
>>   \genericSpan <...parameters ...>
>>   e\startGroup\stopGroup
>
> With the attached patch (for git master) I get exactly that :-)
>
> Not sure whether the coding fits lilypond's C++ style, however.

Seriously?  C++ has loops, you don't need goto for that.  But the
semantics are worse.

> +  // One single-moment bracket is allowed.  Abbreviating a horizontal
> +  // bracket's `START' span-direction with `L' and `STOP' with `R', this
> +  // means that we can have
> +  //
> +  //   LLL...LLR
> +  //
> +  // or
> +  //
> +  //   LRRR...RR
> +  //
> +  // events attached to a single moment (we don't take care of the order of
> +  // `L' and `R' events).
> +
>if (d == STOP)
>  {
>pop_count_++;
> -  if (pop_count_ > bracket_stack_.size ())
> +  if (pop_count_ > bracket_stack_.size () + 1)

[...]

> \include "ColorSpanDef.ily"
>
> \new Staff {
>   \override HorizontalBracket.line-thickness = #0
>   \genericSpan #-4 #-2 #-4 #-2
> \colDarkRed \colLightRed #0 #0 ##f ##f
>   2\startGroup\stopGroup
>
>   c'4\startGroup\startGroup\stopGroup
>   c'4\startGroup\stopGroup\stopGroup
> }
>
> \layout {
>   \context {
> \Voice
> \consists "Horizontal_bracket_engraver"
>   }
> }

If the resulting semantics and the allowed and not allowed constructs
cannot be described in a reasonably straightforward manner with
reasonably straightforward code, we should strive for something more
coherent, even if it means a larger effort in coding at the program
(rather than the user) level.  Try-it-until-it-works features are
indistinguishable from bugs and could work differently in future
versions.

-- 
David Kastrup

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


Re: Fresobaldi landscape printing

2019-07-25 Thread Peter Toye
David,

Hmmm. Ghostscript doesn't seem to have an "upgrade" path, just a "download". 
Which I did and installed 9.27. But Fresco is still picking up 9.20. Any idea 
how to get Fresco to change its allegiance?

It might be that my 9.20 seems to be the 32-bit version, and I downloaded the 
64-bit version which fits the OS better (windows Home 64 bit).

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Wednesday, July 24, 2019, 8:15:24 PM, David Kastrup wrote:

> Peter Toye  writes:

>> David,

>> Thanks. It's GPL Ghostscript 9.20

> That's from 2016.  The changelog mentions

> 2016-09-20 09:03:31 -0700
> Ray Johnston 
> 0e1153bf2d344044cd9fdfb7706f829b63348118

> FitPage should not add in rotation if
> destination page is square.

> If the PageSize was square, it would be
> treated as "not landscape",
> but landscape pages in would be arbitrarily rotated.

> Note this does not change the bahavior
> of PS or EPS page fitting.
> TBD: Add an option to fit to a page and
> never rotate (FitPageNR)

> Resource/Init/pdf_main.ps

> which sounds like GhostScript would rotate of
> its own accord.  I think
> we had some kind of fix for that.

> Oh yes:

> commit 84675bc536af363543bdae1fa422903a977e1ec8
> Author: Masamichi Hosoda 
> Date:   Thu Apr 27 21:18:41 2017 +0900

> Issue 5126: Prevent Ghostscript's unwanted automatic page rotation
>
> Ghostscript is "too clever" to rotate pages automatically
> with "majority decision".
> This behavior can cause unwanted page rotation.
>
> This commit prevents such behavior
> by adding option `-dAutoRotatePages=/None` to Ghostscript.

> That would be 2.19.60.  So it would seem like
> something does not work as
> intended here.

> Maybe that option is only supported in later
> GhostScript versions than
> what you have?___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Fresobaldi landscape printing

2019-07-25 Thread Peter Toye
David,

Nope. That didn't work! Now updating GhostScript.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Wednesday, July 24, 2019, 8:18:27 PM, David Kastrup wrote:

> Peter Toye  writes:

>> David,

>> \paper {
>>   #(set-paper-size "a4" 'landscape)
>> }

> Wait.  Maybe try

> \paper {
>   #(set-paper-size "a4landscape")
> }

> instead.  Could be that the PDF conversion
> isn't happy about true rotation.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Removing lyric hyphens

2019-07-25 Thread Alexander Kobel
Hi Benjamin,

the closest we have available to eliminate spurious space between
syllables is described in the thread culminating in

  https://lists.gnu.org/archive/html/lilypond-user/2019-05/msg00389.html

(I'm not the author of the snippet, just the bearer of the full include
file in this thread. All credits to David, Mike, and Harm.)

Just \include this file, and add

\context {
  \Lyrics
  \override LyricWord.after-line-breaking = #(lyric-word-compressor 0.5)
  \override LyricHyphen #'minimum-distance = #0
  \override LyricHyphen #'minimum-length = #0
}

to your layout block (or use the equivalent locally inside the lyrics,
where necessary).

Alas, I'm afraid it generally won't give pleasant results for the type
of chant you have in your example (look at "bestower" and "power"):
There, the text widths dominate the note widths by quite a bit, and what
you (most likely) actually want is a "seemless" spacing of the lyrics
and note heads that are centered over the corresponding syllables.

AFAICS this is unsupported for the time being, as Lily tries to space
out the note heads fairly according to rhythmical concerns, while
acknowledging lyric widths as constraints; you'd need the other way around.


However, that's just the technical state-of-the-art, as far as I am
aware. From a more practical perspective, and independent of typesetting
difficulty, I'd prefer to see only *one* breve note head for repetitions
on the same note in chants, rather than one per syllable (and texts
left-aligned to those breves); see


http://lilypond.org/doc/v2.19/Documentation/notation/working-with-ancient-music_002d_002dscenarios-and-solutions#transcribing-gregorian-chant

Perhaps this is the actual solution to your problem.

And if you insist on automatic linebreaking, try to ... Okay, I see now
that I wanted to suggest exactly what you described in your second mail.
Maybe the above solution works after all, in your full context. Good luck!


HTH,
Alex


On 25.07.19 04:27, Vaughan McAlley wrote:
> On Thu, 25 Jul 2019 at 09:29, Benjamin Bloomfield  > wrote:
> 
> No, I should have explained that I have further things going on in
> my full source code that remove the semibreves unless they are the
> first one or the first in the system, and the hyphenations are given
> so that a reasonable point can be chosen for the system breaks even
> if it's in the middle of a word.  I have everything working nicely
> except for the slight bit of extra space between syllables.
> 
> Sorry I forgot to mention why I have the hyphenation points marked,
> because you're right, the solution you give is the obvious one if I
> didn't need those hyphenation points for the possible line breaks.
> 
> Thanks,
> 
> /Benjamin Bloomfield/
> 
> On Wed, Jul 24, 2019 at 6:02 PM Brian Barker
> mailto:b.m.bar...@btinternet.com>> wrote:
> 
> At 15:54 24/07/2019 -0400, you wrote:
> >I've been trying to totally get rid of the space
> >where a lyric hyphen might go, in cases where
> >that space is already very small, but I have not
> >been able to figure it out. Is there a way to
> >get rid of these spaces instead of having them
> >still present as empty space?  I want the
> >syllables to be as close to each other as if they were a single
> syllable.
> 
> If you don't want the space, don't put it in! If
> you want "Holy", enter "Holy", not "Ho -- ly". If
> you then want that word to fit one note, use "Holy_". Thus:
> Draw near, Lord, Holy_ Father,_ almighty__ and e -- ter -- nal God,
> with
> a'8 c1 c c c c c c \divisioMinima b8 a b \divisioMaior
> 
> But isn't the way such music is usually set with
> a single semibreve for all the syllables that are chanted to it?
> Draw "near, Lord, Holy Father, almighty and e" -- ter -- nal God,
> a'8 c1 \divisioMinima b8 a b \divisioMaior
> 
> Now all you probably have to do is to move the
> semibreve back to over the word "near," ...
> 
> I trust this helps.
> 
> Brian Barker - privately
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org 
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
> It looks like all those semibreves, even if they are changed to a short
> length, want to take up room because they are a big symbol. If you
> remove all overrides to lyric hyphens, the syllables come together
> unless they are smaller than the breve symbol. Changing the X-extent of
> noteheads makes all the widths dependent on the syllables, but
> introduces further issues:
> 
> %%%
> \version "2.19.81"
> 
> \include "gregorian.ly "
> 
>   antiphonText = \lyricmode {
>     Draw near, Lord, Ho -- ly Fa -- ther,
> al -- might -