lilypond-user
[Top][All Lists]
Advanced

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

Re: Hairpin after-line-breaking -- how?


From: Gilles THIBAULT
Subject: Re: Hairpin after-line-breaking -- how?
Date: Fri, 5 Jun 2009 10:52:27 +0200


I want the hairpin to end on the first note of a new line.
\relative g'{
 \override Score.Hairpin #'after-line-breaking = ##t
 g2\< a4 a4 | \break
 b2.\! r4}
But it doesn't work. What am I doing wrong?
If i have well understood, 'after-line-breaking is a callback function to allow user to tweak some parameters if a line break does occur, not to decide if you want or not to split a grob after a line break. (see http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Difficult-tweaks#Difficult-tweaks )
So the only (ugly) solution i know is :

%%%%%%%%%%%%
   \relative g'{
         g2\< a4 a4 | \break
         s16 b2.*11/12\! r4
         c1
   }
%%%%%%%%%%%%

but it is not very usefull in the "Real Life" because you generally don't know where a line break occurs.

Gilles





reply via email to

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