lilypond-user
[Top][All Lists]
Advanced

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

Re: Terminate one-note hairpin at end of note


From: Kieren MacMillan
Subject: Re: Terminate one-note hairpin at end of note
Date: Thu, 9 Jun 2022 19:51:23 -0400

Hi Ahanu,

> Is there a clean way to terminate a hairpin at the end of the same note it 
> begins with, i.e., at the left side of the next note?

Maybe shorten-pair?

%%%  SNIPPET BEGINS
\version "2.23.4"

\layout { ragged-right = ##f }

{
  % default output
  \after 2 \! c'2\> 4 4 |
  %desired output
  2\> 4\hide\p 4 |
  %alternatively, this works:
  \after 4. \! 2\> 4 4 |
  
  \break
  c'2-\tweak shorten-pair #'(0 . 1.5) \> 4\! 4 |
}
%%%  SNIPPET ENDS

There are other ways, if this doesn’t suit.

Cheers,
Kieren.


reply via email to

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