lilypond-user
[Top][All Lists]
Advanced

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

Re: parenthesis around dot only (note value indication)


From: Dirck Nagy
Subject: Re: parenthesis around dot only (note value indication)
Date: Wed, 1 May 2024 05:54:22 +0000

Beautiful!  

Thanks Pierre!  

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

peace!

dirck

From: Pierre Perol-Schneider <pierre.schneider.paris@gmail.com>
Sent: Wednesday, May 1, 2024 12:32 AM
To: Dirck Nagy <dnagy@uwlax.edu>
Cc: lilypond-user@gnu.org <lilypond-user@gnu.org>; dircknagy@hotmail.com <dircknagy@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,
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 <dnagy@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:

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

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