Re: Simple ternary da capo structure

2024-09-18 Thread Xavier Scheuer
On Wed, 18 Sept 2024 at 12:57, David Sumbler  wrote:
>
> Thank you both for your help.  I'm still struggling with one thing,
though.  I want "D.C." at the end of the 'B' section, rather than "D.C. al
Fine".  The best thing I have managed so far was to put \jump "D.C." at the
end, but of course that doesn't remove the other marking.  I have tried
"\set Score.dalSegnoTextFormatter = #format-dal-segno-text-brief" but that
doesn't seem to make any difference.  Any suggestions?

Hello,

It should be possible to adapt/create his own #format-dal-segno based on
the current definitions in scm/translation-functions.scm.
Or simply use something like
\once \set Score.dalSegnoTextFormatter =
  #(lambda _
 #{ \markup \right-column { "D.C." } #})

Kind regards,
Xavier


Re: Ossia in Lyrics?

2024-09-17 Thread Xavier Scheuer
On Tue, 17 Sept 2024 at 21:12, Walt North  wrote:
>
> Is this possible?  I have a case where I want to have a Chord and Lyrics
sheet with some occasional hints to Guitar player on melody fills scattered
here and there.  The lilypond docs show examples with Staff but not with
Lyrics.

Hello,

That's because you are in lyric mode.
Add \notemode after your \context Staff = "ossia"

Kind regards,
Xavier


Re: Simple ternary da capo structure

2024-09-17 Thread Xavier Scheuer
On Tue, 17 Sept 2024 at 17:03, Knute Snortum  wrote:
>
> Here's what I came up with:

Hello,

Actually there is a property for the fine bar type.
\set Score.fineBarType = "||"
and you don't need to put explicitly the \bar "||" at Fine.

Kind regards,
Xavier


Re: Footnote line-spacing

2024-09-17 Thread Xavier Scheuer
On Tue, 17 Sept 2024 at 01:39, Dimitri Sykias  wrote:
>
> How can I reduce the vertical spacing between the lines in a
auto-footnote?
>
> I attempted the following code to reduce the spacing:
>
> \auto-footnote \italic “1.” \wordwrap \small { \override #'(line-spacing
. 0.8) footnote text. }
>
> However, it didn't produce the desired result. Which is the correct way
to adjust the line spacing for auto-footnotes in LilyPond?

Hello,

Use \override #'(baseline-skip . 3) *before* the \wordwrap command.
There is no such thing as a "line-spacing" property.
The used properties of the \wordwrap command are listed in NR A.12.2 Markup
for text alignment
https://lilypond.org/doc/v2.25/Documentation/notation/markup-for-text-alignment

Kind regards,
Xavier


Re: Appoggiature too fast

2024-09-12 Thread Xavier Scheuer
On Thu, 12 Sept 2024 at 15:53,  wrote:
>
> I'm still hoping for a response to this, if only to confirm whether others
> see the change in behaviour and that it's not something unique to my
> installation.  I'm pretty sure that what 2.25.19 is doing is wrong.

Hello,

Could be linked to
https://gitlab.com/lilypond/lilypond/-/commit/a6b11d016886d53345766589a625ba5d0a1fa961
that fixed 6489
https://gitlab.com/lilypond/lilypond/-/issues/6489

Could you check if you had your intended behaviour in versions <2.24.1 and
<2.25.1 and not after?

Kind regards,
Xavier


Re: Changing percussion notation without starting a new staff

2024-09-10 Thread Xavier Scheuer
On Tue, 10 Sept 2024 at 20:09, Richard Cookson <
richardcookson.3rdpla...@gmail.com> wrote:
>
> Hi,
>
> I am writing some percussion parts (orchestral, not kit) which require a
number of changes of instrument. I would like to change from one instrument
to another without starting a new staff. I have an example which starts
with cymbal, (percussion staff with a single ledger line) goes to
Glockenspiel (treble clef full staff), then back to cymbal and then bongos.
The problem is when I go from treble clef back to percussion I am using
\drums{ and this starts a new stave. If I don't use \drums{ then I can't
seem to set the drumStyleTable to put the notes on the correct lines. I
can't really find any examples in the documentation for switching styles
mid-stave.

Hello,

Have a look at the OneStaff example in NR 1.6.1.
https://lilypond.org/doc/v2.25/Documentation/notation/grouping-staves

Kind regards,
Xavier


Re: reusing melody in different TabVoice instruments

2024-09-10 Thread Xavier Scheuer
On Tue, 10 Sept 2024 at 17:04, Walt North  wrote:
>
> Is there any way to do this? What follows is a made up example.  I have a
melody that may be shared across different string instruments.
>
> I'd like to be able to reuse the melody notes and not repeat that for
each instrument. The different instruments may require different restrain
option, minimum frets and/or string numbers throughout the piece.

Hello,

This seems to work.

guitarTweaks = {
  s1 |
  \set restrainOpenStrings = ##t
  \set minimumFret = #3
  s4\3 s4*3 |
}

banjoTweaks = {
  s1 |
  \set restrainOpenStrings = ##f
  \set minimumFret = #5
  s4\4 s4*3 |
}

\markup Guitar
\score {
  \new TabStaff {
\new TabVoice {
  <<
\melody
\guitarTweaks
  >>
}
  }
}

\markup Banjo
\score {
  \new TabStaff \with {
stringTunings = #banjo-open-g-tuning
  } {
\new TabVoice {
  <<
\melody
\banjoTweaks
  >>
}
  }
}

Kind regards,
Xavier


Re: Bracket

2024-09-09 Thread Xavier Scheuer
On Tue, 10 Sept 2024 at 02:50, Kieren MacMillan 
wrote:
>
> Hi Dimitri,
>
> > How can I reduce the space between the bracket and the first barline?
>
> %%%  SNIPPET BEGINS
> \version "2.25.11"
>
> \new ChoirStaff
>   \with { \override SystemStartBracket.extra-offset = #'(0.5 . 0) }

Hello,

Although using extra-offset gives the desired look, I tend to use another
property that takes possible collisions into account whenever possible.
In this case, the padding property sets the spacing between the bracket and
the bar.

\override SystemStartBracket.padding = 0.3

Kind regards,
Xavier


Re: remove emptry tabstaff lines

2024-09-02 Thread Xavier Scheuer
On Tue, 3 Sept 2024 at 06:28, Walt North  wrote:
>
> Thanks.
>
> It didn't work when I tried (comparing an empty Staff line to an empty
TabStaff line) so thought maybe there was some different syntax for
TabStaff.  In any case it's not a big deal - I can work around it.  I find
that Lilypond usually does 95% of what I need and the rest I can usually
work around in some way.  Sometimes the effort to get something to work
gets more complicated than the work around and not worth the effort.

Hello,

Well, you need to apply it to TabStaff, not Staff like the example in the
doc.

\layout {
  \context {
\TabStaff
\RemoveAllEmptyStaves
  }
}

Kind regards,
Xavier


Re: remove "tr" from TrillSpanner

2024-09-02 Thread Xavier Scheuer
On Mon, 2 Sept 2024 at 20:56, Paul Scott  wrote:
>
> How do I remove the "tr" from a TrillSpanner or is there an object that
> is just the wavy line? I thought I had done this before but I didn't see
> it in NR 1.3.3 or snippets.

Hello,

\override TrillSpanner.bound-details.left.text = ""

If you want more details or advanced settings look at the Internals
Reference
https://lilypond.org/doc/v2.25/Documentation/internals/trillspanner

Kind regards,
Xavier


Re: Lyric spacing confusion

2024-08-19 Thread Xavier Scheuer
On Mon, 19 Aug 2024 at 02:14, Laurie Savage  wrote:
>
> Hi,
>
> I'm trying to set up lyrics to start on the upbeat of beat 4 in bar four
of a song (calling the anacrusis bar 0). I succeeded but I'm very puzzled.

Hello,

Sorry but it is difficult to try to help you.
You do not give the complete code for your output and the only part of code
you "share" is as a screenshot (instead of text).
Are you sure you do not use \lyricsto before \verse ?

Kind regards,
Xavier


Re: Beam.positions affecting space between staves

2024-08-19 Thread Xavier Scheuer
On Mon, 19 Aug 2024 at 01:51, Karim Haddad  wrote:
>
> Hi
>
> I know there is a simple solution for this but cannot find it.
>
> When applying \override Beam.positions in order to raise the beam of a
grouped rythm above the first staff:
>
> 1) it doesn't overlapp the first staff
> 2) an extra space is created (i imagine to avoid collision)
>
> How can i make it happen.

Hello,

I would use cross-staff stems in the lower staff and invisible note heads
in the upper staff.
But this notation is not conventional, what is it supposed to
represent/signify?

Cordialement,
Xavier


Re: Time signature at the end of measure before jump to coda

2024-08-03 Thread Xavier Scheuer
On Sat, 3 Aug 2024 at 17:17, Vlado Ilić  wrote:
>
> So i need something like in the first picture, on coda i have different
time signature than the one before the jump so i need to mark time change
just before the jump. Also related, in the second image i need to mark time
and key change before jumping from D.S. to the beginning of the piece. How
can i achieve that? Thanks

Hello,

For 1, use \once \override Score.BreakAlignment.break-align-orders.

\relative c'' {
  \partial 8 e16 f
  \once \override Score.BreakAlignment.break-align-orders =
##((left-edge
staff-ellipsis
cue-end-clef
ambitus
breathing-sign
signum-repetitionis
clef
cue-clef
key-cancellation
key-signature
time-signature
staff-bar
custos)
  (left-edge
staff-ellipsis
cue-end-clef
ambitus
breathing-sign
signum-repetitionis
clef
cue-clef
key-cancellation
key-signature
time-signature
staff-bar
custos)
  (left-edge
staff-ellipsis
ambitus
breathing-sign
signum-repetitionis
clef
key-cancellation
key-signature
time-signature
staff-bar
cue-clef
custos))
  \once \override Staff.Parentheses.font-size = 4
  \parenthesize \time 6/8
  g4
}

Kind regards,
Xavier


Re: Vertically align objects of same class?

2024-07-27 Thread Xavier Scheuer
On Fri, 26 Jul 2024 at 02:11, Fennel  wrote:
>
> Setting staff-affinity = #DOWN should mean that the brackets appear above
the staff instead of below, right?

Hello,

staff-affinity is used for spacing purposes.
Use alignAboveContext, as explained in NR 5.1.7 Context layout order
https://lilypond.org/doc/v2.24/Documentation/notation/context-layout-order

Kind regards,
Xavier


Re: baseMoment in the latter half of a measure

2024-07-15 Thread Xavier Scheuer
On Mon, 15 Jul 2024 at 14:26, Masaki, Akikazu <
masaki-0.56714...@zeus.eonet.ne.jp> wrote:
>
> Hello,
>
> \set Timing.baseMoment seems not to work in the latter half of a measure.
> Is it a bug, or some setting is missing?
>
> %
> \version "2.24.3"
> {
>\set Timing.baseMoment = #(ly:make-moment 1/8)
>\set beamExceptions = #'()
>\repeat unfold 32 { a32 }
> }

Hello,

Well, you changed baseMoment but you have not changed beatStructure which
is still defined as 1,1,1,1 (so half the measure with your new baseMoment).
Add
\set Timing.beatStructure = 1,1,1,1,1,1,1,1

Kind regards,
Xavier


Re: Matching Lilypond and Word font sizes

2024-07-15 Thread Xavier Scheuer
On Mon, 15 Jul 2024 at 09:18, Werner LEMBERG  wrote:
>
> If you use `\abs-fontsize`, you get a font size (in markups) in points
> regardless of the selected staff size.

Hello,

And the default text font size is 11pt for a default staff size (20pt), as
documented by Werner in NR 1.8.2
https://lilypond.org/doc/v2.25/Documentation/notation/selecting-font-and-font-size

Kind regards,
Xavier


Re: Barline scaling issues

2024-07-11 Thread Xavier Scheuer
On Thu, 11 Jul 2024 at 22:10, Tom Brennan  wrote:
>
> Hi all
>
> When using `\magnifyStaff #2/3`, I'm seeing weird transitions between the
staves of a `StaffGroup`. For example,
>
> (snip)
>
> The question is, is this a bug or expected behavior? Is there a
workaround to get that barline to snap to the end?

Hello,

All this is documented in NR 4.2.2 Setting the staff size (see Known issues
and warnings).
https://lilypond.org/doc/v2.25/Documentation/notation/setting-the-staff-size

3 proposed outputs are given with their code.

Kind regards,
Xavier


Re: music glyph in text

2024-07-08 Thread Xavier Scheuer
On Mon, 8 Jul 2024 at 21:31, bobr...@centrum.is  wrote:
>
> I have been looking for a way to use music glyphs in inline text,
specifically in a lilypond-book document.  I want to write "the note should
be Bb and not C#" but I want to use  a flat and a sharp and not a lower
case 'b' and an octothorpe (#).

Hello,

There are many possibilities.
Use a font that supports MUSIC FLAT SIGN or MUSIC SHARP SIGN unicode
character.
https://www.fileformat.info/info/unicode/char/266d/fontsupport.htm
https://www.fileformat.info/info/unicode/char/266f/fontsupport.htm

Use MusiXTEX
https://ctan.org/pkg/musixtex

Use the lilyglyphs package (must be compiled with LuaLATEX or XELATEX)
https://ctan.org/pkg/lilyglyphs

Use the musicography package (similar to lilyglyphs but for pdflatex)
https://ctan.org/pkg/musicography

Kind regards,
Xavier


Re: restart ChoirStaff including decoration

2024-06-26 Thread Xavier Scheuer
On Wed, 26 Jun 2024 at 10:42, Alexander Kobel  wrote:
>
> So, first question "simply" is: Does anyone know a way to produce a
ChoirStaff bracket at the beginning of measure 2? ;-)

Hello,

See
https://lists.gnu.org/archive/html/lilypond-user/2023-07/msg00189.html

Kind regards,
Xavier


Re: suppressing implicit TabStaff

2024-06-25 Thread Xavier Scheuer
On Wed, 26 Jun 2024 at 08:11, Jeff Olson  wrote:
>
> Thanks, David!
>
> That works even for the case where there is no explicit Staff (just a
bare TabStaff).  Excellent!
>
> But I still had to remove my \tabFullNotation command to avoid an
implicit TabStaff.
>
> Is there an alternative place (outside the music code) to put
\tabFullNotation?  Perhaps as a context setting for the explicit TabStaff?

Hello,

This works: \new TabStaff \with { \tabFullNotation } { \mus }
Otherwise the definition of tabFullNotation is in ly/property-init.ly

Kind regards,
Xavier


Re: Distinguishing semibreve and minim rests without a staff

2024-05-26 Thread Xavier Scheuer
On Mon, 27 May 2024 at 06:09, Cameron Horsburgh 
wrote:
>
> Hi folks,
>
> I'm writing a resource for beginner musicians, and many of the early
exercises I'm writing don't use staff lines (Lilypond's 'easy play' feature
is very useful here!)
>
> One problem I have--it's very difficult to distinguish minim/half-note
rests from semibreve/full-note rests, because they're essentially the same
glyph but situated either above or below a staff line. When displaying
these symbols without a staff it's fairly common to add a short line at the
appropriate place on the glyph so the type of rest can easily be
determined. I can't think of any straightforward way to do this in LilyPond
though.
>
> Has anyone else found a way around this problem?

Hello,

According to NR A.8 The Emmentaler font, you can use

\markup \musicglyph "rests.0o"
\markup \musicglyph "rests.1o"

Kind regards,
Xavier


Re: Staff size - normal and Vaticana

2024-05-25 Thread Xavier Scheuer
On Sat, 25 May 2024 at 18:53, mpk  wrote:
>
> Hi,
> Could anybody help me to individually adjust the Vaticana staff-size,
> please?

Hello,

\score {
  \new VaticanaScore {
% etc.
  }
  \layout {
#(layout-set-staff-size 18)
  }
}

\score {
  % normal score
}

Kind regards,
Xavier


Re: Control beaming with tuplets

2024-05-24 Thread Xavier Scheuer
On Fri, 24 May 2024 at 10:57, Kenneth Flak 
wrote:
>
> Thanks! That almost did the trick. The only thing that's not working is
that connecting beam between the two quintuplets. See attached screenshot...

Hello,

\set subdivideBeams = ##t

And then either, for 2.24:
  \set baseMoment = #(ly:make-moment 1/8)
  \set beatStructure = 2,2,2,2

or for 2.25:
  \set minimumBeamSubdivisionInterval = \musicLength 8
  \set maximumBeamSubdivisionInterval = \musicLength 16

See NR 1.2.4.
https://lilypond.org/doc/v2.24/Documentation/notation/beams#setting-automatic-beam-behavior
https://lilypond.org/doc/v2.25/Documentation/notation/setting-automatic-beam-behavior

Kind regards,
Xavier


Re: Removing the change clef in a first ending (volta 1)

2024-05-21 Thread Xavier Scheuer
On Tue, 21 May 2024 at 20:38, Werner LEMBERG  wrote:
>
> This information should probably be added to the NR, together with an
> example.  Can you prepare a patch (or even an MR) or formulate
> something that I can then massage accordingly?

Hi Werner,

Actually this is already in NR 1.1.3 Clef
(not specific to volta, but actually Lily's default kind of makes sense too
in this case)

> By default, a clef change taking place at a line break causes the new
clef symbol to be printed at the end of the previous line, as a ‘warning
clef’, as well as at the beginning of the next. This warning clef can be
suppressed.

Kind regards,
Xavier


Re: Removing the change clef in a first ending (volta 1)

2024-05-21 Thread Xavier Scheuer
On Tue, 21 May 2024 at 19:42, Knute Snortum  wrote:
>
> It's probably easier to see in the MWE and screen shot I've attached.  So
is there a way to get rid of the bass change clef indicator in the first
ending?

Hello,

\once \set Staff.explicitClefVisibility = #end-of-line-invisible
before your \break at the end of volta 1.

Kind regards,
Xavier


Re: DIfferent note values within a chord

2024-05-21 Thread Xavier Scheuer
On Tue, 21 May 2024 at 16:04, Aaron Hill  wrote:
>
> It is interesting how we interpreted the clef and key signature
> differently when trying to recreate the image.  You did manage to the
> squeeze in the forte, which I did not.

Yes, I thought exactly the same thing when I saw your answer. In fact, I
added a B flat because I couldn't imagine having these chords with the B-F
tritone fourth.
And when I saw your answer in the bass clef, I said to myself that I must
be conditioned for the treble clef since I originally play the violin.
In the end, when seeing the original score communicated by Jun, neither of
us was “right”.  ;-P

Kind regards,
Xavier


Re: DIfferent note values within a chord

2024-05-21 Thread Xavier Scheuer
On Tue, 21 May 2024 at 15:42, Jun Tamura  wrote:
>
> Hello,
>
> Could someone give me a pointer for this?
>
> This is a quite popular notation for bowed string instruments. I’m almost
certain that I saw a way to achieve this before but could not find it this
time.

Hello,

\relative c' {
\key bes \major
\stemDown
<\tweak duration-log 2 bes bes' f'>2\f
  <\tweak duration-log 2 bes' f' d'>2 |
<\tweak duration-log 2 c, a' c>2\fermata
}

Kind regards,
Xavier


Re: Naming lines of music

2024-05-14 Thread Xavier Scheuer
On Tue, 14 May 2024 at 15:43, Giles Boardman 
wrote:
>
> Thanks again Xavier. You are very patient - I have just sat down at my
up-to-date computer and the difference between the versions' functionality
is enormous. If I'd realised, I would have bitten the bullet and had fewer
questions and taken up less of everyone's time. My apologies. Out of
interest, is there somewhere that tells me the last version of Lilypond
that would run on Windows 8.1. Perhaps there is a sweet spot for me - my
layout requirements are largely satisfied by these very simple layouts.

Hello,

Well apparently Jean added the sentence "(Windows 7 and Windows 8 are not
supported)" for 2.24.0.
https://gitlab.com/lilypond/lilypond/-/commit/c9fa78c28d26661f1176bd8e1b13c574e71e9664

That being said, LilyPond >2.24 does not support Windows <8.1 mainly
because Microsoft itself has ended support for Windows 8.1.
Maybe LilyPond 2.24 or 2.25 still do run on Wondows 8.1. Have you tested?

Kind regards,
Xavier


Re: Naming lines of music

2024-05-14 Thread Xavier Scheuer
On Tue, 14 May 2024 at 14:44, Giles Boardman 
wrote:
>
> Hello Kieren/Xavier,
>
> I wasn't going to be picky per Kieren's ** but ...
>
> ... using Xavier's code (override
Score.RehearsalMark.self-alignment-X = #LEFT) I have a whole page of music
and the tunes are in different keys, so aligning to the Key signature is
giving me an unsightly wiggly vertical look. Can I align to the clef or the
Time signature?

Hello,

See Timothy's answer (left-edge and link to IR).

\override Score.RehearsalMark.break-align-symbols = #'(clef)
\override Score.RehearsalMark.break-align-symbols = #'(time-signature)
https://lilypond.org/doc/v2.18/Documentation/notation/aligning-objects#using-the-break_002dalignable_002dinterface
https://lilypond.org/doc/v2.24/Documentation/notation/aligning-objects#using-the-break_002dalignable_002dinterface

You could also change the break-align-anchor-alignment of KeySignature (NR
same reference).

> Or is there a line title, like the variables for "Composer" Piece" etc. I
looked, but I haven't found anything obvious.

I would use "piece", but actually you could even define your own custom
header field and custom layout for titles.
https://lilypond.org/doc/v2.24/Documentation/notation/custom-titles-headers-and-footers#custom-layout-for-titles

Kind regards,
Xavier


Re: Naming lines of music

2024-05-14 Thread Xavier Scheuer
On Tue, 14 May 2024 at 12:43, Giles Boardman 
wrote:
>
> The \mark command is centred. Can text be formatted to be left aligned
(and smaller)? Is there an initialisation parameter I can change to set its
default alignment?

Hello,

Please consider upgrading, version 2.18.2 is over 10 years old.
Current stable version (2.24.3) has the \textMark command specifically for
such cases, see NR 1.8.1 Text marks
https://lilypond.org/doc/v2.24/Documentation/notation/writing-text#text-marks

Otherwise it is possible to change the alignment of rehearsal mark with
\override Score.RehearsalMark.self-alignment-X = #LEFT

Kind regards,
Xavier


Re: 2.25.15 quotedCueEventTypes

2024-05-10 Thread Xavier Scheuer
On Wed, 8 May 2024 at 19:35, Paul Scott  wrote:
>
> Yes.  Does one of those include phrasing slurs?

Hello,

For phrasing slurs you need to add phrasing-slur-event to the list.

FYI the default value of quotedCueEventTypes is in IR 2.1.31 Score
https://lilypond.org/doc/v2.25/Documentation/internals/score

And the list of events (music classes) in IR 1.2 Music classes
https://lilypond.org/doc/v2.25/Documentation/internals/music-classes

For documentation first look in NR, then IR and if you still find nothing
in the sources (ly or scm files first).

Kind regards,
Xavier


Re: The demise of ly:multi-measure-rest::percent

2024-05-03 Thread Xavier Scheuer
On Fri, 3 May 2024 at 12:43, Richard Shann  wrote:
>
> In earlier versions of LilyPond I avoided the use of \repeat percent 2
> {} syntax by overwriting the stencil for a whole bar rest:
>
> \version "2.20.0"
> { c c c c
> \once \override MultiMeasureRest.stencil  =
#ly:multi-measure-rest::percent
> \once \override MultiMeasureRest #'thickness = #0.48
> R1*4/4
> }
>
> The stencil ly:multi-measure-rest::percent has gone in versin 2.24 and
> I see that the symbol ly:percent-repeat-interface::percent at the same
> place in the source code. However this results in the "%" glyph not
> being centered as was the old one:
>
> \version "2.24.0"
> { c c c c
> \once \override MultiMeasureRest.stencil  =
#ly:percent-repeat-interface::percent
> \once \override MultiMeasureRest #'thickness = #0.48
> R1*4/4
> }
>
> Is there an easy fix - the extra-offset needed varies according to the
> width of the bar...

Hello,

Not replying to your question but is there a reason you don't use \repeat
percent in the first place ?
And what about using "makePercent" as described in NR 1.4.2?

makePercent =
#(define-music-function (note) (ly:music?)
   "Make a percent repeat the same length as NOTE."
   (make-music 'PercentEvent
   'length (ly:music-length note)))

\relative c'' {
  \makePercent s1
}

Kind regards,
Xavier


Re: Note names are causing text marks to be duplicated

2024-04-26 Thread Xavier Scheuer
On Fri, 26 Apr 2024 at 16:46, Eric Benson  wrote:
>
> I see. How hard would it be to write a Scheme function that would copy a
melody variable and remove the text marks, or in fact everything other than
the note values, which are all I want in the NoteNames variable? That would
be preferable to entering a separate sequence containing only the text
marks in my application.

Hello,

Do you want your text marks to be above the staff or above the upper
NoteNames context?
The following just keep the text marks above the staff.

\layout {
  \context {
\Score
\remove Text_mark_engraver
  }
  \context {
\Staff
\consists Text_mark_engraver
  }
}

Kind regards,
Xavier


Re: simple problem: my first text spanner starts too early?

2024-04-22 Thread Xavier Scheuer
On Mon, 22 Apr 2024 at 21:48, Kenneth Wolcott 
wrote:
>
> Hi;
>
>   I've made a simple mistake but I can't figure out what I did wrong.
>
> At bar #36 the first text spanner starts. I think that's correct.  But
> the piano articulation should be a bar earlier? But that also seems
> correct.  How can all of these three "facts" be true without a
> contradiction? Perhaps it is a spacing issue that needs to be tweaked?
>
> The original pdf, my engraving and the Lilypond source are attached.

Hello,

Your TextSpanner starts at the beginning of bar #37 and is displayed above
the staff, that's what you have in your code as well.
Is there a particular reason why you don't use a DynamicTextSpanner
(command \cresc) for these cresc. ?
And why you put your dynamics in a separate variable but not these textual
crescendi ?
And using a Dynamics context seems an overkill for me in this case (I use
them only for PianoStaff-likes).

Kind regards,
Xavier


Re: (No subject)

2024-04-21 Thread Xavier Scheuer
On Sun, 21 Apr 2024 at 20:44, Gian Paolo Renello 
wrote:
>
> Your right, thanks.  I noticed it and changed as well in my code, but the
problem won't solve (see previous mail about the context)

Hello,

The Lyrics should come after the \new Voice = "sopranoVoice".
If you get an error please send a minimal example of code showing the issue.

Kind regards,
Xavier


Re: Can \showStaffSwitch \pageBreak ? Bug?

2024-04-17 Thread Xavier Scheuer
On Wed, 17 Apr 2024 at 21:53, Pierre-Luc Gauthier 
wrote:
>
> Hi there,
>
> Is this a known bug ?
>
> The \showStaffSwitch indication seems uneasy about page breaks.

Hello,

It might be another instance of #6684, which itself is apparently a
duplicate of #6551.
https://gitlab.com/lilypond/lilypond/-/issues/6684
https://gitlab.com/lilypond/lilypond/-/issues/6551

Kind regards,
Xavier


Re: Conflicting \section and \grace?

2024-03-29 Thread Xavier Scheuer
On Fri, 29 Mar 2024 at 22:31, Knute Snortum  wrote:
>
> This looks like a very old bug that LilyPond has.  Basically, if you have
a grace note starting a measure in one staff, you have to have one on all
staves, even if it's just a spacer.  So adding this to the melody will fix
the problem:

Exactly.
https://gitlab.com/lilypond/lilypond/-/issues/34
This is documented in NR 1.2.6 Special rhythmic concerns > Grace notes
> Known issues and warnings

Kind regards,
Xavier


Re: Lyric extenders in/out of alternatives

2024-03-29 Thread Xavier Scheuer
On Tue, 5 Oct 2021 at 10:51, Lukas-Fabian Moser  wrote:
>
> Thanks for that explanation, which goes on the heap of things I have to
> try to wrap my head around. :-)

Hello,

We have just had the question on the French list and from what I see the
documentation still mentions \skip 1 and is less good than what
Lukas-Fabian proposes.
https://lilypond.community/t/lyrics-et-reprises-alternatives/5674
Would it be possible to replace this part of Lyrics and repeats? Or is
there a reason not to?
Or would it be necessary to change Lyric_combine_music_iterator so as not
to have to do this at all (the right result automatically)?
But in both cases what is currently documented in NR 2.1.2 doesn't give the
best result.

Best regards,
Xavier


Re: end-of-line-invisible exception

2024-03-26 Thread Xavier Scheuer
On Tue, 26 Mar 2024 at 17:05, bobr...@centrum.is  wrote:
>
> Is there a way to omit the key signature at the end of a line in this
case?

Hello,

Well, here *it is* key cancellation.
\override Staff.KeyCancellation.break-visibility = #all-invisible

Kind regards,
Xavier


Re: remove key change at end of line

2024-03-25 Thread Xavier Scheuer
On Mon, 25 Mar 2024 at 22:19, bobr...@centrum.is  wrote:
>
> I want to remove a key change from the ends of lines/systems.  I am *not*
referring to just key cancellation, which I do also want.  I mean, at the
end of a line the new key should not appear before the new line.  I haven't
worked it out.

Hello,

\set Staff.explicitKeySignatureVisibility = #end-of-line-invisible

See NR 5.4.7 Visibility of objects > Special considerations
https://lilypond.org/doc/v2.24/Documentation/notation/visibility-of-objects#special-considerations

Kind regards,
Xavier


Re: Can't compile Lilypond files

2024-03-24 Thread Xavier Scheuer
On Sun, 24 Mar 2024 at 17:14, David Sumbler  wrote:
>
> I haven't used Lilypond for a while, but I have currently got v.2.24.1
>
> I started a new, very small, project today, but I can't compile
anything.  Thinking I must have forgotten even the basics of writing
Lilypond files, I tried a few of my previous project files which I have
successfully compiled in the past.  But nothing will compile.
>
> If I use the bash command line, with, for example,  'lilypond -V file.ly'
I get no compilation, and the output is identical to what I get if I just
enter 'lilypond' with no option and no file.
>
> If I try to compile from Emacs, using Ctrl-C Ctrl-L, I get exactly the
same output as above, with "Compilation exited abnormally with code 2 at
Sun Mar 24 15:54:38" or similar suffixed.
>
> What can possibly be wrong?  Lilypond isn't giving me any clues.

Hello,

How have you installed LilyPond? From the official binaries or from a
package from your Linux distribution (I guess, since you mention Emacs,
that you are under Linux)?
Do you know that the last versions of LilyPond do not update your PATH? So
are you invoking lilypond with the path where you extracted the binaries?
And when you say you can't compile, what do you get as error message? It is
not clear at all.

Kind regards,
Xavier


Re: ragged-bottom and spacing for individual pages

2024-03-20 Thread Xavier Scheuer
On Wed, 20 Mar 2024 at 19:47, Paul Scott  wrote:
>
> 1. How can I cause an individual page other than the last page of a
> score to have ragged-bottom?

Hello,

I don't think this is possible.
Personally I would produce 2 different PDFs and then split and merge the
pages as desired.

> 2. How can I change the vertical spacing for a page that uses
raged-bottom?

For a ragged-bottom score the usual variables can be
used: system-system-spacing, top-system-spacing, last-bottom-spacing and
within-system spacing properties.
You could use as well Explicit staff and system positioning, see NR 4.4.2.

Kind regards,
Xavier


Re: Troubles with StaffGrouper

2024-03-20 Thread Xavier Scheuer
On Wed, 20 Mar 2024 at 04:48, Ben Bradshaw  wrote:
>
> Hello,
> I think I must not be understanding how the StaffGrouper works. I'm doing
a score with instrument and piano accompaniment, and have the piano music
in a PianoStaff. I'm trying to get more space between the solo staff and
the piano staff. This is what I tried...
>
> \layout{
> \context {
> \Score
> \override VerticalAxisGroup.staff-staff-spacing.minimum-distance = #14
> \override StaffGrouper.staff-staff-spacing.minimum-distance = #6
> }
>
> But it seems the StaffGrouper spacing isn't applied, and what I get is
big space between all three lines. I thought that the StaffGrouper was
supposed to override settings in the VerticalAxisGroup, but maybe I have to
do it a different way? Any help would be greatly appreciated.

Hello,

Well, apparently that's the case if you don't change the default values of
VerticalAxisGroup.staff-staff-spacing (maybe that's a bug).
In your case I would change the value of
VerticalAxisGroup.staff-staff-spacing for the staff above the PianoStaff.

\score {
  <<
\new Staff \with {
  \override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance
. 12)
(minimum-distance . 11)
(padding . 1))
} { c'1 }
\new PianoStaff <<
  \new Staff { c'1 }
  \new Staff { c'1 }
>>
  >>
}

Kind regards,
Xavier


Re: Tremolo with staccato

2024-03-19 Thread Xavier Scheuer
On Tue, 19 Mar 2024 at 16:08, Ralph Palmer 
wrote:
>
> Hello, again!
>
> This list has been a great help on numerous occasions.
>
> I have a new problem - how to combine staccato with tremolo. I'm
> attaching an example from the score I'm trying to transcribe. The
> problem is similar to
>
> Adding double and triple tonguing indications for woodwind
>
> from the LSR, but without the "tuplet number". I don't know how to
> adjust the code.

Hello,

You could adapt the "jeté" from this thread:
https://lists.gnu.org/archive/html/lilypond-user/2023-01/msg00452.html

The trem-mod.ly file from Valentin is impressive as well, but maybe a
little bit overkill for this case.
https://lists.gnu.org/archive/html/lilypond-user/2023-01/msg00461.html

Kind regards,
Xavier


Re: B.A.C.H. motif

2024-03-19 Thread Xavier Scheuer
On Tue, 19 Mar 2024 at 13:57, Peter Mayes  wrote:
>
> Being relatively new to this forum, I suspect I am not the first person
> to ask this.
>
> And it is more out of curiosity than necessity.
>
> But does anybody have lilypond code to engrave the famous B.A.C.H. motif
> in the attached image?

Hello,

Years ago, Pierre Perol-Schneider had contributed the following code on the
French-speaking mailing list.
https://lilypond.community/t/est-ce-possible/3672/2

\version "2.18.2"

\markup {
  \combine
  \score {
{
  \key f\major
  \tweak extra-offset #'(-2 . 0) bes'1
  \clef C
  \override Staff.Clef.stencil =
#(lambda (grob) (grob-interpret-markup grob
  #{ \markup\rotate #180 \musicglyph #"clefs.C"
#}))
  \bar ""
}
\layout {
  \context {
\Staff
\hide TimeSignature
  }
}
  }
  \rotate #90
  \translate #'(1 . 0)
  \score {
{
  \key f\major
  \hide bes'1
  \clef mezzosoprano
  \override Staff.Clef.stencil =
#(lambda (grob) (grob-interpret-markup grob
  #{ \markup\rotate #180 \musicglyph #"clefs.C"
#}))
  \bar ""
}
\layout {
  \context {
\Staff
\hide TimeSignature
\override KeySignature.stencil =
#(lambda (grob) (grob-interpret-markup grob
  #{ \markup\musicglyph #"accidentals.natural"
#}))
  }
}
  }
}

Kind regards,
Xavier


Re: Question regarding ChordNames

2024-03-14 Thread Xavier Scheuer
Hi Jean,

Are you adding this to the LSR?
I don't know if it would make sense to add it to the documentation as well,
personally I don't engrave scores that would use this.

Best regards,
Xavier

On Wed, 13 Mar 2024 at 09:55, Jean Abou Samra  wrote:

> Mahalo, X. I am using the naturalizeMusic function and will look into
> extending that.  Maybe that has some nuggets to mine.
>
> \naturalizeMusic is not going to work well on \chordmode music (it will
> destroy the interval in chords, leading to wrong chord names), but you can
> use code like this instead:
>
> \version "2.24.2"
>
> enharmonization = { c cis d ees e f fis g gis a bes b }
>
> converter = #(make-semitone->pitch (music-pitches enharmonization))
>
> \layout {
>   \set ChordNames.chordRootNamer =
> #(lambda (pitch lowercase)
>(note-name->markup (converter (ly:pitch-semitones pitch)) lowercase))
> }
>
> bflat = \chordmode { cis dis e fis gis a bis cis bes }
>
> \transpose cis' a {
>   \new ChordNames { \bflat  }
> }
>
> Best,
>
> Jean
>


Re: Question regarding ChordNames

2024-03-13 Thread Xavier Scheuer
On Wed, 13 Mar 2024 at 04:51, John Helly  wrote:
>
> Aloha.
>
> Here's an MWE to exhibit the issue.
>
> I have a flat note (bes) that I want to transpose down 4 half-tones to
F#.  However, when the transpose is applied, the result is Gb.  I
understand that a flat note was the initial value so maybe LP is preserving
that specification?
>
> Nonetheless, short of re-writing the whole piece in A rather than C#, is
there a way to specify the enharmonic representation for an F# rather than
Gb, for example?

Hello,

Instead of putting \transpose cis' a you could put the enharmonic
\transpose des' a
Then you would have a F# instead of a Gb, but that would change the other
pitches as well in the new (equivalent) tonality.

There is also the naturalizeMusic function documented in NR 1.1.2 Transpose
pitches with minimum accidentals ("Smart" transpose) that could help.

Kind regards,
Xavier


Re: Transpose tab into label forms

2024-03-04 Thread Xavier Scheuer
On Mon, 4 Mar 2024 at 11:05, achar  wrote:
>
> Thank you for the answer. Label form may not be the correct translation.
We could say "diagram" for guitar.
> See an example attached. Good day. jean-Pierre
> It would save me time.
> Does anyone have any ideas or is this simply impossible?
> Thank you for your attention . Good evening. Jean Pierre

Salut Jean-Pierre,

It depends, if you use Fret diagram markups that you enter yourself using
\fret-diagram, then effectively a \transpose does not change these.
But if you use Predefined fret diagrams (with \include "
predefined-guitar-fretboards.ly" for instance), then a \transpose works.

\include "predefined-guitar-fretboards.ly"
\new FretBoards {
  \chordmode {
\transpose c d {
  c1 d
}
  }
}

Kind regards,
Xavier


Re: Moving a fingering mark below a slur

2024-02-28 Thread Xavier Scheuer
On Wed, 28 Feb 2024 at 12:07, Peter Mayes  wrote:

> As a beginner at Lilypond, I was looking for a way to achieve this. I
started just saying c4^"III" or similar. I then modified that to use
\markup to shrink the text. But if there is a more "natural" way of adding
these fingering marks, I would be happy to learn of it!

The advantage of using \finger is that your indication is applied as a
fingering indication.
Thus, if for example you decide to remove all your fingerings it would be
removed as well.

> Here is a fragment which shows what I was trying to avoid:
>
> "Should it always be kept inside the slur?" - I think the answer is "not
always" - it only looks wrong to me when the mark is a long way from the
note.

Actually in this case with the default value of avoid-slur of 'around the
fingering would be also inside the slur (but outside for your first
example).
See the code below (it is probably different than the code you used, but
you get the idea):

rit = -\markup { \italic rit. }
II = -\finger \markup { \fontsize #-4 II }
aTempo = ^\markup { \italic "a tempo" }

\relative c''' {
  \time 3/8
  c16(\> c,^\rit dis\II c' eis, c')\fermata |
  c,8(\p\aTempo f g)
}

Kind regards,
Xavier


Re: Moving a fingering mark below a slur

2024-02-27 Thread Xavier Scheuer
On Tue, 27 Feb 2024 at 17:28, Peter Mayes  wrote:
>
> Almost certainly a fairly trivial question: in bar 3, how to put the "L"
mark above the note, but below the slur?

Hello,

Should the "L" mark really be considered as a Fingering object? Because as
you currently define it, it's a TextScript.
Should it always be kept inside the slur?

In that case adapt your definition of "left" to this:
left = -\tweak avoid-slur #'inside \finger \markup { \fontsize #-4 L }

Kind regards,
Xavier


Re: Cue clefs

2024-02-26 Thread Xavier Scheuer
On Mon, 26 Feb 2024 at 22:13, Gerardo Ballabio 
wrote:
>
> Thanks. It says this -- but it works:
>
> programming error: No spacing entry from BarLine to `cue-clef'
> continuing, cross fingers

Ah yes, I hadn't paid attention to that. In that case, let's add a spacing
entry between BarLine and cue-clef (I used the same spacing as for clef).

\override Staff.BarLine.space-alist = #'((ambitus extra-space . 1.0)
  (time-signature extra-space . 0.75)
  (custos minimum-space . 2.0)
  (clef extra-space . 1.0)
  (cue-clef extra-space . 1.0)
  (key-signature extra-space . 1.0)
  (key-cancellation extra-space . 1.0)
  (first-note semi-shrink-space . 1.3)
  (next-note semi-fixed-space . 0.9)
  (right-edge extra-space . 0.0))

https://lilypond.org/doc/v2.25/Documentation/internals/barline

> Just in case I need this for something else, where was the cue-clef
> before you moved it?

See the standard settings in the Internals Reference:
https://lilypond.org/doc/v2.25/Documentation/internals/breakalignment

> Yes. See attached.

Does it come from a handwritten score or from a well-known publishing
house? Unless you really want to reproduce the score as is, I'd suggest
adding the cue end clef. Gould (probably the most comprehensive
contemporary reference on musical notation) mentions on page 573 of Behind
Bars: "Reinstate the player's clef before an entry" (and all her examples
do it, without exception).

By the way, she also mentions "When a cue clef begins immediately after the
barline, place the cue clef before the barline" (which is
LilyPond's default).

Kind regards,
Xavier


Re: Cue clefs

2024-02-25 Thread Xavier Scheuer
On Sun, 25 Feb 2024 at 22:35, Xavier Scheuer  wrote:
>
> By the way I would not remove the cue end clef. This is also standard
practice: to "close" the cue clef (back to playing instrument clef).

Actually in your example I would move the cue end clef to the end of the
bar (just before the playing instruments starts playing again):

  \cueClef "treble"
  c''8 d e f
  r2  % if that is what is written in the cued voice
  \cueClefUnset

Kind regards,
Xavier


Re: Cue clefs

2024-02-25 Thread Xavier Scheuer
On Sun, 25 Feb 2024 at 21:36, Gerardo Ballabio 
wrote:
>
> It does, thank you.
> Any ideas for the other question (how to move the cue clef after the bar
line)?

Hello,

Add this before the \cueClef (I only moved the cue-clef after staff-bar):

\once \override Score.BreakAlignment.break-align-orders = ##((left-edge
staff-ellipsis
cue-end-clef
ambitus
breathing-sign
signum-repetitionis
clef
staff-bar
cue-clef
key-cancellation
key-signature
time-signature
custos)
  (left-edge
staff-ellipsis
cue-end-clef
ambitus
breathing-sign
signum-repetitionis
clef
staff-bar
cue-clef
key-cancellation
key-signature
time-signature
custos)
  (left-edge
staff-ellipsis
ambitus
breathing-sign
signum-repetitionis
clef
key-cancellation
key-signature
time-signature
staff-bar
cue-clef
custos))

But do you have some reference/example of scores putting the cue clef after
the bar line ?
AFAIK LilyPond follows engraving rules/practice and puts the cue clef
before the bar line (except directly after a line break).

By the way I would not remove the cue end clef. This is also standard
practice: to "close" the cue clef (back to playing instrument clef).

Kind regards,
Xavier


Re: Imprecise font scaling

2024-02-15 Thread Xavier Scheuer
On Thu, 15 Feb 2024 at 12:35, Jean Abou Samra  wrote:
>
> IMHO, this also falls in the "not worth documenting" category. But yes,
> lily/include/dimensions.hh contains
>
> const Real INCH_TO_PT = 72.270;

Hello,

Actually "NR 4.2.2 Setting the staff size" kind of document it:
The default staff size is 20 points, which corresponds to a staff height of
7.03mm (one point is equal to 100/7227 of an inch, or 2540/7227 mm).

Kind regards,
Xavier


Re: staff size in mm

2024-02-13 Thread Xavier Scheuer
On Tue, 13 Feb 2024 at 12:48, Mariya Kireva  wrote:
>
> Dear Xavier,
>
> thank you very much for your answer. Do you know if I can set the lyrics
size precise in pt?

Hello Mariya,

Please keep the lilypond-user mailing list in Cc (Reply to all).
I found this in the archive:
https://lists.gnu.org/archive/html/lilypond-user/2019-05/msg00156.html

Kind regards,
Xavier


Re: staff size in mm

2024-02-13 Thread Xavier Scheuer
On Tue, 13 Feb 2024 at 10:20, Mariya Kireva  wrote:
>
> Hello all,
>
> it is possible to set up the staff size in lilypond precise in cm or mm?

Hello,

Do you want to set the global staff size so that you have a precise staff
height and scale everything (note heads, stems, texts, titles) accordingly?
In that case, as mentioned in NR 4.2.2 Setting the staff size:
The default staff size is 20 points, which corresponds to a staff height of
7.03mm (one point is equal to 100/7227 of an inch, or 2540/7227 mm).

So if you want a staff height of, say, 10mm you should set the global staff
size to 20*10/7.03 = 28.45 points.
#(set-global-staff-size 28.45)

It is also possible to set the staff size for a single score or set the
staff size for a single staff within a system or alter the distance between
staff lines only as explained in NR 4.2.2 or NR 1.6.2.

Kind regards,
Xavier


Re: broken bar line across staff

2024-01-31 Thread Xavier Scheuer
On Wed, 31 Jan 2024 at 15:12, Robert Garrigos  wrote:
>
> Hi all,
>
> My first post in this list.
>
> Is there a way to accomplish this?
>
>
> the bar line across the staff is broken to enable the text to be more
visible

Hello,

Sure, use the whiteout property.
In this case you will need to put the layer of the DynamicTextSpanner (or
TextScript if you used a Text script) greater than the layer of SpanBar.
There is an example of Using the whiteout property in NR 5.4.7 Visibility
of objects > Painting objects white
https://lilypond.org/doc/v2.25/Documentation/notation/painting-objects-white

Kind regards,
Xavier


Re: Melody bars are out of sync after tie into first alternative and added lyrics

2024-01-26 Thread Xavier Scheuer
On Fri, 26 Jan 2024 at 11:50, Arne Ploese via bug-lilypond <
bug-lilypond@gnu.org> wrote:
>
> Hi,
>
> after the tie into the first alternative the bar of second alternative
> seems to be out of sync.
> In the example it seems that the alternative 2 has only space for 3
> quarter  notes, if the alternative 2 does not start with "r4".
> This happens only, if I add the lyrics.

Hello,

Please read NR 2.1.2 Techniques specific to lyrics > Lyrics and repeats >
Repeats with alternative endings

When a note is tied over into two or more alternative endings [...]
to align the lyrics correctly it is necessary to disable the automatic
creation of melismata over the volta section and insert manual skips

There is also an example which deals with almost exactly the same as your
code.

Kind regards,
Xavier


Re: Drum notation and style

2024-01-19 Thread Xavier Scheuer
On Fri, 19 Jan 2024 at 13:46, Adrian  wrote:
>
> Thanks for the reply, and apologies for not replying to all. However,
>
> \override Lyrics.LyricsText.font-name = "Font Name"
>
> returns the following warning:
>
> warning: not a grob name, `LyricsText'
>
> and doesn't alter the font.

Sorry, my bad I did a copy-paste of your message without checking.

\override Lyrics.LyricText.font-name = "Font Name"
(LyricText, not LyricsText)

By the way if you use Frescobaldi the autocomplete should highlight/give
you the correct syntax.
And the name of the grobs are given in each section of the Notation
Reference manual (See also > Internals Reference)

Kind regards,
Xavier


Re: Drum notation and style

2024-01-19 Thread Xavier Scheuer
On Fri, 19 Jan 2024 at 01:42, Adrian  wrote:
>
> How would you change the font of the lyrics?
>
> \override LyricsText.font-name = "Font Name"
>
> doesn't work yet throws no error. At the moment, I haven't found a method
to identify the name of the object to style or the name of the style
property consistently, it's entirely ad hoc according to the internals
documentation mostly. Something like
>
> \override TextScript.font-name = "Font Name"
>
> works at the top level for most things, but not for lyrics or in the
lyrics environment.

Hello,

Please don't forget to include the lilypond-user mailing list in the
recipients (reply to all).
You identified the correct object, but you need to include the context (for
every object that is engraved at a context level other than Voice).

\override Lyrics.LyricsText.font-name = "Font Name"

An elegant alternative would be to put all your overrides in the layout
block.
See Learning Manual LM 3.3.4 Modifying context properties.

Kind regards,
Xavier


Re: Drum notation and style

2024-01-18 Thread Xavier Scheuer
On Thu, 18 Jan 2024 at 21:26, Stu McKenzie  wrote:
>
> I often use Lyrics to provide sticking.

Hello,

That would have been my suggestion as well, especially if you want the
sticking to be horizontally aligned.

> The lyrics are below the staff, but this can be changed. Personally, I've
had difficulties putting lyrics above the drum staff when not using markups
like ^"R". Perhaps someone else can show how that's achieved?

Simply put the Lyrics contexts above the DrumStaff context.

\score {
  <<
\new Lyrics {
  \LyricsOne
}
\new Lyrics {
  \LyricsTwo
}
\new DrumStaff {
  <<
\new DrumVoice {
  \voiceTwo
  \Drums
}
  >>
}
  >>
}

It is also possible to use alignAboveContext, this is especially useful if
you use \lyricsto (with the lyrics after the DrumStaff containing the
DrumVoice) so that you do not need to add explicit durations to the
lyrics/sticking.

Kind regards,
Xavier


Re: crescendo lines to thin

2024-01-11 Thread Xavier Scheuer
On Thu, 11 Jan 2024 at 14:43, Bernhard Kleine 
wrote:
>
> Dear all, happy new year!
>
> Ich have a separate dyn line for the dynamics, but the lines there are
> to thin. How to change it?

Hello,

\override Hairpin.thickness = #1.5
Adapt value according to your liking (default value is 1).

Actually if you have a look at the Notation Reference manual, there are
references to the Internals Reference manual at the end of each section for
the layout objects covered in this section.
That's the best way to find the property to modify in order to achieve what
you are looking for.

Kind regards,
Xavier


Re: Slurs within chords, and dotted notes

2024-01-07 Thread Xavier Scheuer
On Sun, 7 Jan 2024 at 21:35, Joel C. Salomon  wrote:
>
> Reposting for clarity as to what I’m asking.
>
> In the second case below, instead of the slur attaching to the specific
note, it moves vertically—I assume, to avoid collision with the duration
dot.  (Though it’s interesting that a tie does not mind overlapping the
dot, as in the fourth case.)
>
> In the second case, how can I either—
>
> Allow the slur to overlap the dot (the code shown below does not work), or
> Move the left anchor of the slur horizontally past the dot, so they don’t
conflict?
>
> Obvious searches like [lilypond chord slur dotted note] do not turn up
mention of this, or of any tweak to avoid this.  Any hints?

Hello,

\once \override Dots.avoid-slur = #'ignore
(Dots instead of Slur)

Kind regards,
Xavier


Re: lilypond does not generate pdf - new install on mac os sonoma

2023-11-19 Thread Xavier Scheuer
On Mon, 20 Nov 2023 at 05:15, Abe Raher  wrote:
>
> p.s. This story ended oddly.
>
> I uninstalled ghostscript and then installed ghostscript 10.02.0.
>
> I pinned that version.
>
> Still got the error ...
>
> Uninstalled lilypond.
>
> Reinstalled lilypond – this required unpinning ghostscript.
>
> Now it's all working. Odd because we're back to the latest ghostscript
which is what we thought was the source of the error.

Hello,

Yes, but after uninstalling LilyPond 2.24.2 you reinstalled the brand-new
2.24.3, which contains a fix for the Ghostscript problem.
Thanks to the speedy LilyPond developers.

Kind regards,
Xavier


Re: vertical spacing of top-level `\markup` and `\bookpart`

2023-10-04 Thread Xavier Scheuer
On Wed, 4 Oct 2023 at 09:17, Werner LEMBERG  wrote:
>
> If I activate the `\bookpart` block, the stretchability is completely
> lost – both inside and outside of `\bookpart`.  Is this expected?  How
> can I control the stretchability for global markups section-wise
> (e.g., in `\bookparts`)?

Hello,

If you add ragged-last-bottom = ##f in your \paper block you have the same
result with bookpart

Kind regards,
Xavier

-- 
Xavier Scheuer 


Re: rest note disappear on last 3 measure.

2023-09-14 Thread Xavier Scheuer
On Fri, 15 Sept 2023 at 05:56, cc0_knight--- via LilyPond user discussion <
lilypond-user@gnu.org> wrote:
>
> Hi Everyone.
> When I re-digitalize czerny's op.755 no.1,
> the 8th rest note on the last 3 measure are disappeared.
> code are too large, i've been put it on privatebin. [on code column
301-303]
> Is this an lilypond bug or syntax error?
>
> PS: have been tested on ver 2.25.7, same as 2.24.0.
>
>
https://bin.bloatcat.tk/?3edcc8f61aef5e21#8f8xMNU8icQgqRHbtbupkMUTP9UFDLpN772FVR1HDRYS

Hello,

Put the Merge_rests_engraver on the Staff level instead of PianoStaff.
Here it seems to "merge" the rests from your left and right staff.

Kind regards,
Xavier

-- 
Xavier Scheuer 


Re: How to have a parenthesized dynamic scripts including \cresc?

2023-08-28 Thread Xavier Scheuer
On Mon, 28 Aug 2023 at 14:01, Michael Gerdau  wrote:
>
> Hi list,
>
> use the following macro for parenthesized dynamics:

Hello,

I do not know why the NR mentions markup parentheses for parenthesized
dynamics, whereas the parenthesize command works for DynamicText (with a
tweak of parentheses font-size for a more pleasing result).

c4-\tweak Parentheses.font-size #3 -\parenthesize -\f

Ping @Werner LEMBERG  and @Jean Abou Samra :
should NR 1.3.1 Expressive marks attached to notes be modified (to have
other examples as parenthesized dynamics for New dynamic marks) ?


> However it does not work for \cresc as
>   c4^\parendyn\cresc
> creates an empty () mark.
>
> Is there a way to extend the above macro to work with \cresc and \decr
> as well?

I have found LSR #1097
https://lsr.di.unimi.it/LSR/Item?id=1097

Kind regards,
Xavier

-- 
Xavier Scheuer 


Re: Bar numbers on Dynamics staff above music

2023-08-28 Thread Xavier Scheuer
On Mon, 28 Aug 2023 at 10:17, Richard Shann  wrote:
>
> There are more problems than I thought with your solution-
> here is your example with some higher notes in it - the bar numbers
> leave the staff again:

Hello,

Removing "Bar_number_engraver" from the Score context and adding it to the
Staff context (or the first staff with \with if you have more than one
staff) will get the bar numbers onto the staff.
It should give you the same bar number positioning as if the Dynamics
context was not above your staff.
If you have some overrides, change them from the Score context to the Staff
context as well.

\layout {
  \context {
\Score
\remove "Bar_number_engraver"
  }
  \context {
\Staff  % if more than one Staff, use \with for the first Staff in your
\score block
\consists "Bar_number_engraver"
\override BarNumber.break-visibility = #end-of-line-invisible
barNumberVisibility = #(every-nth-bar-number-visible 1)
  }
}

Kind regards,
Xavier

-- 
Xavier Scheuer 


Re: Extend bar line to fit raised staff

2023-08-26 Thread Xavier Scheuer
On Sat, 26 Aug 2023 at 15:16, Gerardo Ballabio 
wrote:
>
> Hello,
> I'm using Staff.StaffSymbol.line-positions to raise the staff position
> in the middle of a line. When the change is at the end of a measure,
> the bar line is aligned with the new staff, leaving the old staff
> partially "open", that is, the bar line doesn't extend over all the
> height of the old staff -- in the example below, the lowermost space
> remains open.
> Is there a way to extend the bar line so that it closes both staves?

Hello,

Thank you for the well-formulated question with a minimal example.
Add
  \once \override Staff.BarLine.bar-extent = #'(-2 . 3)
after your Staff.StaffSymbol.line-positions.

Kind regards,
Xavier

-- 
Xavier Scheuer 


Re: Increasing default piano staff spacing

2023-08-11 Thread Xavier Scheuer
On Fri, 11 Aug 2023 at 20:18, Jin Choi  wrote:
>
> I have a passage of piano music with a lot of kneed beams between the
staves, and there’s too few objects above the bass staff to force enough
space. How can I increase the default spacing between the treble and bass
parts of the piano staff?

Hello,

Add

\layout {
  \context {
\PianoStaff
\override StaffGrouper.staff-staff-spacing.basic-distance = #12
  }
}

See explanations in NR 4.4.1 Flexible vertical spacing within systems
> Spacing of grouped staves
https://lilypond.org/doc/v2.25/Documentation/notation/spacing-of-grouped-staves

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Double bar not at end of staff with scaled joined staves in 2.24.1 and higher

2023-07-23 Thread Xavier Scheuer
On Sun, 23 Jul 2023 at 19:28, Heiko Schill  wrote:
>
> Hi all,
>
> when compiling the attached snippet, the double bar in the first (scaled)
> staff of two joined staffs is not at the end of the line but shifted a
> little to the left. The smaller the scale factor is, the further to the
> left the double bar ends up. This happens with lilypond 2.24.1 and higher
> (also tested with 2.25.5), but the snippet compiles correctly with
2.22.1...

Hello,

Please read the section "Known issues and warnings" of NR 4.2.2 Setting the
staff size
https://lilypond.org/doc/v2.24/Documentation/notation/setting-the-staff-size

Use
#(define bar-line-props '((BarLine thick-thickness) (BarLine
hair-thickness) (BarLine kern)))
and
#(revert-props 'magnifyStaff 0 bar-line-props)

This is the main reason why I do not use \magnifyStaff but still rely on
fontSize and \override StaffSymbol.staff-space = #(magstep #-x)

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Liszt's accents

2023-06-01 Thread Xavier Scheuer
On Wed, 31 May 2023 at 17:42, cadenza  wrote:
>
> Hello all,
>
> How do I enter the large accent marks that Liszt favored,
> which spread to multiple notes, as shown in the attached file?
> In an attempt to address some of the examples in the attachment,
> I tried to match the second and third control points of the slur as shown
below,
> but this does not seem to be a realistic solution.

Hello,

I guess Lukas-Fabian's "VShapeSlur" could be a good starting point.
https://lists.gnu.org/archive/html/lilypond-user/2020-09/msg00129.html

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Adjusting layout to bigger notes

2023-05-23 Thread Xavier Scheuer
On Tue, 23 May 2023 at 15:45, Jakob Pedersen  wrote:
>
> Greetings!
>
> I'm writing some chorales for playing hymns on the organ. I've chosen a
larger staff size to improve readability.
>
> Having adjusted #(layout-set-staff-size ##) to 26, I'm noticing some
less-than-fortunate side effects.
>
> (snip)
>
> Is there an elegant way to adjust this to the larger staff size?

Hello,

Use #(set-global-staff-size 26) instead ?

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Cues and Rest Collision Warning

2023-03-14 Thread Xavier Scheuer
On Tue, 14 Mar 2023 at 12:55, Archer Endrich  wrote:
>
> The reason I used c'1\rest was so that the rest would be placed on the
> bottom line of the Staff.  I would really like a centered rest (R1) but
> this automatically places it on the 2nd line from the top, which does
> conflict with the music of the cue.

Hello,

Replace your c'1\rest with

  \voiceTwo
  R1
  \oneVoice

In case the positioning of the multi-measure rest is not satisfactory you
can use
\once \override MultiMeasureRest.staff-position = #-6
as documented in NR 1.2.2 Writing rests > Full measure rests

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Change Size of \slashSeparator

2023-03-01 Thread Xavier Scheuer
On Wed, 1 Mar 2023 at 13:07, Johannes Roeßler  wrote:
>
> Hi List,
>
> how can I change the size of the \slashSeparator?

Hello,

slashSeparator is a markup.
You can scale it for example with the scale command
system-separator-markup = \markup \scale #'(1.5 . 1.5) { \slashSeparator }
% 150% in X and Y, change to your convenience

Or change the definition of slashSeparator, which is
slashSeparator = \markup {
  \center-align
  \vcenter \combine
  \beam #2.0 #0.5 #0.48
  \raise #0.7 \beam #2.0 #0.5 #0.48
}
% from ly/titling-init.ly

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Avoid double beaming

2023-02-20 Thread Xavier Scheuer
On Mon, 20 Feb 2023 at 12:15, Jogchum Reitsma  wrote:
>
> This gives the result I would like to see (well, almost: the first bar
still has separated stems/beams, but that's nitpicking).
>
> I applied it to the piece the snippet was an excerpt from, and it renders
beautifully.
>
> Thanks a lot!

Hello,

The first bar will have the stems/beams combined if you add the slur in
both sopranoOne and sopranoTwo, as I did in the code I sent in my previous
message.
(Actually one could add the \p in sopranoTwo as well, if the dynamics are
exactly the same in sopranoOne and sopranoTwo they will only appear once in
the combined version.)

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Avoid double beaming

2023-02-20 Thread Xavier Scheuer
On Mon, 20 Feb 2023 at 10:44, Jogchum Reitsma  wrote:
>
> Hi,
>
> In below snippet, lilypond renders two beams for the two voices, and,
> because I want the stems to have the same direction,
> the result for the 8th-notes is that they seem to be 16th notes.
>
> Is there a way to avoid this, and to join the two beams to one?

Hello,

I would say this is a typical case for \partCombine.
See NR 1.5.2 Multiple voices > Automatic part combining

sopranoOne = \relative c'' {
  \key c \major
  \time 3/4
r8 a\p a4.( g8) |
\time 2/4
f g a a |
}

sopranoTwo = \relative c' {
  \key c \major
  \time 3/4
r8 f f4.( e8) |
d e f f
}

\score {
  \new Staff \with {
instrumentName = "Sopraan"
shortInstrumentName = "S."
\dynamicUp
  } {
   \partCombine \sopranoOne \sopranoTwo
  }
  \layout {}
}

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: changing ottavation text after line break

2023-02-17 Thread Xavier Scheuer
On Fri, 17 Feb 2023 at 19:26, Immanuel Asmus  wrote:
>
> Hello,
>
> I’d like to have an OttavaBracket with ottavation "8", but after a line
> break, the ottavation should read "(8)". I cannot figure out whether
> this can be achieved with \alterBroken, since ottavation is not a
> feature of OttavaBracket. I read in the internals that the
> Ottava_spanner_engraver creates a text spanner, but TextSpanner is not
> the right grob for \alterBroken either.
>
> I worked around my problem by adding
>
>\ottava #1
>\set Staff.ottavation = #"(8)"
>
> where the line breaks. But maybe there is a universal solution for the
> whole score.

Hello,

Slight adaptation of Valentin's answer here:
https://lists.gnu.org/archive/html/lilypond-user/2021-11/msg00583.html

#(define (my-callback grob)
  (let* ((orig (ly:grob-original grob))
 (siblings (ly:spanner-broken-into orig)))
(if (not (eq? grob (car siblings)))
(ly:grob-set-property! grob 'text "(8)"

\score {
  \new Staff {
\override Staff.OttavaBracket.after-line-breaking = #my-callback
\ottava #1
c''' 4 d''' e'''' f''''
\break
d''' f'''' g'''' a''''
\break
d''' f''' g''' a'''
  }
}

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Vertical arrows next to note

2023-02-09 Thread Xavier Scheuer
On Thu, 9 Feb 2023 at 11:35, Kenneth Flak 
wrote:
>
>
> Hi Andrew,
>
> I was looking into the snippets, but the only ready-mades I could find
are arrowheads inside a markup block and horizontal arrows as textspanners.
> Any search for vertical arrows comes up short (at least for me...)

Hello,

It should be possible to use an Argpeggio with a custom stencil using
elements of arpeggioArrowDown and arpeggioBracket without protrusion.
This is beyond my current capabilities unfortunately.

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Clef with Ottava in parenthese

2023-02-08 Thread Xavier Scheuer
On Wed, 8 Feb 2023 at 15:26, Johannes Roeßler  wrote:
>
> Hi Group,
>
> is it possible to create a clef like this:
>
> Like \clef "violin_8" but with the 8 in parentheses?

Hello,

\clef "violin_(8)" or \clef "treble_(8)" works.
They are also mentioned in the documentation:
NR 1.1.3 Displaying pitches > Clef
Optional octavation can be obtained by enclosing the numeric argument in
parentheses or brackets:

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Barline glyph in markup

2023-02-03 Thread Xavier Scheuer
On Fri, 3 Feb 2023 at 15:03, Valentin Petzel  wrote:
>
> Hi Rip_mus,
>
> Bar Lines are not in fact glyphs, but drawn directly. We could recreate a
> drawing procedure for markups, but the easiest thing to do would probably
be
> to use the \score markup command for this as seen in the appended file.

Hello,

Or we could add the "Bar_engraver" to the Dynamics context, with some
tweaks as the following example shows.

\score {
  <<
\new Staff {
  \new Voice = "melody" {
\relative {
  a'4 a a a
  a a a a
  \repeat volta 2 { b4 b b b }
}
  }
}
\new Dynamics \with {
  \consists "Bar_engraver"
  \override BarLine.bar-extent = #'(-2 . 2)
  \override BarLine.stencil =
  #(lambda (grob)
(if (string=? (ly:grob-property grob 'glyph-name) "|")
(set! (ly:grob-property grob 'glyph-name) ""))
(ly:bar-line::print grob))
} {
  s1\mf
  s1
  \repeat volta 2 { s1\p }
}
  >>
}

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Removing (or not) empty staves

2023-01-17 Thread Xavier Scheuer
On Wed, 18 Jan 2023 at 04:12, Ralph Palmer 
wrote:
>
> Hi -
>
> Thanks for all your work, for helping users, and for LilyPond itself.
I've been using LilyPond and Frescobaldi for a long time, mostly on
Linux/Ubuntu.
>
> I'm currently running LilyPond 2.24.0 and Frescobaldi 3.2 on Linux/Ubuntu.
>
> I'm trying to transcribe the viola parts for Saint-Saens' Le Deluge for
my personal use, but trying to keep it close to the original. My problem is
that there are 8 lines of score with single staves, and then multiple lines
with Solo and Tutti staves. The first line with two staves has all rests in
the Solo staff. I can get LilyPond to go single staff for the opening, but
I can't get it to do that and keep the first (all rests) line of the Solo
part. I'm attaching a photo of the original score where it switches from
single staff to two staves per system, as well as two .ly files and their
PDFs from my attempts to reproduce the original. It's not a make or break
problem, but I would like to know what I might be doing wrong or what I
might do differently. I'm using \Staff \RemoveEmptyStaves in \context.

Hello,

In that case I would use a Keep_alive_together_engraver and different
VerticalAxisGroup remove-layer values and setting/unsetting
Staff.keepAliveInterfaces where desired.
There is a small example with Violins I & II and separate staves V I and V
II in the documentation.
NR 1.6.2 Modifying single staves > Hiding staves
https://lilypond.org/doc/v2.24/Documentation/notation/modifying-single-staves#hiding-staves

Otherwise if you want to keep your \RemoveEmptyStaves solution you can
cheat and include a transparent note at the beginning of the Andantino
Solo.

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Unknown expression mark

2023-01-14 Thread Xavier Scheuer
On Sat, 14 Jan 2023 at 19:05, Alberto Simões  wrote:
>
> And in lilypond, _^ is similar enough :-)

Hello,

For me it looks more like a \shortfermata .
See the list of articulations, as mentioned in NR 1.3.1 Expressive marks
attached to notes.
https://lilypond.org/doc/v2.24/Documentation/notation/list-of-articulations

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Supress Instrument after P. 1

2023-01-05 Thread Xavier Scheuer
On Thu, 5 Jan 2023 at 21:11, Mark Mathias  wrote:
>
> Partly to duplicate a 1910 popular song layout, and partly to continue
growing in LilyPond skill, I'm wanting to suppress the bookTitleMarkup
instrument field after page 1.
>
> I've read the sections on Titles and Headers, Customizing, etc., and
other parts of the manual, and I've made a number of attempts, but I'm not
yet at the point where I understand what to do.

Hello,

The best way is to look at the definition of oddHeaderMarkup and
evenHeaderMarkup in ‘ly/titling-init.ly’ and to modify it accordingly.
If you comment (or remove) the lines containing \fromproperty
#'header:instrument, you get what you want (see below).

\paper {
  oddHeaderMarkup = \markup
  \fill-line {
""
% \unless \on-first-page-of-part \fromproperty #'header:instrument
\if \should-print-page-number \fromproperty #'page:page-number-string
  }
  evenHeaderMarkup = \markup
  \fill-line {
\if \should-print-page-number \fromproperty #'page:page-number-string
% \unless \on-first-page-of-part \fromproperty #'header:instrument
""
  }
}

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Sizing Dynamics

2023-01-03 Thread Xavier Scheuer
On Tue, 3 Jan 2023 at 14:30, Mark Mathias  wrote:
>
> Using dynamics separately from a staff is useful, but for some reason
changing the size affects the DynamicText but not the hairpins. I'd like
the hairpins to match the staff size if possible.

Hello,

If you use Lilypond version > 2.23.6 (which seems to be the case according
to your version statement), you should be able to use \magnifyStaff in
Dynamics context.
https://gitlab.com/lilypond/lilypond/-/issues/6188

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Quirk with short, but not too short, ties

2023-01-02 Thread Xavier Scheuer
On Tue, 3 Jan 2023 at 05:28, Aaron Hill  wrote:
>
> Hi folks,
>
> I noticed a peculiar quirk with how short ties are handled in LilyPond.
> Take a look at the attached image (source code provided below).  Notice
> that the ties are not positioned the same.  I suspect it might be
> because the Fs are not the same distance away from each other, so in one
> case LilyPond leaves the tie sitting on the staff line and in the other
> the tie is pushed down.
>
> For my purposes, I prefer the second rendering.  Especially with the
> slur present, I find that the tie in the first version is getting lost
> between the notes.  This example is a contrived excerpt from a larger
> work, but this pattern shows up several times in the piece.  While I was
> proofreading, I almost thought one of the ties was missing.  Attached is
> a capture from my PDF viewer showing a particularly bad instance.
>
> Is there a way for me to ensure that these short ties are consistently
> offset to improve readability?

Hello,

Looking at the Internals Reference for Tie there is a
"horizontal-distance-penalty-factor" parameter in the details property that
seems to correspond to what you are looking for.
When increasing its value (50 or 100 for instance) the positioning of the
first tie is rendered like the second.

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Deprecation of instrumentCueName and instrument switch stuffs

2022-12-30 Thread Xavier Scheuer
On Wed, 14 Dec 2022 at 14:48, Jean Abou Samra  wrote:
>
> Werner's commit merely documented a deprecation that had been
> going on for much longer. The rationale is given here:
>
> https://gitlab.com/lilypond/lilypond/-/issues/4078#note_339812107
>
> and I found this thread:
>
> https://lists.gnu.org/archive/html/lilypond-user/2011-10/msg00113.html
>
> which shows pretty much the same story as what is happening
> now, but 11 years ago.
>
> I totally agree that the \instrumentSwitch and \addInstrumentDefinition
> functions are useless. Just use variables. (Contrary to what its
> name suggests, \instrumentSwitch isn't directly related to
> Instrument_switch_engraver.)
>
> Now, is the InstrumentSwitch grob useful? I don't know. On the
> one hand, modern LilyPond provides more semantic grobs printing
> text, like SectionLabel. On the other hand, SectionLabel is
> special because it interacts well with \repeat segno. InstrumentSwitch
> looks like it does nothing special at all compared to TextScript
> or TextMark.

Hello to all,

Thanks for the answers and sorry for my late reply, I was busy and then
forgot to answer, the end of year festivities not helping.

I will see with text mark or an alternative like the ones proposed by Jean.
It's just that I think it's> unfortunate to remove dedicated features
(especially when it's a common element, after all a lot of instrumental
parts have instrument cue names).

But I understand the reasoning of adding grobs that have special behaviors
or interactions.

This will be an opportunity to try out the new additions in version 2.24
(released in the meantime, congratulations) such as sections and other
repeat volta, segno features (hoping that this would meet my needs and that
I could replace the code snippets I currently use to format "Da Capo" and
other such indications that currently require the use of the
multi-mark-engraver that is not included in LilyPond).

Many thanks for taking the time to answer me and especially for developing
LilyPond to such a high quality.

Best regards,
Xavier

-- 
Xavier Scheuer 


Re: Spacing problems with hidden notes

2022-12-28 Thread Xavier Scheuer
On Tue, 27 Dec 2022 at 18:43, Owen Le Blanc  wrote:
>
> I'm doing a lot with hidden notes because of having ties and slurs
> between voices.  Sometimes this causes spacing problems, presumably
> because the hidden notes are offset relative to the visible ones.
> Note the dot after the G in this example.

Hello,

Your problem is indeed apparent if you make the hidden notes visible
(without \hideNotes).
In this case I would suggest to remove \voiceThree in your "lower" and
instead use \voiceTwo or \stemDown.
So your (half hidden) unisons are stemmed differently and the noteheads can
be merged (see for yourself without \hideNotes), thus preventing your
problem.

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Reduce extra space at end of stave

2022-12-21 Thread Xavier Scheuer
On Wed, 21 Dec 2022 at 20:13, NickS  wrote:
>
> Thanks for the suggestion Mark... adding ragged-right = ##t stretches out
the stave across the page width (175mm), ragged-right = ##f reverts to the
default behaviour (stave 78mm wide), with still too much clear space at the
end (18.75mm, the same as the clear space between the chords).

Hello,

That's the point of proportional notation: to have the same space after
notes of the same duration (so after the last note as well).
If you want to reduce the space after the last note you could trick/cheat
by multiplying its value.

  4  4*1/2 \bar "|."

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Setting lytics to alternative endings

2022-12-15 Thread Xavier Scheuer
On Thu, 15 Dec 2022 at 16:29, Jean Abou Samra  wrote:
>
>
> As said in another thread [1], I would recommend using the \repeat
> construct in the lyrics too:
>

Hello,

This is also what is recommended in the documentation, there is even a
whole section dedicated to lyrics and repeats, and in particular repeats
with alternative (with special cases of melisma, extenders and hyphens,
etc).
Cf. NR 2.1.2 Techniques specific to lyrics > Lyrics and repeats > Repeats
with alternative endings
https://lilypond.org/doc/v2.23/Documentation/notation/techniques-specific-to-lyrics#lyrics-and-repeats

Best regards,
Xavier

-- 
Xavier Scheuer 


Deprecation of instrumentCueName and instrument switch stuffs

2022-12-13 Thread Xavier Scheuer
Hello,

While replying to a query on the French-speaking list I realized that in
the latest versions of LilyPond the instrumentCueName property was
considered deprecated (as well as the engraver
"Instrument_switch_engraver", the grob "InstrumentSwitch" and the music
functions instrumentSwitch and addInstrumentDefinition).
Commit 5df7147b5977b010179bab53c2e077d559ec8ed7

This is a property that I commonly use (see typical example of my use
below) and I don't understand the rationale for removing it. Furthermore I
find promoting simple "catch-all" TextScripts (attached to an empty chord,
cf. NR 1.6.3) to indicate the instrument cue name a bad practice when you
can have a dedicated property and grob.
With a dedicated object it is cleaner, "modular" and future-proof: if you
want to adapt the size or font of all the instrument cue names you just
have to modify the properties of this object. With the approach promoted
now you have to search for all occurrences where you have induced the
instrument cue name with a TextScript and modify them.

So I agree that the old approach wasn't perfect (especially the mix of
instrument cue name and instrument switch, two uses for one
object/property/engraver), but in this case I'd rather have two properties
(instrumentCueName and instrumentSwitchName), objects (InstrumentCueName
and InstrumentSwitch) and engravers ("Instrument_cue_name_engraver" and
"Instrument_switch_engraver"), than remove everything!

Thanks for your attention and have a nice day.

 Use of instrumentCueName for advanced formatting of cues from other
voices
flute = \relative c' {
  c4\f d e f |
  g4 a b c |
  c4 b a g |
  f4 e d c
}
\addQuote "flute" { \flute }

violin = \relative c' {
  R1*2 |

  c1\mp |
  d1
}

violinCues = {
  <<
{
  \voiceOne
  s1
  \voiceTwo
  s1
  \oneVoice
}
\new CueVoice = "fluteCueVoice" \with {
  instrumentCueName = "Flute"
} {
  \voiceTwo
  \quoteDuring "flute" { s1 }
  \voiceOne
  \quoteDuring "flute" { s1 }
  \oneVoice
}
  >>
  s1*2
}

\layout {
  \context {
\Score
quotedEventTypes = #'(note-event
  rest-event
  tie-event
  beam-event
  tuplet-span-event
  tremolo-event)
  }
}

\score {
  <<
\new Staff = "violinStaff" \with {
  % instrumentName = "Violin"
  % shortInstrumentName = "V"
} {
  <<
\new Voice = "violinVoice" {
  <<
\violin
\violinCues
  >>
}
  >>
}
  >>
}


Kind regards,
Xavier


Deprecation of instrumentCueName and instrument switch stuffs

2022-12-13 Thread Xavier Scheuer
Hello,

While replying to a query on the French-speaking list I realized that in
the latest versions of LilyPond the instrumentCueName property was
considered deprecated (as well as the engraver
"Instrument_switch_engraver", the grob "InstrumentSwitch" and the music
functions instrumentSwitch and addInstrumentDefinition).
Commit 5df7147b5977b010179bab53c2e077d559ec8ed7

This is a property that I commonly use (see typical example of my use
below) and I don't understand the rationale for removing it. Furthermore I
find promoting simple "catch-all" TextScripts (attached to an empty chord,
cf. NR 1.6.3) to indicate the instrument cue name a bad practice when you
can have a dedicated property and grob.
With a dedicated object it is cleaner, "modular" and future-proof: if you
want to adapt the size or font of all the instrument cue names you just
have to modify the properties of this object. With the approach promoted
now you have to search for all occurrences where you have induced the
instrument cue name with a TextScript and modify them.

So I agree that the old approach wasn't perfect (especially the mix of
instrument cue name and instrument switch, two uses for one
object/property/engraver), but in this case I'd rather have two properties
(instrumentCueName and instrumentSwitchName), objects (InstrumentCueName
and InstrumentSwitch) and engravers ("Instrument_cue_name_engraver" and
"Instrument_switch_engraver"), than remove everything!

Thanks for your attention and have a nice day.

 Use of instrumentCueName for advanced formatting of cues from other
voices
flute = \relative c' {
  c4\f d e f |
  g4 a b c |
  c4 b a g |
  f4 e d c
}
\addQuote "flute" { \flute }

violin = \relative c' {
  R1*2 |

  c1\mp |
  d1
}

violinCues = {
  <<
{
  \voiceOne
  s1
  \voiceTwo
  s1
  \oneVoice
}
\new CueVoice = "fluteCueVoice" \with {
  instrumentCueName = "Flute"
} {
  \voiceTwo
  \quoteDuring "flute" { s1 }
  \voiceOne
  \quoteDuring "flute" { s1 }
  \oneVoice
}
  >>
  s1*2
}

\layout {
  \context {
\Score
quotedEventTypes = #'(note-event
  rest-event
  tie-event
  beam-event
  tuplet-span-event
  tremolo-event)
  }
}

\score {
  <<
\new Staff = "violinStaff" \with {
  % instrumentName = "Violin"
  % shortInstrumentName = "V"
} {
  <<
\new Voice = "violinVoice" {
  <<
\violin
\violinCues
  >>
}
  >>
}
  >>
}


Kind regards,
Xavier


Re: Too high measure numbers with ossia staff

2022-10-23 Thread Xavier Scheuer
On Sat, 22 Oct 2022 at 00:55, Erika Pirnes  wrote:
>
> Hi,
>
> I just learned how to use the ossia staff. And I'm quite happy with the
results, except it seems that the measure numbers follow the hidden ossia
staff instead of the first visible staff. Can anyone think of a nice way to
move the measure numbers down? Below is a modified version of the example
in the documentation.

Hello,

I'd suggest to remove "Bar_number_engraver" from the Score context and to
add it to your main Staff.

\layout {
  \context {
\Score
\remove "Bar_number_engraver"
  }
}

  \new Staff \with {
\consists "Bar_number_engraver"
  }

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: 2.23..13 hairpins in brackets

2022-10-06 Thread Xavier Scheuer
On Thu, 6 Oct 2022 at 19:59, Paul Scott  wrote:
>
> In 2.23.13 Notation 1.3.1 shows how to mix normal text with dynamic text.
>
> Is there a way to mix normal text, brackets specifically, with
> hairpins?  This is used in the U.S. Marine Band versions of the Sousa
> marches.

Hello,

Not sure if it corresponds to your request, but it is possible to get
hairpins between brackets by changing the stencil of Parentheses.

#(define-public (bracket-stencils grob)
  (let ((lp (grob-interpret-markup grob (markup #:fontsize 3.5 #:translate
(cons -0.3 -0.5) "[")))
(rp (grob-interpret-markup grob (markup #:fontsize 3.5 #:translate
(cons 0 -0.5) "]"
(list lp rp)))

{
  \override Parentheses.stencils = #bracket-stencils
  c'1-\parenthesize \< |
  c'1\!
}

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Suppress end-of-line key signature change

2022-09-08 Thread Xavier Scheuer
On Fri, 9 Sept 2022 at 03:35, Mark Probert  wrote:
>
>
> Hi.
>
> By default LP will add the new key signature to the end of a line if the
next line has a key signature change (as per this example). Is there an
easy way to suppress this behaviour? For pedagogic exercises like these
scales it is not really needed

Hello,

\set Staff.explicitKeySignatureVisibility = #end-of-line-invisible

The explanation for this is actually documented in NR 5.4.7 Visibility of
objects > Special considerations
https://lilypond.org/doc/v2.23/Documentation/notation/visibility-of-objectsl#special-considerations

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Spacing between Lyrics and Chordnames

2022-07-25 Thread Xavier Scheuer
On Mon, 25 Jul 2022 at 09:25, Randy Josleyn  wrote:
>
> Hi everyone!
>
> I'm trying to increase the spacing between the bottom line of lyrics and
the ChordNames in the next system.
>
> My score looks like the MWE below. I played with example below and even
without the ChordNames, the override doesn't behave as I expected it would.
I checked the IR and it says nonstaff-unrelatedstaff-spacing.padding is
set, so I assumed changing it would change the distance.
>
> I also tried setting the same setting on ChordNames, but it similarly had
no effect on the spacing.
>
> (snip)
>
> Can anyone make any suggestions to help me increase the space from the
bottom of the lyrics of one system and the top of the next system?

Hello,

Well, if it is spacing between two systems, then you should not look into
Flexible vertical spacing *within systems*.
Use system-system-spacing as described in NR 4.1.4 Flexible vertical
spacing \paper variables.

\paper {
  system-system-spacing.padding = #5
}

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Automatization

2022-07-20 Thread Xavier Scheuer
On Wed, 20 Jul 2022 at 09:35, Vincent Gay  wrote:
>
> Hello everyone,
>
> I use the inlineMMRN function below whenever I think of it to display the
number of bars of rests IN the staff. I find that it gains in readability
when the scores are a bit heavy with textual indications.
>
>
> The problem is in the "every time I think of it". Is there by any chance
a way to automate this without having to call the function every time?
>
> Thanks in advance and have a nice day

Salut Vincent,

You can put the overrides (without \once) in your layout block.

\layout {
  \context {
\Voice
\override MultiMeasureRest.layer = #-2
\override MultiMeasureRestNumber.layer = #-1
\override MultiMeasureRestNumber.Y-offset = #0
\override MultiMeasureRestNumber.stencil = #white-under
  }
}

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: subito PP

2022-07-17 Thread Xavier Scheuer
On Sun, 17 Jul 2022 at 10:12, Benjamin Tordoff  wrote:
>
> Hi all,
>
> I'm typesetting a score that uses "subito p" and "subito pp" in a couple
of places. I've found snippets explaining how to get this to look right
(subito in normal italics, the "p" or "pp" in dynamic font), and another
snippet showing how to create a custom dynamic that correctly sets the midi
volume, but not one that does both. What is the best way to add a text
prefix to a dynamic whilst also retaining the dynamic's effect on MIDI
output?
>

Hello,

You could adapt Graham's "make-dynamic-extra" into a  "make-extra-dynamic".
https://lists.gnu.org/archive/html/lilypond-user/2011-06/msg00335.html

IIRC the alignment was correct (dynamic part was aligned on note head ) and
it was correctly recognized for MIDI generation.
https://lists.gnu.org/archive/html/lilypond-user/2017-08/msg00381.html

Cheers,
Xavier

-- 
Xavier Scheuer 


Re: Stem neutral-direction bug

2022-06-09 Thread Xavier Scheuer
On Fri, 10 Jun 2022 at 02:54, Ahanu Banerjee  wrote:
>
> % unexpected warning with rests inside tuplet:
> % "direction of grob Stem must be UP or DOWN; using UP"
>
> \version "2.23.9"
> \layout {
>   \context {
> \Voice
> \consists "Melody_engraver"
> \override Stem #'neutral-direction = #'()
>   }
> }
>
> { \tuplet 3/2 { r4 r r } }

Hello,

It looks like #6093 but it has been fixed and closed (and I don't
understand the ins and outs of the discussion between developers).
https://gitlab.com/lilypond/lilypond/-/issues/6093

Cheers,
Xavier

-- 
Xavier Scheuer 
___
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond


Re: rehearsal marks, top-staff lyrics, and moved engravers

2022-06-01 Thread Xavier Scheuer
On Wed, 1 Jun 2022 at 11:32, Werner LEMBERG  wrote:
>
>
> Dear LilyPonders,
>
>
> the snippet below demonstrates that top-staff lyrics are incorrectly
> positioned above rehearsal marks if the engraver for the latter is
> moved to another context (I need that in a full score with rehearsal
> marks printed simultaneously at three different vertical positions).
>
> What am I missing?

Hi Werner,

I have always considered Lyrics contexts to be on the same level as Staff
(so I never put a Lyrics context inside a Staff context, but always above
or below).

So I would have thought that adding the Mark_engraver to a StaffGroup-like
context (like ChoirStaff) containing both the Lyrics and the staff (see
below) would solve the problem. But it doesn't. I would tend to consider
this a bug.

\score {
  <<
\new ChoirStaff = "choirstaff" \with {
  \consists Mark_engraver
} {
  <<
\new Staff = "staff" {
  <<
\new Voice = "music" {
  <<
\top
\music
  >>
}
\new NullVoice = "aligner" {
  \music
}
  >>
}
\new Lyrics = "lyrics" \with {
  alignAboveContext = "staff"
} \lyricsto "aligner" {
      \text
    }
  >>
}
  >>
  \layout {
\context {
  \Score
  \remove Mark_engraver
}
  }
}

Cheers,
Xavier

-- 
Xavier Scheuer 


  1   2   3   4   5   6   7   8   9   10   >