lilypond-user
[Top][All Lists]
Advanced

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

Re: Complex Tempo Marking


From: Lukas-Fabian Moser
Subject: Re: Complex Tempo Marking
Date: Fri, 15 Oct 2021 21:31:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

Hi,
Does anyone have code I could use to indicate a tempo marking that shows two 
barred eighth-notes equal to a dotted eighth-note triplet?

Also, as a general inquiry, what would be needed to have notation in a markup? 
(Would this be a major Scheme coding project!?)

I've searched through the documentation, and the group postings, but I suspect 
I'm not using the right search terms. Any direction would be appreciated.

It's perfectly possible already to use notation in a markup, namely \markup { \score { ... } }. In order to only display single notes, that score has to be stripped down considerably, which is a bit of work but absolutely possible.

Now, I'm not sure what you mean by barred eigth-notes versus dotted eigth-note triplets, but ignoring "barred" and "dotted", a possible markup would be:

\version "2.22"

#(define-markup-command (rhythm layout props content) (ly:music?)
   #:properties ((time #f))
   (interpret-markup layout props #{
     \markup {
       \score {
         \new RhythmicStaff \with {
           \override StaffSymbol.line-count = 0
           \override Rest.staff-position = 2
           \override BarLine.bar-extent = #'(-0.5 . 2)
           \override TimeSignature.Y-offset = 0.5
           #(if (not time)
                #{
                  \with { \remove Time_signature_engraver }
                #})
         }
         {
           #(if time #{ \time $time #})
           #content
         }
         \layout {
           indent = 0
           #(layout-set-staff-size 12)
         }
       }
     } #}))

{
  c'4 4 4 4
  \bar "||"
  \override Score.MetronomeMark.self-alignment-X = #CENTER
  \tempo \markup {
    \rhythm { 8[ 8] }
    =
    \rhythm { \tuplet 3/2 { 8[ 8 8] } }
  }
  c'4 4
}

Improvements are certainly possible.

Lukas




reply via email to

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