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: Olivier Miakinen
Subject: Re: Dessiner la ronde comme une tête de blanche
Date: Tue, 11 Oct 2016 22:39:15 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

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



reply via email to

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