\version "2.22.2" #(set-global-staff-size 20) %taille des portées \include "lilyjazz.ily" %--------------------------- #(define mydrums '( (bassdrum default #f -3) (ridecymbal cross #f 5) (snare default #f 0) (hihat cross #f 4) (openhihat default #f 4) (halfopenhihat cross #f 1) (pedalhihat cross #f -5) (sidestick cross #f 0) (hightom default #f 2) (tomfh default #f -1) (tomh default #f 0) (highfloortom default #f -2) (lowmidtom default #f -1) )) %------------------------------------------ rhythmMarkStaffReduce = #-3 rhythmMarkLabelFontSize = #-2 %--------------------------------- rhythmMark = #(define-music-function (parser location label musicI musicII ) (string? ly:music? ly:music?) #{ \mark \markup { \line \general-align #Y #DOWN { \combine \italic \fontsize #rhythmMarkLabelFontSize $label \transparent \italic \fontsize #rhythmMarkLabelFontSize f \score { \new Staff \with { fontSize = #rhythmMarkStaffReduce \override StaffSymbol.staff-space = #(magstep rhythmMarkStaffReduce) \override StaffSymbol.line-count = #0 \override VerticalAxisGroup.Y-extent = #'(-0.85 . 4) } { \relative c' { \stemUp $musicI } \once \override Score.TextScript.Y-offset = #-0.4 s4.^\markup{ \halign #-1 \italic "=" } \relative c' { \stemUp $musicII } } %----------------------------------- \layout { ragged-right= ##t indent = 0 \context { \Staff \remove "Clef_engraver" \remove "Time_signature_engraver" } } % layout end } % Score end } % line end } % markup end #}) %------------------------------------ rhyMarkIIEighths = { \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 3/16) b'8[ b8] } %----------------------------------------- rhyMarkTriplets = { \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 3/16) \tuplet 3/2 { b'4 b8 } } %------------------------------------------- Crash = { \once \override NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = \markup { \combine \halign #-0.5 \draw-circle #0.70 #0.2 ##f \musicglyph "noteheads.s2cross" } } %-------------------------------- Haut = \drummode { \numericTimeSignature \time 4/4 \rhythmMark #"Swing" \rhyMarkIIEighths \rhyMarkTriplets \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums) \repeat unfold 6{hh4 hh8 hh hh4 hh8 hh} \Crash cymr4 s\break \repeat unfold 6{cymr4 cymr8 cymr } hho8 (hhp) s s \Crash cymr4 \break } %------------------------------- Bas = \drummode { \numericTimeSignature \time 4/4 \repeat unfold3{bd4 sn8 bd8 bd4 sn4 } bd4 sn tomh tomml8 tomfh \repeat unfold3{bd4 sn8 bd8 bd4 sn4 } bd s bd s } %---------------------------------------- \score { \new DrumStaff << \new DrumVoice { \voiceOne \Haut} \new DrumVoice { \voiceTwo \Bas } >> \layout {indent = 0} }