lilypond-user
[Top][All Lists]
Advanced

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

Re: Creating a "swing rhythm" indication


From: Thomas Morley
Subject: Re: Creating a "swing rhythm" indication
Date: Wed, 20 Nov 2019 22:03:49 +0100



Am Mi., 20. Nov. 2019 um 14:32 Uhr schrieb Romel Bismonte <address@hidden>:

Hello,

 

I was studying the LSR snippet that can insert an alternate rhythm indication (e.g., “swing”, “shuffle”, “maestoso”, etc.) as discussed in Item 204:

 

http://lsr.di.unimi.it/LSR/Item?id=204

 

Since I did not need the other options, I am attempting to boil down the snippet to just the thing I need. My attempt is as follows:

 

\version "2.18.2"

 

swingindic = \markup {

  \line \general-align #Y #DOWN {

    \score {

      \new Staff \with {         

        fontSize = #-4

        \override StaffSymbol.staff-space = #(magstep -4)

        \override StaffSymbol.line-count = #0

        \override VerticalAxisGroup.Y-extent = #'(0 . 0)

      }

      {

        \relative c' { \stemUp b8[ b] }

     

        s4.^\markup { \halign #0 "=" }

        \relative c' { \stemUp \tuplet 3/2 { b'4 b8 } }

      }

      \layout {

        ragged-right = ##t

        indent = 0

        \context {

          \Staff

          \remove "Clef_engraver"

          \remove "Time_signature_engraver"

        }       

      }

    }

  }

}

 

\swingindic

 

This works, but the first note cluster (the two eighth notes) are placed lower than the second note cluster (the triplet between the quarter and eighth note):

 

 

What can I do to align the note heads on the same line? Alternatively, what am I missing from the snippet implementation? At this point I am not opposed to using the whole snippet in my piece, but I ask here anyway as a learning opportunity to see how the markup works in this case. Thank you in advance for any assistance.

 

Romel Bismonte

 

P.S. I’ve been using Lilypond since Version 2.12, and I have to say it’s my most used program (together with Frescobaldi) as a choir director. Thank you for developing and helping to support such a great program.


There's
http://lsr.di.unimi.it/LSR/Item?id=1029
as well.


Cheers,
  Harm

reply via email to

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