lilypond-user
[Top][All Lists]
Advanced

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

Re: \markup on "topmost" voice in a Frenched score?


From: Ben
Subject: Re: \markup on "topmost" voice in a Frenched score?
Date: Thu, 14 Mar 2019 11:23:38 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3

On 3/14/2019 10:12 AM, N. Andrew Walsh wrote:
Hi List,

I have a small chamber setting that includes section titles that the client wants at the top of systems (stuff like "Interlude," "Finale," etc.). The problem I'm having is, as this is a "Frenched" score the topmost voice isn't always the same one. So I can't attach a \markup to a specific voice, but I want to find a way to apply them to whichever voice happens to be at the top of the score *at that point*.

Is there a way to do that? Is there some conditional formatting that can be applied to achieve something like that? I imagine this would also apply to tempo indications and other similar score instructions.

Thanks for the help,

A

Hello,

I can't quite picture exactly what you're describing, but if you're trying to attach markup like section titles, maybe you could just attach the markup to something like time signatures instead, and then adjust the location to taste? (see attached)

If you have any code to share from your example though, please :) Frenched scores can vary a good amount depending on where and how you cutaway, etc.

Here's an example of what I mean. Hope this helps:

\version "2.19.80"

\new Staff
{
  \numericTimeSignature
  \tweak stencil
  #(grob-transformer 'stencil (lambda (grob default)
                                (grob-interpret-markup grob
                                  #{ \markup \column {
                                    \stencil #default
                                    \vspace #-3.5
                                    \small \with-color #black "FINALE"
                                  } #})))
  \time 4/4 s1
}

\paper {
  top-margin = 0.5\in
  left-margin = 0.75\in
  right-margin = 0.75\in
  bottom-margin = 0.5\in
}

Attachment: markup_attach.png
Description: PNG image


reply via email to

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