From 108b97b6f1c32ee5eccb37db2d611776c32cfce8 Mon Sep 17 00:00:00 2001 From: Jakob Krueger Date: Sun, 23 Jul 2023 10:49:12 +0200 Subject: [PATCH] Swing style --- swing_style.ly | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 swing_style.ly diff --git a/swing_style.ly b/swing_style.ly new file mode 100644 index 0000000..c9602fe --- /dev/null +++ b/swing_style.ly @@ -0,0 +1,48 @@ +swing = \mark \markup { + \line \general-align #Y #DOWN { + \score { + \new Staff \with { + fontSize = #-2 + \override StaffSymbol.line-count = #0 +% \override VerticalAxisGroup.Y-extent = #'(0 . 0) + } + \relative { + \stemUp + \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 3 16) + \override Beam.positions = #'(2 . 2) + h'8[ h8] + } + \layout { + ragged-right= ##t + indent = 0 + \context { + \Staff \remove "Clef_engraver" + \remove "Time_signature_engraver" + } + } + } + " =" + \score { + \new Staff \with { + fontSize = #-2 + \override StaffSymbol.line-count = #0 +% \override VerticalAxisGroup.Y-extent = #'(0 . 0) + } + \relative { + \stemUp + \override Score.SpacingSpanner.common-shortest-duration = #(ly:make-moment 3 16) + \override Stem.length = #4.5 + \tuplet 3/2 { h'4 h8 } + } + \layout { + ragged-right= ##t + indent = 0 + \context { + \Staff + \remove "Clef_engraver" + \remove "Time_signature_engraver" + } + } + } + } +} \ No newline at end of file