} { \stick }
>>
-%% Two scores are needed: one with drums for MIDI and the other for
-%% notation.
-\score {
- \unfoldRepeats {
- <<
- \AllMusic
- \new DrumStaff { \click }
- >>
- }
- \midi { \tempo 4 = 180 }
-}
-
-\score {
- %% Always unfold repeats in the big score. The individual parts can
- %% have repeats as they wish.
- \unfoldRepeats { \AllMusic }
- \layout {
- \tempo 4 = 180
- \context {
- %% add the RemoveEmptyStaffContext that erases rest-only staves
- \Staff \RemoveEmptyStaves
- }
- \context {
- \Score
- \numericTimeSignature
- %% Remove all-rest staves also in the first system
- \override VerticalAxisGroup.remove-first = ##t
- %% If only one non-empty staff in a system exists, still print the starting bar
- \override SystemStartBar.collapse-height = #1
- }
- }
-}
+\include "../layouts.ly"
} { \tabChordRepeats \guitar }
>>
-%% Two scores are needed: one with unfolded repeats for MIDI and the
-%% other with regular repeats for notation.
-\score {
- \unfoldRepeats {
- <<
- \AllMusic
- \new DrumStaff { \click }
- >>
- }
- \midi { \tempo 4 = 90 }
-}
-
-\score {
- \AllMusic
- \layout {
- \tempo 4 = 90
- \context {
- %% add the RemoveEmptyStaffContext that erases rest-only staves
- \Staff \RemoveEmptyStaves
- }
- \context {
- \Score
- \numericTimeSignature
- %% Remove all-rest staves also in the first system
- \override VerticalAxisGroup.remove-first = ##t
- %% If only one non-empty staff in a system exists, still print the starting bar
- \override SystemStartBar.collapse-height = #1
- }
- }
-}
+\include "../layouts.ly"
click = \drummode {
\time 4/4
+ \tempo 4 = 90
%% intro
\repeat unfold 8 { hh4 hh hh hh |}
} { \stick }
>>
-%% Two scores are needed: one with unfolded repeats for MIDI and the
-%% other with regular repeats for notation.
-\score {
- \unfoldRepeats {
- <<
- \AllMusic
- \new DrumStaff { \click }
- >>
- }
- \midi { \tempo 4 = 120 }
-}
-
-\score {
- \AllMusic
- \layout {
- \tempo 4 = 120
- \context {
- %% add the RemoveEmptyStaffContext that erases rest-only staves
- \Staff \RemoveEmptyStaves
- }
- \context {
- \Score
- \numericTimeSignature
- markFormatter = #format-mark-box-alphabet
- %% Remove all-rest staves also in the first system
- \override VerticalAxisGroup.remove-first = ##t
- %% If only one non-empty staff in a system exists, still print the starting bar
- \override SystemStartBar.collapse-height = #1
- }
- }
-}
+\include "../layouts.ly"
click = \drummode {
%% intro
\time 2/4
+ \tempo 4 = 120
hh4 hh | hh hh |
\repeat volta 2 {
hh4 hh | hh hh |
} { \stick }
>>
-%% Two scores are needed: one with unfolded repeats for MIDI and the
-%% other with regular repeats for notation.
-\score {
- \unfoldRepeats {
- <<
- \AllMusic
- \new DrumStaff { \click }
- >>
- }
- \midi { \tempo 4 = 120 }
-}
-
-\score {
- \AllMusic
- \layout {
- \tempo 4 = 120
- \context {
- %% add the RemoveEmptyStaffContext that erases rest-only staves
- \Staff \RemoveEmptyStaves
- }
- \context {
- \Score
- %% Remove all-rest staves also in the first system
- \override VerticalAxisGroup.remove-first = ##t
- %% If only one non-empty staff in a system exists, still print the starting bar
- \override SystemStartBar.collapse-height = #1
- }
- }
-}
+\include "../layouts.ly"
click = \drummode {
%% intro
\time 4/4
+ \tempo 4 = 120
\repeat unfold 2 {
hh4 hh hh hh | hh hh hh hh |
hh hh hh hh | hh hh hh hh |
--- /dev/null
+%% Two scores are needed to separately control MIDI and notation
+%% output.
+\score {
+ \unfoldRepeats {
+ <<
+ \AllMusic
+ \new DrumStaff { \click }
+ >>
+ }
+ \midi {}
+}
+
+\score {
+ %% Always unfold repeats in the big score. The individual parts can
+ %% have repeats as they wish.
+ \unfoldRepeats { \AllMusic }
+ \layout {
+ \context {
+ %% add the RemoveEmptyStaffContext that erases rest-only staves
+ \Staff \RemoveEmptyStaves
+ }
+ \context {
+ \Score
+ \numericTimeSignature
+ markFormatter = #format-mark-box-alphabet
+ %% Remove all-rest staves also in the first system
+ \override VerticalAxisGroup.remove-first = ##t
+ %% If only one non-empty staff in a system exists, still print the starting bar
+ \override SystemStartBar.collapse-height = #1
+ }
+ }
+}