Re: How to change coda mark symbol in \repeat segno structure?

2023-08-17 Thread Jean Abou Samra
This should do the trick:

\version "2.24.2"

{
  \repeat segno 2 {
c'1
\alternative {
  \volta 1 {
\once \set Score.codaMarkFormatter =
  #(lambda args
 #{ \markup "foo bar" #})
c'1
  }
  \volta 2 \volta #'() { \section \sectionLabel Coda }
}
  }
  c'1
}



signature.asc
Description: This is a digitally signed message part


How to change coda mark symbol in \repeat segno structure?

2023-08-17 Thread Vlado Ilić
Hello,

I'm trying to change coda symbol that appears when using  \repeat segno
structure.If i understand correctly, Mark_engraver is responsible for it
and Layout Object is CodaMark.
I've tried setting \override CodaMark.text = \markup {"test"} in Voice,
Staff and Score context but nothing changes.
What am I missing?


Re: arranger.ly with lilypond 2.25 : intlog2 fatal error

2023-08-17 Thread Jean Abou Samra
https://github.com/gilles-th/arranger.ly/pull/2/files


signature.asc
Description: This is a digitally signed message part


Re: strange detached beam issue

2023-08-17 Thread Jin Choi
Thanks, you were right. There was an unterminated Slur.outside-staff-priority 
override that was causing the problem. This snippet displays the flying beam:

\version "2.24.1"

top = { \change Staff = "upper" \voiceTwo }
bottom = { \change Staff = "lower" \voiceOne }

upper = \relative c'' {
  \override Slur.outside-staff-priority = #300
  
 \time 2/2
 \key c \major
 \voiceOne
 r8 bes'\mf( a gis a ees d cis |
 d bes a gis a ees d cis |
 d) bes'\dim( a\! gis a ees d cis |
 d[ \bottom bes a gis] a[ ees d)] r8 |
 \top 
 \oneVoice
 r8\p
}

lower = \relative c' {
 \clef bass
 a4 r8 \top bes'( a gis a ees |
 d cis d \bottom \voiceTwo bes a gis a ees |
 d cis d bes' a gis a ees |
 d cis d bes a gis a cis | 
 \oneVoice
 fis,4)

}

\score {
 \layout {
   \context {
 \Staff
 \consists Merge_rests_engraver
   }
   \context {
 \PianoStaff
 \override StaffGrouper.staff-staff-spacing.basic-distance = #11
 \override TextScript.avoid-slur = #'outside
 \override TupletBracket.bracket-visibility = ##f
   }
 }  
 \new PianoStaff {
   <<
   \new Staff = "upper" \upper
   \new Staff = "lower" \lower
   >>
 }
}

> On Aug 16, 2023, at 3:51 AM, Paul Hodges  wrote:
> 
> I note some other differences between your image and what the code sample 
> generates, in the slur and dynamic positions.
> 
> I can't suggest what in particular is happening, but if this happened to me, 
> I'd be looking for an earlier tweak or override which hadn't been cancelled.
> 
> Paul
> 
> 
> From: Jin Choi  
> To:  
> Sent: 15/08/2023 23:11 
> Subject: strange detached beam issue 
> 
> I have a section of piano music where two voices start in the treble clef and 
> subsequently move down into the bass clef. When the right hand moves down, 
> the beam stays in the treble clef unattached to anything: 
> 
> When I try to isolate this section, the problem does not occur. I am 
> mystified as to what is going on. What might be some things I could try? 



Re: s-curve slurs across staves?

2023-08-17 Thread Jean Abou Samra
Le jeudi 17 août 2023 à 12:38 -0400, Jin Choi a écrit :
> and also discussion of being able to do it in Frescobaldi under Layout Control
> Mode, which appears to have moved to Tools/Viewers/Layout Control Options but
> now has no option for displaying control points.

The reason it was removed is that the feature has been added to LilyPond itself.
Use \vshape instead of \shape to see the control points, then remove the "v".


signature.asc
Description: This is a digitally signed message part


Re: s-curve slurs across staves?

2023-08-17 Thread Jin Choi
It was “Adjusting slurs and ties in LilyPond”, from this group’s archives:
https://lists.gnu.org/archive/html/lilypond-user/2019-10/pdfn4OnsjHZAm.pdf

Some of the features look very handy to describe control points as polar 
coordinates, but I don’t want to drop in a whole mass of code just for that.

I did find a snippet (also from this group’s archives) for displaying the 
actual control points, which helped immensely with tweaking Lukas’s example, 
and also discussion of being able to do it in Frescobaldi under Layout Control 
Mode, which appears to have moved to Tools/Viewers/Layout Control Options but 
now has no option for displaying control points.


> On Aug 16, 2023, at 12:56 PM, William Rehwinkel 
>  wrote:
> 
> What PDF did you find this in?
> 
> -William
> 
> On 8/16/23 12:50, Jin Choi wrote:
>> I came across a PDF describing updates to \shape that let you use head 
>> centered coordinates and polar coordinates that would make this easier. But 
>> my 2.24.0 version of lilypond doesn’t seem to include \shapeII. What is the 
>> status of that?
>> 
>>> On Aug 16, 2023, at 5:33 AM, Lukas-Fabian Moser  
>>>  wrote:
>>> 
>>> Hi Jin,
>>> 
>>> Am 16.08.23 um 04:48 schrieb Jin Choi:
 Is it possible to get this style of s-curve shaped slurs across staves?
>>> It's possible, but it's not fun.
>>> 
>>> \version "2.24.0"
>>> 
>>> \new PianoStaff
>>> <<
>>>   \new Staff = upper {
>>> <<
>>>   {
>>>   r8
>>>   \shape #'((0 . 0) (4 . -2) (0 . 6) (1 . 3)) Slur
>>>   8_(   \change Staff = lower 4)
>>>   }
>>>   \new Voice { s2 r }
>>> >>
>>>   }
>>>   \new Staff = lower \with { \clef bass } {
>>> cis,4 r s r
>>> 
>>>   }
>>> Slurs live in a single voice (that's something I'm working on, but I don't 
>>> have much time for LilyPond work at the moment), so we have to create one 
>>> voice that switches to the other staff on the way. Then we have to adjust 
>>> the control points manually, a task which is made harder by the need to 
>>> manually move the right tip of the slur from "under the note" to "above the 
>>> note".
>>> 
>>> There's definitely room for improvement, both in my example and in LilyPond 
>>> proper.
>>> 
>>> Lukas
>>> 
>> 
> 
> -- 
> + --- +
> |   William Rehwinkel - Oberlin College and   |
> |  Conservatory '24   |
> |will...@williamrehwinkel.net    
>   |
> | PGP key:|
> | https://ftp.williamrehwinkel.net/pubkey.txt |
> + --- +



arranger.ly with lilypond 2.25 : intlog2 fatal error

2023-08-17 Thread Raphael HARDY
‌Hello!
I'm regularly using the arranger.ly library to make scores for children 
orchestras
When trying to use it with lilypond v2.25, I sometimes get
fatal error: intlog2 with negative argument: 0

For example using this small code that works as expected on 2.24 and triggers 
the fatal error on 2.25

\version "2.25.7"
%\version "2.24.2"
\include "arranger.ly"
\language "english"

global = { s1 * 4 } % get a 4 bars score

all = #'( flute ) % add instrument(s)

#(begin
  (init all)
  (fill 'flute #{ c''4 #} 1 5 ) ; fill 4 bars with quarter notes
  (rm 'flute '(3 -4) #{ r4 #} ) ; insert a rest one beat before bar 3
  )

\flute

%%

I can see where arranger.ly uses ly:intlog2 but I don't understand the error. 
Any idea on what could be the cause?


Re: "Slash" in figured bass

2023-08-17 Thread Lukas-Fabian Moser



Am 17.08.23 um 13:05 schrieb Jean Abou Samra:

Le jeudi 17 août 2023 à 12:28 +0200, Lukas-Fabian Moser a écrit :

(The even friendlier syntax variant  would require changing the
lexer/parser, I think.)

Why don't you just do

   <"/">

?


Two reasons:

- I wasn't aware that figures support " " without a \markup
- To me, <_/> and in particular  feel closer to having semantic input.

But thanks, in particular for the nice design using \beam! :-)

Lukas




Re: "Slash" in figured bass

2023-08-17 Thread Lukas-Fabian Moser




The slash is pronounced the best of several possibilites by
C. Ph. E. Bach [...]

Thanks.  Please open an issue for SMuFL at

   https://github.com/w3c/smufl/issues

so that this slash symbol gets added to the figured bass glyphs.

https://github.com/w3c/smufl/issues/279



Re: "Slash" in figured bass

2023-08-17 Thread Werner LEMBERG


>> In particular, there is no fitting glyph in the SMuFL specification
>> (AFAICS).  Consequently, a simple `\markup` solution is probably
>> the way to go.
> 
> The slash is pronounced the best of several possibilites by
> C. Ph. E. Bach [...]

Thanks.  Please open an issue for SMuFL at

  https://github.com/w3c/smufl/issues

so that this slash symbol gets added to the figured bass glyphs.


Werner



Re: "Slash" in figured bass

2023-08-17 Thread Jean Abou Samra
Le jeudi 17 août 2023 à 12:28 +0200, Lukas-Fabian Moser a écrit :
> (The even friendlier syntax variant  would require changing the 
> lexer/parser, I think.)

Why don't you just do

  <"/">

?



Obviously, you can customize it with


\version "2.25.7"

slashMarkup =
\markup
\beam #0.5 #2.0 #0.3

\layout {
  \override Score.BassFigure.stencil =
  #(grob-transformer
'stencil
(lambda (grob orig)
  (if (equal? "/" (ly:grob-property grob 'text))
  (grob-interpret-markup grob slashMarkup)
  orig)))
}

<<
   \new FiguredBass \figuremode {
 <"/"> <6> <"/"> <6>
   }
   \new Staff \with { \clef bass } {
 f4 e d c
   }
 >>
 


signature.asc
Description: This is a digitally signed message part


Software Freedom Song

2023-08-17 Thread lilypond

Hi,

I'm Jurgen, volunteering for Software Freedom Day 
. Some friends at the FSF recommended me 
to reach out to your team with this:


For Software Freedom Day (Sept. 16th), the team Software Freedom Day 
team creating the best Software Freedom Song, can win a nice prize 
donated by MuseScore.


I think it would be cool if someone using Lilypond would create a song 
about Software Freedom!


You can find more details here: 
https://www.digitalfreedomfoundation.org/index.php/171-software-freedom-day-music-challenge


You can join us to chat on Matrix 
 if you have more 
questions.


Hope to be hearing from you!

All the best,
Jurgen