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

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

Re: Double barre "dashed"


From: Xavier Scheuer
Subject: Re: Double barre "dashed"
Date: Tue, 1 May 2012 19:54:21 +0200

2012/5/1 Nicolas Sceaux <address@hidden>:
>
> En utilisant ce fichier bibliothèque :
>  <https://github.com/nsceaux/nenuvar/blob/master/common/custom-bars.ily>
> on peut introduire une double barre type dashed avec \bar ";;"
> Voir le fichier d'exemple test-custom-bars.ily dans le même répertoire.

Bonsoir,

Quelqu'un avait posé exactement la même question sur la liste
internationale il y a 2 semaines.  Le réponse qui avait été donnée par
Nick était la suivante :

%%%% Lily code

\version "2.15.32"

barDoubled = #(define-music-function (parser location glyph) (string?)
    (define (bar-gap-bar grob)
        (let* (
            (layout (ly:grob-layout grob))
            (weight (ly:output-def-lookup layout 'line-thickness 0.1))
            (raw-gap (ly:grob-property grob 'thin-kern))
            (gap (* raw-gap weight))
            )
            (ly:stencil-combine-at-edge (ly:bar-line::print grob)
                X RIGHT (ly:bar-line::print grob) gap)))
    #{
        \bar $glyph
        \once \override Score.BarLine #'stencil = $bar-gap-bar
    #}
)

\relative c' {

\once \override Score.RehearsalMark #'break-visibility = #begin-of-line-visible

    \mark\markup\normalsize { \musicglyph #"scripts.segno" }
    \override Score.RehearsalMark #'self-alignment-X = #RIGHT
    c4 c c c
    c c \barDoubled "dashed" \mark\markup\normalsize { Fine } c c
    c c c c
    c c c c
    \mark\markup\normalsize { D.S. al Fine }
    \bar "|."
}

%%%% End of lily code

http://lists.gnu.org/archive/html/lilypond-user/2012-04/msg00280.html
Je transmets celle de Nicolas, qui me semble meilleure, de ce côté.

@Nicolas:
Tu as pensé mettre ce genre de bout de code utile sur le LSR ?

Cordialement,
Xavier

-- 
Xavier Scheuer <address@hidden>



reply via email to

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