lilypond-user
[Top][All Lists]
Advanced

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

Re: Alternative small note in brackets?


From: Valentin Petzel
Subject: Re: Alternative small note in brackets?
Date: Mon, 05 Aug 2024 01:38:02 +0200

How about this:

\new Staff <<
  {b,}
  \new CueVoice {
    \shiftOff\stemUp
    \override Parentheses.font-size = #2
    \override Parentheses.stencils =
    #(lambda (grob)
       (list (grob-interpret-markup grob (markup #:vcenter #:center-align 
#:bold "["))
             (grob-interpret-markup grob (markup #:vcenter #:center-align 
#:bold "]"))))
    \parenthesize b'
  }
>>


Cheers,
Valentin

Am Sonntag, 4. August 2024, 16:31:48 MESZ schrieb Alasdair McAndrew:
> Hello,
> 
> I have a situation where the main note is below the stave, and an
> alternative note is provided, an octave higher, which is in the stave.
> This alternative note has a small note head which is in (square) brackets,
> and its stem is in the same direction (up) as the main note.  The stem of
> the alternative note is just to the left of the stem of the main note.
> 
> I can get a reasonable effect using CueVoice, except that the
> alternative stem is to the right of the main stem, and I get a warning
> about needing a "\voiceXx or \shiftXx setting".  But I can't get this
> alternative note in brackets: experiments with \parenthesize have so far
> not worked.
> 
> Here's what I have for these notes (this is in bass clef):
> 
> << {b,} \new CueVoice {<\parenthesize b'4>} >>
> 
> So I have these questions:
> 
> 1.  How can I most easily move the cue note to the left?
> 2.  How can I get square brackets around the cue note, and slightly larger
> and more spaced out, so as to be easier to see?
> 
> Many thanks,
> Alasdair

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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