Hi,
I would like to shorten a hairpin like in this example:
\relative c'' {
b c8\ q q q\!
}
The left end should start with the beam, the right end should stay the
same. How can I do this?
Cheers,
Joram
___
lilypond-user mailing list
-world example. Anyway...
%%%
\version 2.19.17
#(define (shorten-hairpin grob)
(let ((rb (ly:spanner-bound grob LEFT)))
(if (grob::has-interface rb 'note-column-interface)
(let ((stem (ly:grob-object rb 'stem)))
(if (ly:grob? stem)
(ly:spanner-set-bound
Does this work for you?
\version 2.18.2
\relative c'' {
b c8\ q q q\!b c8 q q q
}
\relative c'' {
\once \override Hairpin.X-offset = #1.35
\override Hairpin.minimum-length = #5
b c8\ q q q\!
\once \override TextScript.layer = #2
\once\override TextScript.staff-padding = #3.4
actually you don't need
\once\override TextScript.vertical-skylines = #'()
so
\relative c'' {
\once \override Hairpin.X-offset = #1.35
\override Hairpin.minimum-length = #5
b c8\ q q q\!
\once \override TextScript.layer = #2
\once\override TextScript.staff-padding = #3.4
b c8
_\markup
Hi all,
On Mar 19, 2015, at 10:01 AM, David Nalesnik david.nales...@gmail.com wrote:
I suppose a decent solution to this would involve writing the stencil
callback for Hairpin to allow displacement of the endpoints.
If this ever *did* happen, I would renew my (sponsor-willing) plea to have
Hi Kieren,
On Thu, Mar 19, 2015 at 9:21 AM, Kieren MacMillan
kieren_macmil...@sympatico.ca wrote:
Hi all,
On Mar 19, 2015, at 10:01 AM, David Nalesnik david.nales...@gmail.com
wrote:
I suppose a decent solution to this would involve writing the stencil
callback for Hairpin to allow
Dear Kieren, David and Stephen,
thanks for your answers! Stephen’s hack with a white box is not suitable
for my packed layout here.
The shorten-hairpin function does exactly what I want in this simple
example. In my real score, I have a separate Dynamics context and this
makes your function
Yes it was a hack, however this might look better and in a dynamics part it
should work
stephen
\relative c'' { b c8 q q q }
\new Dynamics {
\once \override Hairpin.X-offset = #1.35
% \override Hairpin.after-line-breaking = #shorten-hairpin
s4.*89/90\ s\!
}
On Thu, Mar 19, 2015 at 2
Hi Stephen,
Am 19.03.2015 um 20:05 schrieb Stephen MacNeil:
Yes it was a hack, however this might look better and in a dynamics part
it should work
The problem is that there is a barline across staves directly after and
other dynamics marks. But I probably can raise the barline above the
On Thu, Mar 19, 2015 at 1:51 PM, Noeck noeck.marb...@gmx.de wrote:
@David: Of course it would be nice to have an adapted version of your
function that handles the different contexts. But considering the
complexity of the function you already provided, I have to say: Please
do not spend too
Hello,
I have a staff for a cello where the player should reduce the tone during
the note quite fast. Therfore the normal haiping like this is too long:
\version 2.18.0
cello = \relative c' {
\time 6/8
\key a\major
\clef tenor
fis2.~\downbow\p\ %%% this is the hairpin line
|
Hi Helge,
How can I code this more elegant and avoid the changes?
Maybe something like this?
cello = \relative c' {
\time 6/8
{ fis'2.\downbow ~ | fis4. r }
{ s8\p\ s\! }
}
\layout {
\context {
\Score
\override Hairpin.minimum-length = #4
}
}
\score { \new Staff
Am 08.11.2014 20:33, schrieb Helge Kruse:
Hello,
I have a staff for a cello where the player should reduce the tone
during the note quite fast. Therfore the normal haiping like this is
too long:
\version 2.18.0
cello = \relative c' {
\time 6/8
\key a\major
\clef tenor
Hi Helge,
2014-11-08 20:33 GMT+01:00 Helge Kruse helge.kr...@gmx.net:
I have a staff for a cello where the player should reduce the tone during
the note quite fast. Therfore the normal haiping like this is too long:
\version 2.18.0
cello = \relative c' {
\time 6/8
\key a\major
14 matches
Mail list logo