[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 Voices | 1 Staff | Mensuration Lines | Lyrics
From: |
Valentin Petzel |
Subject: |
Re: 2 Voices | 1 Staff | Mensuration Lines | Lyrics |
Date: |
Sat, 11 Feb 2023 21:57:36 +0100 |
Hello Joei,
There are two small mistakes in your code:
\voices still requires you to to separate the Voices using \\, as you can see
by comparing this
\new Staff \voices 1,2,3 << { c' d' e'} a2. {c'4 b2} >>
to this:
\new Staff \voices 1,2,3 << { c' d' e'} \\ a2. \\ {c'4 b2} >>
And second \lyricsto needs to be placed in some Lyrics context, so do
\new Lyrics \lyricsto ...
As a small remark: While
\voices 1,2 << \global \sopI \\ \sopII >>
does do the correct thing it might be easier to read to do
<< \global \voices 1,2 << \sopI \\ \sopII >> >>
But that is a question of preference and philosophy. So the fixed code would
be:
\version "2.24.0"
global = {
\hide Staff.BarLine
s1 s
\undo \hide Staff.BarLine
\bar "|."
}
sopI = \relative c'' {
c1 c
}
sopII = \relative c' {
f1 f
}
bass = \relative c'' {
c1 c
}
words = \lyricmode {
la la
}
\new StaffGroup
<<
\new Staff {
\voices 1,2<< \global \sopI \\ \sopII >>
}
\new Lyrics \lyricsto "2" \words
\new Staff { << \global \bass >> }
>>
Cheers,
Valentin
Am Samstag, 11. Februar 2023, 21:39:06 CET schrieb Johannes Roeßler:
> Hi Group,
>
> me again - I try to combine a few things I've learned - but fail.
>
> I would like to have mensuration lines (using the example from here:
> https://lilypond.org/doc/v2.22/Documentation/notation/working-with-ancient-m
> usic_002d_002dscenarios-and-solutions) but I also need to have two voices in
> one staff.
>
> This is what I've tried:
>
>
> #########################
>
> \version "2.24.0"
> global = {
> \hide Staff.BarLine
> s1 s
> \undo \hide Staff.BarLine
> \bar "|."
> }
>
> sopI = \relative c'' {
> c1 c
> }
>
> sopII = \relative c' {
> f1 f
> }
>
> bass = \relative c'' {
> c1 c
> }
>
> words = \lyricmode {
> la la
> }
>
> \new StaffGroup
> <<
> \new Staff {
> \voices 1,2<< \global \sopI \sopII >>
> }
> \lyricsto "2" { \words }
>
> \new Staff { << \global \bass >> }
>
>
> ################
>
>
> I'm sure "\global" is not in the right position - but I still do not
> understand enough of the concept to figure out, where to place it
>
> Cheers
> Joei
signature.asc
Description: This is a digitally signed message part.