lilypond-user
[Top][All Lists]
Advanced

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

Re: Incipit alignment


From: Martin Baker
Subject: Re: Incipit alignment
Date: Tue, 19 Apr 2022 14:26:46 +0100

Hi David. Thanks so much for your quick response. Does the attached code help? M

\version "2.22.2"
\language "english"

incipitwidth = 5

global = 
        {
        \key g \major
        }

SopranoOne = 
        \relative c''
        {
        e1 |
        }

AltoOne = 
        \relative c''
        {
        R1 |
        }

TenorOne = 
        \relative c'
        {
        R1 |
        }

BassOne = 
        \relative c'
        {
        R1 |
        }

incipitCantus = \markup {
        \score
                {
                        {
                        \set Staff.instrumentName = "Cantus"
                        \override NoteHead.style = #'neomensural
                        \override Rest.style = #'neomensural
                        \override Staff.TimeSignature.style = #'neomensural
                        \clef "petrucci-c1"
                        \key f \major
                        \time 4/4
                        d''1
                        }
                \layout {
                line-width=\incipitwidth
                indent = 0
                                }
                        }
                }

incipitAltus = \markup {
        \score
                {
                        {
                        \set Staff.instrumentName = "Altus"
                        \override NoteHead.style = #'neomensural
                        \override Rest.style = #'neomensural
                        \override Staff.TimeSignature.style = #'neomensural
                        \clef "petrucci-c3"
                        \key f \major
                        \time 4/4
                        g'1
                        }
                \layout {
                line-width=\incipitwidth
                indent = 0
                                }
                        }
                }

incipitTenor = \markup {
        \score
                {
                        {
                        \set Staff.instrumentName = "Tenor"
                        \override NoteHead.style = #'neomensural
                        \override Rest.style = #'neomensural
                        \override Staff.TimeSignature.style = #'neomensural
                        \clef "petrucci-c4"
                        \key f \major
                        \time 4/4
                        d'1
                        }
                \layout {
                line-width=\incipitwidth
                indent = 0
                                }
                        }
                }

incipitBassus = \markup {
        \score
                {
                        {
                        \set Staff.instrumentName = "Bassus"
                        \override NoteHead.style = #'neomensural
                        \override Rest.style = #'neomensural
                        \override Staff.TimeSignature.style = #'neomensural
                        \clef "petrucci-f4"
                        \key f \major
                        \time 4/4
                        g1
                        }
                \layout {
                line-width=\incipitwidth
                indent = 0
                                }
                        }
                }

\score {
<<
\new ChoirStaff
<<
        \new Staff <<
        \global
        \set Staff.instrumentName = \incipitCantus
        \clef "G"
        \new Voice="v1" {
        \SopranoOne
                }
                >>
        
        \new Staff<<
        \global
        \set Staff.instrumentName = \incipitAltus
        \clef "G"
        \new Voice="v2" {
        \AltoOne
                }
                >>
        
        \new Staff<<
        \global
        \set Staff.instrumentName = \incipitTenor
        \clef "G_8"
        \new Voice="v3" {
        \TenorOne
                }
                >>
        
        \new Staff<<
        \global
        \set Staff.instrumentName = \incipitBassus
        \clef "F"
        \new Voice="v4" {
        \BassOne
                }
                >>
>>

>>
}


\paper{
        indent = 3.5\cm
        system-system-spacing =
}


> On 19 Apr 2022, at 14:09, David Kastrup <dak@gnu.org> wrote:
> 
> Martin Baker <martinbaker32@mac.com> writes:
> 
>> Hello. Does anyone have a solution to the ugly alignment of the part
>> names / incipit in the attached screenshot?
> 
>> incipitCantus = \markup {
>> \score
>> {
>> {
>> \set Staff.instrumentName = "Cantus"
>> \override NoteHead.style = #'neomensural
>> \override Rest.style = #'neomensural
>> \override Staff.TimeSignature.style = #'neomensural
>> \cadenzaOn
>> \clef "petrucci-c1"
>> \key f \major
>> \time 4/4
>> d''1
>> }
>> \layout {
>> line-width=\incipitwidth
>> indent = 0
>> }
>> }
>> }
>> 
>> In the score block
>> \set Staff.instrumentName = \incipitCantus
>> 
>> In the paper block
>> indent = 3.5\cm
>> 
> 
> I am not going to spend the 10 minutes it takes to secondguess how to
> fudge a compilable example from those sketches.  It's possible others
> will.  However you definitely increase your chances of getting good
> quality answers by doing everything except the part you are having
> problems with yourself rather than force every single person wanting to
> answer you to first doing the same gruntwork for your sake and probably
> running out of steam before even getting to your actual problem.
> 
> That process of creating everything key-ready for supplying the answer
> is supposed to be described in <https://lilypond.org/tiny-examples>.  It
> probably is not clear enough.
> 
> -- 
> David Kastrup




reply via email to

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