lilypond-user
[Top][All Lists]
Advanced

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

Re: creating "null" time signature for unmetered cadenzas


From: Aaron Hill
Subject: Re: creating "null" time signature for unmetered cadenzas
Date: Sun, 04 Oct 2020 04:33:34 -0700
User-agent: Roundcube Webmail/1.4.2

On 2020-10-04 4:24 am, N. Andrew Walsh wrote:
Hi Pierre,

On Sun, Oct 4, 2020 at 1:04 PM Pierre Perol-Schneider <
pierre.schneider.paris@gmail.com> wrote:

Hi Andrew,
How about:

\version "2.20.0"
{
  \time 6/1
  \override Staff.TimeSignature.stencil = #(lambda (grob)
    (grob-interpret-markup grob #{ \markup\compound-meter #'(0 0) #}))
  c'4
}


That did the trick! Many thanks.

Here is a more generalized approach, in case you need to apply this strategy elsewhere:

%%%%
\version "2.20.0"

textStencil =
#(define-music-function
  (grob text)
  (key-list? markup?)
  #{ \override #grob . stencil = #ly:text-interface::print
     \override #grob . text = #text #})

timeStencil = \textStencil Staff.TimeSignature \etc

{
  \once \timeStencil \markup \compound-meter #'(0 0)
  \time 3/2
  | a'2 b'4. a'8 g'4 g'
  \once \timeStencil \markup \vcenter \huge \bold V
  \time 5/4
  | a'4 b'4. c''8 b' a' b'4
  \time 6/8
  | a'8 g' fis' gis'4. \bar "|."
}
%%%%


-- Aaron Hill

Attachment: timesig-stencil.cropped.png
Description: PNG image


reply via email to

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