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

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

Re: Traits obliques pour partition de batterie


From: Christophe Pochon
Subject: Re: Traits obliques pour partition de batterie
Date: Fri, 1 Feb 2019 10:59:52 +0100

Tu peux corriger ça en mettant un \oneVoice juste avant les traits. Et tu peux remettre \voiceOne après :

%%%%%%%%%%%
  \oneVoice \repeat unfold 3 {\comp #4 } \voiceOne
%%%%%%%%%%%


Christophe Pochon



Le ven. 1 févr. 2019 à 10:54, Denis Bitouzé <address@hidden> a écrit :
Le 01/02/19 à 10h35, Denis Bitouzé a écrit :

> Le 01/02/19 à 10h09, Christophe Pochon a écrit :
>
>> Et lui :
>>
>> [...]
>
> Haaaaa, plus que parfait : merci !

Petit problème néanmoins s'il y a 2 voix car les traits ne sont alors
pas centrés sur la portée :

--8<---------------cut here---------------start------------->8---
\version "2.19.61"
% Function to print a specified number of slashes
comp = #(define-music-function (count) (integer?)
          #{
            \override Rest.stencil =
            #ly:percent-repeat-item-interface::beat-slash
            \override Rest.thickness = #0.48
            \override Rest.slope = #1.7
            \repeat unfold $count { r4 }
            \revert Rest.stencil
          #}
          )

drumOne = \drummode {
  hh8 hh hh hh hh hh hh hh
  \repeat unfold 3 {\comp #4 }
}
drumTwo = \drummode {
  bd4 sn bd sn
  \repeat unfold 3 {s1 }
}

\score {
  \new DrumStaff   
  <<
    \new DrumVoice { \voiceOne \drumOne }
    \new DrumVoice { \voiceTwo \drumTwo }
  >>
}
--8<---------------cut here---------------end--------------->8---

--
Denis

reply via email to

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