Great! That works fine.

Thanks!

Em qua., 29 de set. de 2021 18:15, Hans Aikema <hans.aik...@aikebah.net>
escreveu:

>
>
> On 29 Sep 2021, at 21:28, Jefferson Felix <jsfe...@gmail.com> wrote:
>
> Hi everyone,
>
> I'm working on some hymns and noticed that I need to add square brackets
> just above the treble clef to indicate the introductory part of the hymn
> (usually performed by an organ or orchestra before the choir sings).
>
> As an example, I can show a sheet of music from the hymnal of The Church
> of Jesus Christ of Latter-day Saints:
>
>
> https://media.ldscdn.org/pdf/music/hymns/2001-01-1000-nearer-my-god-to-thee-eng.pdf
>
> I tried using \startGroup and \stopGroup, but this creates a long slash
> through every bar, which is not ideal (I believe this one is for analysis
> purposes).
>
> I searched for the snippets, but I didn't find anything like that.
>
>
> Thanks,
>
> --
> ---
> Jefferson dos Santos Felix
>
>
> Inspired by LSR 843 (https://lsr.di.unimi.it/LSR/Snippet?id=843) for the
> Postscript commands to create a square hook, a way to do it that in my view
> even fits semantically is by using custom rehearsal marks
>
> %%%%%%%%%%%%%%%
>
> \version "2.22.0"
>
> introductionStartHook = \markup {
>   \path #0.25 #'((moveto 0 0)
>                  (lineto 0 0.8 )
>                  (lineto 0.8 0.8))
> }
>
> introductionEndHook = \markup {
>   \path #0.25 #'((moveto 0 0.8)
>                  (lineto 0.8 0.8)
>                  (lineto 0.8 0))
> }
>
>
> {
>   \once \override Score.RehearsalMark.self-alignment-X = #LEFT \mark
> \introductionStartHook c''2
>   d'' \once \override Score.RehearsalMark.self-alignment-X = #RIGHT \mark
> \introductionEndHook
>   e''
>   d''
> }
>
> %%%%%%%%%%%%%%%
>
>

Reply via email to