|
From: | Christophe Pochon |
Subject: | Re: Traits obliques pour partition de batterie |
Date: | Fri, 1 Feb 2019 10:59:52 +0100 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |