Beautiful!

Thanks Pierre!

BTW, How are you ?  I'm not active on Delcamp any more.

peace!

dirck
________________________________
From: Pierre Perol-Schneider <pierre.schneider.pa...@gmail.com>
Sent: Wednesday, May 1, 2024 12:32 AM
To: Dirck Nagy <dn...@uwlax.edu>
Cc: lilypond-user@gnu.org <lilypond-user@gnu.org>; dirckn...@hotmail.com 
<dirckn...@hotmail.com>
Subject: Re: parenthesis around dot only (note value indication)


Caution: *External Email: Use caution responding, opening attachments, or 
clicking on links.*

Hi Dirck,
See Harm's : 
https://lists.gnu.org/archive/html/lilypond-user/2017-05/msg00371.html
E.g.:

\version "2.24.3"

#(define (parenthesize-dot parentheses-item)
  (let* ((dot (ly:grob-object (ly:grob-parent parentheses-item Y) 'dot)))
    (if (not (null? dot))
        (begin
          (set! (ly:grob-object parentheses-item 'elements) '())
          (ly:grob-set-property! parentheses-item 'padding 0)
          (ly:pointer-group-interface::add-grob parentheses-item 'elements dot)
          (ly:stencil-translate-axis
            (parentheses-interface::print parentheses-item) 0 X))
        (parentheses-interface::print parentheses-item))))

parenthesizeDot =
  \tweak Parentheses.stencil #(lambda (grob) (parenthesize-dot grob))
  \parenthesize \etc

{
    \stemDown <e' \parenthesizeDot e''>4.
}

HTH, cheers,
Pierre

Le mer. 1 mai 2024 à 06:32, Dirck Nagy 
<dn...@uwlax.edu<mailto:dn...@uwlax.edu>> a écrit :
Hi all

I know this is highly unusual, but is there a way to add parentheses around the 
DOT ONLY after the notehead?

see following image:

[cid:ii_18f32a1f935cb971f161]
FYI, I have a piece with sequences of octaves.  Every instance has a note value 
of a dotted quarter-note.

There is, however, one (only one!)  instance where the upper note cannot be 
held the full value, because it would be physically impossible to play.   I 
want to avoid splitting this into separate voices because it would clutter up 
the measure, (would require 4 separate voices on one staff)  and make reading 
more cumbersome.

thanks!

dirck

Reply via email to