lilypond-user
[Top][All Lists]
Advanced

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

Re: sectionLabel with box - global formatting


From: Simon Martineau
Subject: Re: sectionLabel with box - global formatting
Date: Sun, 2 Apr 2023 02:38:05 +0200

Hi Stephan,

You can try this way :

\override Score.SectionLabel.stencil = #(make-stencil-boxer 0.1 0.5 ly:text-interface::print)

Simon


Le sam. 1 avr. 2023 à 21:04, <lilypond-user-request@gnu.org> a écrit :
Send lilypond-user mailing list submissions to
        lilypond-user@gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.gnu.org/mailman/listinfo/lilypond-user
or, via email, send a message with subject or body 'help' to
        lilypond-user-request@gnu.org

You can reach the person managing the list at
        lilypond-user-owner@gnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lilypond-user digest..."


Today's Topics:

   1. Alternative beginnings (John Burt)
   2. Re: Alternative beginnings (David Kastrup)
   3. Re: Alternative beginnings (Jean Abou Samra)
   4. Re: Alternative beginnings (Jonathan Poulin)
   5. sectionLabel with box - global formatting (Stephan Schöll)
   6. LilyPond 2.25.3 (Jonas Hahnfeld)


----------------------------------------------------------------------

Message: 1
Date: Sat, 1 Apr 2023 12:05:19 -0400
From: John Burt <burt@brandeis.edu>
To: lilypond-user <lilypond-user@gnu.org>
Subject: Alternative beginnings
Message-ID:
        <CAAetDa4YcBNQ7_6HCef5W0fP4HdhsLtDz6f2UXsuQxj_obNf8w@mail.gmail.com" target="_blank" rel="noreferrer">CAAetDa4YcBNQ7_6HCef5W0fP4HdhsLtDz6f2UXsuQxj_obNf8w@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I know how to use \repeat volta to produce alternative endings. I'm trying
to set a song in which the music for verses 2 and 3 is different from the
music for verse 1. Is there something like \repeat volta for alternative
beginnings?
thanks
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnu.org/archive/html/lilypond-user/attachments/20230401/ac934b0c/attachment.htm>

------------------------------

Message: 2
Date: Sat, 01 Apr 2023 18:21:04 +0200
From: David Kastrup <dak@gnu.org>
To: John Burt <burt@brandeis.edu>
Cc: lilypond-user <lilypond-user@gnu.org>
Subject: Re: Alternative beginnings
Message-ID: <87bkk7d15b.fsf@fencepost.gnu.org" target="_blank" rel="noreferrer">87bkk7d15b.fsf@fencepost.gnu.org>
Content-Type: text/plain

John Burt <burt@brandeis.edu> writes:

> I know how to use \repeat volta to produce alternative endings. I'm trying
> to set a song in which the music for verses 2 and 3 is different from the
> music for verse 1. Is there something like \repeat volta for alternative
> beginnings?

Would

{ Verse 1
  \repeat volta 3 { chorus
    \alternative { { verse 2 }
                   { verse 3 }
                   { final bar } } } }

do the trick for you?


--
David Kastrup



------------------------------

Message: 3
Date: Sat, 01 Apr 2023 18:22:10 +0200
From: Jean Abou Samra <jean@abou-samra.fr>
To: John Burt <burt@brandeis.edu>, lilypond-user
        <lilypond-user@gnu.org>
Subject: Re: Alternative beginnings
Message-ID:
        <e4a13d5e432bbd62498d60fdc377dc5196e09b57.camel@abou-samra.fr" target="_blank" rel="noreferrer">e4a13d5e432bbd62498d60fdc377dc5196e09b57.camel@abou-samra.fr>
Content-Type: text/plain; charset="utf-8"

Le samedi 01 avril 2023 à 12:05 -0400, John Burt a écrit :

> > I know how to use \repeat volta to produce alternative endings. I'm trying to set a song in which the music for verses 2 and 3 is different from the music for verse 1. Is there something like 
> > \repeat volta for alternative beginnings? 


Since version 2.24, `\alternative` is not limited to the end of a repeat. You can use

```
\version "2.24.1"

{
  \repeat volta 2 {
    \alternative {
      \volta 1 {
        c'1
      }
      \volta 2 {
        d'1
      }
    }
    e'1
  }
}
```

Note that the legacy syntax `\repeat volta x { ... } \alternative { ... }` is not
encouraged anymore, the syntax `\repeat volta x { ... \alternative { ... } }` is
preferred now.

Best,

Jean


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnu.org/archive/html/lilypond-user/attachments/20230401/dfd8efbe/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <https://lists.gnu.org/archive/html/lilypond-user/attachments/20230401/dfd8efbe/attachment.sig>

------------------------------

Message: 4
Date: Sat, 1 Apr 2023 14:03:23 -0400
From: Jonathan Poulin <jopoulin@gmail.com>
To: John Burt <burt@brandeis.edu>
Cc: lilypond-user <lilypond-user@gnu.org>
Subject: Re: Alternative beginnings
Message-ID:
        <CAGMz-a6wgMRrkjNggJSZovdWPwC8ecRHqNeKJjVamzoQTY9Vfg@mail.gmail.com" target="_blank" rel="noreferrer">CAGMz-a6wgMRrkjNggJSZovdWPwC8ecRHqNeKJjVamzoQTY9Vfg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Maybe, this is what you want to get.

\version "2.24.1"

{
  a'1
  \repeat volta 3 {
    b'1
    \alternative {
      \volta 1 {
        c'1
      }
      \volta 2,3 {
        d'1
      }
    }
  }
  e'1
}

regards
Jonathan

Le sam. 1 avr. 2023 à 12:22, Jean Abou Samra <jean@abou-samra.fr> a écrit :

> Le samedi 01 avril 2023 à 12:05 -0400, John Burt a écrit :
>
> I know how to use \repeat volta to produce alternative endings. I'm trying
> to set a song in which the music for verses 2 and 3 is different from the
> music for verse 1. Is there something like
> \repeat volta for alternative beginnings?
>
> Since version 2.24, \alternative is not limited to the end of a repeat.
> You can use
>
> \version "2.24.1"
>
> {
>   \repeat volta 2 {
>     \alternative {
>       \volta 1 {
>         c'1
>       }
>       \volta 2 {
>         d'1
>       }
>     }
>     e'1
>   }
> }
>
> Note that the legacy syntax \repeat volta x { ... } \alternative { ... }
> is not encouraged anymore, the syntax \repeat volta x { ... \alternative
> { ... } } is preferred now.
>
> Best,
>
> Jean
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnu.org/archive/html/lilypond-user/attachments/20230401/96b144dd/attachment.htm>

------------------------------

Message: 5
Date: Sat, 1 Apr 2023 21:02:10 +0200
From: Stephan Schöll <music@gmx.ch>
To: lilypond-user <lilypond-user@gnu.org>
Subject: sectionLabel with box - global formatting
Message-ID: <7e8b718d-8989-bfae-66ff-3c45ab29ab6f@gmx.ch" target="_blank" rel="noreferrer">7e8b718d-8989-bfae-66ff-3c45ab29ab6f@gmx.ch>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi Ponders

In earlier scores of mine I used

/mark /markup {  /box "Mark Label" }

Now that I'm migrating (some of) those to /sectionLabel (yes, I can
simply replace /mark by /sectionLabel) I wonder how I could add the box
globally. I know that I could accomplish that with a substitution
function like

sctLbl =
#(define-music-function
   (label)
   (markup?)
   #{
     \sectionLabel \markup {\box #label }
   #})

\relative c' { \sctLbl "Hello" c d e f }

But my programmer's gut feeling tells me that a configuration approach
would be the preferred one. I guess the solution looks something like this

\layout {

   \context {

     \Score

     \set Score.markFormatter = ...

   }

}

TIA

Stephan




------------------------------

Message: 6
Date: Sat, 01 Apr 2023 21:03:30 +0200
From: Jonas Hahnfeld <hahnjo@hahnjo.de>
To: lilypond-devel@gnu.org, lilypond-user@gnu.org
Subject: LilyPond 2.25.3
Message-ID: <11fcbca099f7345c0e3c3bbc2588daa050ed6cb6.camel@hahnjo.de" target="_blank" rel="noreferrer">11fcbca099f7345c0e3c3bbc2588daa050ed6cb6.camel@hahnjo.de>
Content-Type: text/plain; charset="utf-8"

We are happy to announce the release of LilyPond 2.25.3. This is termed
a development release, but these are usually reliable for testing new
features and recent bug fixes. However, if you require stability, we
recommend using version 2.24.1, the current stable release.
Please refer to the Installing section in the Learning Manual for
instructions how to set up the provided binaries:
https://lilypond.org/doc/v2.25/Documentation/learning/installing


P.S.: This is not an April Fool, but just an ordinary and boring
unstable release...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.gnu.org/archive/html/lilypond-user/attachments/20230401/b123a099/attachment.sig>

------------------------------

Subject: Digest Footer

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


------------------------------

End of lilypond-user Digest, Vol 245, Issue 2
*********************************************

reply via email to

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