[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug: Grace note at the beginning makes instrumentName disap
From: |
Hwaen Ch'uqi |
Subject: |
Re: Possible bug: Grace note at the beginning makes instrumentName disappear? |
Date: |
Wed, 16 Feb 2022 12:36:06 -0500 |
Greetings Thomas,
In the case of grace notes, the instrumentName must be placed in a \with block.
GraceStaff = \new Staff \with {
instrumentName = #"Grace"
}
<<
\GraceVoice
>>
Not sure if the curly and angled braces work exactly the same way,
because I haven't done this with variables, but this is the principle
involved.
hth,
Hwaen Ch'uqi
On 2/16/22, Thomas Scharkowski <t.scharkowski@t-online.de> wrote:
> Grace note at the beginning makes instrumentName disappear:
> macOs 12.1
> LilyPond 2.23.6
>
> --
> \version "2.23.6"
>
> GraceVoice = \new Voice
> {
> \grace
> c'8 b4
> }
>
> GraceStaff = \new Staff
> <<
> \set Staff.instrumentName = "Grace"
> \GraceVoice
>>>
>
> \score {
> \GraceStaff
> }
>
> NoGraceVoice = \new Voice
> {
> b4
> }
>
> NoGraceStaff = \new Staff
> <<
> \set Staff.instrumentName = "NoGrace"
> \NoGraceVoice
>>>
>
> \score {
> \NoGraceStaff
> }
>
>