[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forcing display of a time signature
From: |
Thomas Morley |
Subject: |
Re: Forcing display of a time signature |
Date: |
Wed, 21 Jul 2021 13:39:04 +0200 |
Am Mi., 21. Juli 2021 um 12:07 Uhr schrieb N. Andrew Walsh
<n.andrew.walsh@gmail.com>:
>
> Hi List,
>
> I have the following:
>
> %%%%
> \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'
> \time 5/4
> | a'4 b'4. c''8 b' a' b'4
> \time 6/8
> | a'8 g' fis' gis'4. \bar "|."
> }
> %%%%
>
> Let us say that I want to have several measures with the "0/0" time
> signature, while other instruments are playing in metered 3/2. At some point,
> I want to return the unmetered voice to the metered 3/2 the rest are playing,
> and thus want to display the time signature at that point *for that
> instrument only*. Is there a way to force (re-)displaying a time signature in
> one Staff, without invoking the \time command and displaying it for all
> voices?
>
> Thanks for the help,
>
> A
How about:
<<
\new Staff { \time 3/4 b'4 4 4 2. }
\new Staff { b'8 8 2 \set Staff.timeSignatureFraction = #'(3 . 4) 2. }
\new Staff { b'4. 8 r4 2. }
>>
Cheers,
Harm