lilypond-user-fr
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \repeat segno


From: Vincent Gay
Subject: Re: \repeat segno
Date: Mon, 25 Jul 2022 10:50:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

Le 25/07/2022 à 09:31, Jean Abou Samra a écrit :
Je ne peux rien tester (vacances)

Ah, ça c'est bon les vacances. J'espère que tu en profite bien.

On y est presque !


Il ne reste plus qu'à aligner à droite le To Coda

Le code :

\version "2.23.10"
\include "lilyjazz.ily"

\paper { indent = 0 ragged-last = ##t }

\layout {
  \context {
    \Score
    \remove "Bar_number_engraver"
    segnoMarkFormatter =
      #(lambda (num context)
         (make-concat-markup
          (list-join
           (make-list
                      num
                      (make-fontsize-markup 0
                        ( make-with-color-markup "red" (make-musicglyph-markup "scripts.varsegno"))))
                     (ly:wide-char->utf-8 #x200a))))
          dalSegnoTextFormatter =
    #(lambda (context return-count marks)
       #{ \markup { \with-color #red \fontsize #2 "D.S. al Coda"  } #})
    codaMarkFormatter = #(lambda _
    #{ \markup  { \with-color #red  { "To Coda" \raise #1 \musicglyph "scripts.varcoda" } } #})
  }
}

\fixed c' {
   %\set Score.codaMarkFormatter = #format-varcoda-mark
  g1
  \repeat segno 2 {
    1 1
    \alternative {
      \volta 1 { 1 \break }
      \volta 2 \volta #'() {
        \section
        \sectionLabel \markup \with-color #red \musicglyph "scripts.varcoda"
      }
    }
  }
  1
  \bar ".."
}

-- 
Vincent Gay
Envoyé depuis mon saxo-phone :)
https://myrealbook.vintherine.org/ - http://photos.vintherine.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]