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

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

Re: Dessiner la ronde comme une tête de blanche


From: Pierre Perol-Schneider
Subject: Re: Dessiner la ronde comme une tête de blanche
Date: Tue, 11 Oct 2016 23:27:56 +0200

Bonjour Olivier,

Alors:
1) je n'ai pas la réponse dans le détail. Je t'ai proposé les deux options dans mon mini-exemple, le base-shortest... semble mieux resserrer les notes.
2) aucune différence. #'ly:make-monment 1 2) est une notation plus ancienne
3) Heureux que cela te convienne
4)  \time 2/1 \set Staff.timeSignatureFraction = 2/2 : Bravo, bien plus malin que moi ! Mon tweak n'offre aucun avantage.

Cordialement,
Pierre

Le 11 octobre 2016 à 22:39, Olivier Miakinen <address@hidden> a écrit :
Bonjour Pierre,

Le 11/10/2016 12:01, Pierre Perol-Schneider a écrit :
>
>  [...]
>     %% Resserrer les notes:
>     %% Option 1:
>     %\override SpacingSpanner.base-shortest-duration = #(ly:make-moment 1 1)
>
>     %%option 2:
>     \override SpacingSpanner.common-shortest-duration = #(ly:make-moment 1 1)

Sur
http://lilypond.org/doc/v2.19/Documentation/notation/changing-spacing.fr.html
et
http://lilypond.org/doc/v2.19/Documentation/notation/changing-horizontal-spacing
on lit respectivement :
SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/2)
et
SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/16)

Du coup, j'ai deux questions :
1) Quelle différence y a-t-il entre common-shortest-duration et
   base-shortest-duration ?
2) Y a-t-il une différence entre #(ly:make-moment 1/2) et
   #(ly:make-moment 1 2) ?

>     %% Changer les [rondes]:
>     \override NoteHead.stencil =
>       #(lambda (grob)
>         (let ((duration (ly:grob-property grob 'duration-log)))
>               (case duration
>                 ((0) (grob-interpret-markup grob (markup #:musicglyph "noteheads.s1")))
>                 (else (ly:note-head::print grob)))))

C'est tout simplement parfait ! Un grand merci pour cela.

>   %% Changer la métrique affichée:
>   \tweak stencil #(lambda (grob)
>                     (grob-interpret-markup grob
>                       (markup #:musicglyph "timesig.C22")))
>   \time 2/1

J'avais écrit :
 \time 2/1 \set Staff.timeSignatureFraction = 2/2

Y a-t-il un avantage au \tweak stencil ?


--
Olivier Miakinen

_______________________________________________
liste de diffusion lilypond-user-fr
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user-fr


reply via email to

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