[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: time signature and grace note
From: |
Leo Correia de Verdier |
Subject: |
Re: time signature and grace note |
Date: |
Wed, 25 Nov 2020 11:32:30 +0100 |
This is a hard-solved issue we have lived with for long time, ant probably the
most common source of questions on this list.
While Andrew’s solution is perfect in this situation, where the time signatures
in the second voice are redundant, it may not work everywhere. The solution
would then be to insert spacers of the same length than the grace notes in the
other voices, like:
\version "2.20.0"
melody = \relative c'' {
<<
{\time 4/4 \grace c8 c4 d4 f2
\time 2/4 \grace c8 c4 d4}
\\
{\time 4/4 \grace s8 a,4 b c2
\time 2/4 \grace s8 a4 b}
>>
}
\score {\melody}
This is because ”grace time” is counted backward from its regular note value,
so in your example the time signature in voice one appears in beat 0 - 1/8
grace, that is before the grace note, while in voice two it is at beat 0
(without any grace timing), that is after the grace note. Inserting the spacer
\grace s8 moves the time signature in voice two back before the grace note.
> 25 nov. 2020 kl. 09:03 skrev Andrew Bernard <andrew.bernard@gmail.com>:
>
> Some would say you would be better writing this:
> melody = \relative c'' {
>
> \new Staff <<
> {
> \voiceOne
> \time 4/4
> \grace {c8} c4 d4 f2
> \time 2/4
> \grace {c8} c4 d4
> }
> \new Voice
> {
> \voiceTwo
> a,4 b c2
> a4 b
> }
>>>
> }
> \score {\melody}
>