Re: How can I shorten the space for a final single note?

2020-02-24 Thread Robert Blackstone
Hi Pierre,

Thanks again for your help and the time you spent to help me.
As for “Some direction” : I have no idea what it contains and what it should 
do. I just added it somewhere in my text in the nabourhood of the paperblock 
and it did not make any change in the output. 
My knowledge of Scheme is zero. I’m a happy Mac-user with no knowledge of Linux 
and I’m too old (83) to start developing myself in this direction.
The good news is that after a lot of tweaking and some dirty tricks I got an 
excellent result.
I could not have succeeded without the help of you, Harm and David.

Best regards,

Robert Blackstone
 

> On 23 Feb 2020, at 11:31, Pierre Perol-Schneider 
>  wrote:
> 
> Hi Robert,
> 
> Le dim. 23 févr. 2020 à 10:45, Robert Blackstone  > a écrit :
> [...] 
> Many thanks for your help. Three different solutions for my problem is a 
> precious gift. 
> They all work but I do need some time to understand your codes. They are so 
> totally different from mine.
> [...]
> 
> Some direction:
> 
> %%
> global = {  
>   \time 4,4,1 2/1 %% <= see: 
> http://lilypond.org/doc/v2.19/Documentation/changes/index.html 
> 
>   % Change time signature stencil to 2/2 glyph:
>   \override Staff.TimeSignature.stencil = #(lambda (grob)
> (grob-interpret-markup grob #{ \markup\musicglyph #"timesig.C22" #}))
> }
> %%
> 
> [...] 
> Another habit is to never use “relative”
> |...]
> 
> So do I.
> 
> Cheers,
> Pierre
>  



Re: How can I shorten the space for a final single note?

2020-02-24 Thread Robert Blackstone
Hi Pierre,
Thanks again for your help and the time you spent to help me.
As for “Some direction” : I have no idea what it contains and what it should 
do. I just added it somewhere in my text in the nabourhood of the paperblock 
and it did not make any change in the output. 
My knowledge of Scheme is zero, I’m a happy Mac-user with no knowledge of Linux 
and I’m too old (83) to start developing myself in this direction.
The good news is that after a lot of testing tweaks and one or two dirty tricks 
I got an acceptable result.
I could not have succeeded without the help of you, Harm and David.

Best regards, 

Robert Blackstone
 

> On 23 Feb 2020, at 11:31, Pierre Perol-Schneider 
>  wrote:
> 
> Hi Robert,
> 
> Le dim. 23 févr. 2020 à 10:45, Robert Blackstone  > a écrit :
> [...] 
> Many thanks for your help. Three different solutions for my problem is a 
> precious gift. 
> They all work but I do need some time to understand your codes. They are so 
> totally different from mine.
> [...]
> 
> Some direction:
> 
> %%
> global = {  
>   \time 4,4,1 2/1 %% <= see: 
> http://lilypond.org/doc/v2.19/Documentation/changes/index.html 
> 
>   % Change time signature stencil to 2/2 glyph:
>   \override Staff.TimeSignature.stencil = #(lambda (grob)
> (grob-interpret-markup grob #{ \markup\musicglyph #"timesig.C22" #}))
> }
> %%
> 
> [...] 
> Another habit is to never use “relative”
> |...]
> 
> So do I.
> 
> Cheers,
> Pierre
>  



Re: How can I shorten the space for a final single note?

2020-02-23 Thread Pierre Perol-Schneider
Hi Robert,

Le dim. 23 févr. 2020 à 10:45, Robert Blackstone <
blackstone.rob...@gmail.com> a écrit :
[...]

> Many thanks for your help. Three different solutions for my problem is a
> precious gift.
>
> They all work but I do need some time to understand your codes. They are
> so totally different from mine.
>
[...]

Some direction:

%%
global = {
  \time 4,4,1 2/1 %% <= see:
http://lilypond.org/doc/v2.19/Documentation/changes/index.html
  % Change time signature stencil to 2/2 glyph:
  \override Staff.TimeSignature.stencil = #(lambda (grob)
(grob-interpret-markup grob #{ \markup\musicglyph #"timesig.C22" #}))
}
%%


[...]

> Another habit is to never use “relative”
>
|...]

So do I.

Cheers,
Pierre


Re: How can I shorten the space for a final single note

2020-02-22 Thread David Wright
On Sat 22 Feb 2020 at 13:25:36 (+0100), Robert Blackstone wrote:
> > On 21 Feb 2020, at 12:18, Pierre Perol-Schneider 
> >  wrote:
> > 
> > A workaround could be: 
> > 
> > {
> >   a'\breve*1/4
> >   \bar "|."
> > }
> 
> Thanks. This does work for me but it comes at a cost: Lilypond apparently 
> does not want to waste the space that results from shrinking the space for 
> the breve and that results in a number of empty bars between the breve and 
> \bar “|.”. 
>  I tried to remove them by adding  \layout {\ RemoveEmptyBars} but that does 
> nothing at all. 
> The best result I got this far is by separating the two horizontally 
> connected scores and combine them in one “piece”.
> I almost get what I want but for two empty staves that I cannot hide or 
> delete with LilyPond tools. They can probably be erased from the .pdf.
> 
> I have attached a picture of  “original” and what I have made of it in case 
> you are curious what it is all about.

You have to make the change in every voice. It sounds as if you've
altered the voice that carries the notes, but have left, say, a
voice of spacers that's carrying keys/time signatures/dynamics etc.

But, as others have said, a MWE is essential to know what's really
happening.

Cheers,
David.



Re: How can I shorten the space for a final single note

2020-02-22 Thread Thomas Morley
Am Sa., 22. Feb. 2020 um 13:27 Uhr schrieb Robert Blackstone
:
>
> I have attached a picture of  “original” and what I have made of it in case 
> you are curious what it is all about.
>

Hi Robert,

your code would be helpful ;)

Anyway I've set parts of the exercise.
I don't really get what's wrong with it (first score below).
Anyway, a second score with some tweaking is added.
Does it help?

Cheers,
  Harm

\score {
  {
\time 4/2
f'2 g'
e' f'~
f' g' e'1
fis'\breve
\bar "||"
d'1 f'2 a'
g' bes' a' e'
fis'\breve
\bar "|."
  }
  \layout {
ragged-right = ##f
  }
}


\score {
  {
\time 4/2
f'2 g'
e' f'~
f' g' e'1
\newSpacingSection
\temporary \override Score.SpacingSpanner.base-shortest-duration =
  #(ly:make-moment 1 1)
fis'\breve
\newSpacingSection
\revert Score.SpacingSpanner.base-shortest-duration
\bar "||"
d'1 f'2 a'
g' bes' a' e'
%% If not applied in layout use this syntax:
%\overrideProperty
%  Score.NonMusicalPaperColumn.full-measure-extra-space 6.0
\newSpacingSection
\override Score.SpacingSpanner.base-shortest-duration =
  #(ly:make-moment 1 1)
fis'\breve
\newSpacingSection
\revert Score.SpacingSpanner.base-shortest-duration
\bar "|."
  }
  \layout {
ragged-right = ##f
\compressFullBarRests
\override Score.NonMusicalPaperColumn.full-measure-extra-space = 3.0
  }
}



Re: How can I shorten the space for a final single note

2020-02-21 Thread Pierre Perol-Schneider
A workaround could be:

{
  a'\breve*1/4
  \bar "|."
}

HTH,
Pierre

Le ven. 21 févr. 2020 à 12:12, Robert Blackstone <
blackstone.rob...@gmail.com> a écrit :

> Hi Pierre,
>
> Thanks for your quick reply. I will follow your suggestion and see whether
> I can make it work for me.
>
> Best regards,
> Robert
>
> On 21 Feb 2020, at 11:17, Pierre Perol-Schneider <
> pierre.schneider.pa...@gmail.com> wrote:
>
>
> See:
> http://lilypond.org/doc/v2.19/Documentation/notation/new-spacing-section
> Otherwise, please provide a mini example.
> Cheers,
>
>
>


Re: How can I shorten the space for a final single note

2020-02-21 Thread Pierre Perol-Schneider
Hi Robert,
See:
http://lilypond.org/doc/v2.19/Documentation/notation/new-spacing-section
Otherwise, please provide a mini example.
Cheers,
Pierre

Le ven. 21 févr. 2020 à 11:01, Robert Blackstone <
blackstone.rob...@gmail.com> a écrit :

> Dear all,
>
> I have typeset a small example from a theoretical work of Lorenzo  Penna.
> It has 2 sections, each consisting of three bars separated by a double
> barline. The time is 4/2 and  bars 1 and 2 contain mostly half notes. In
> each section the final note is a \breve. The problem is that Lilypond gives
> these single final notes the same horizontal space as the four halfnotes in
> the first two bars.
>
> My client does not like it and wants these final bars shortened to at most
> half their present length with the \breve centered.
> Can anybody tell me  how I can realise this?
>
> I tried \set Timing.measureLength = #(ly:make-moment 1/2) and that works
> but it spoils the result by inserting three empty bars which I do not know
> how to get rid of. (The law of preservation of misery in full action.)
>
> Thanks in advance for any advice.
>
> Best regards,
> Robert Blackstone
>
>
>