Thanks for this and other replies to my original query. The routine works well.
It does what it says on the can - moving the ends of the hairpin - and that will be very useful. But I realise that often what I need in order to get satisfactory hairpins is more space between the note heads, and simply moving the ends of the hairpin does not reposition the relevant notes. One example is where I want a crescendo, mf and decrescendo on a single minim (in a very slow tempo!) I have tried using spacer rests, thus: e8 cs ds d << { cs2 ~ cs4 d8( cs) } { s4\< s2\mf\> s4\p } >> | but it doesn't give enough space for the crescendo hairpin. Replacing 's4\<' with 's8\< s8' makes no noticeable difference. As an experiment I have also tried using '<>4\<' and 'r4\<' (thinking perhaps I could then make the rests invisible), but neither of these works. '<>4\<' produces "two simultaneous span-dynamic events" errors which I don't get with the spacer rests version, for reasons I can't fathom; also the output shows mf followed by a crescendo for some mysterious reason. 'r4\<' gives errors with trying to put rests and note-heads on the same stem, and also strange unterminated tie errors. What is the neatest method of simply moving the right-hand note further to the right to give more space for the hairpins and the mf? Everything following the second note needs to be similarly displaced, of course. David On Tue, 2016-10-11 at 09:42 -0500, David Nalesnik wrote: > Hi, > > > On Tue, Oct 11, 2016 at 9:07 AM, tisimst <tisimst.lilyp...@gmail.com> > wrote: > > > > David, > > > > On Tue, Oct 11, 2016 at 8:01 AM, Kieren MacMillan [via Lilypond] > > <[hidden > > email]> wrote: > > > > > > > > > Hi David, > > > > > > > > > > > Just so that I have as many weapons as possible at my disposal, > > > > are > > > > there any other parameters which might directly affect the > > > > horizontal > > > > position of the left-hand end and/or the right-hand end or a > > > > hairpin, > > > > or its length? > > > \after > > > Hairpin.bound-padding > > > Hairpin.X-offset > > > Hairpin.extra-offset > > > > > > Those are my main weapons. =) > > > Kieren. > > > > Here's another solution I cooked up with more granular control of > > both ends > > of the hairpin: > > http://lists.gnu.org/archive/html/lilypond-user/2016-06/msg00176.ht > > ml > > > > It's not perfect, but might do the job for you. > > > > Further down in that thread is an implementation of shorten-pair with > hairpins: http://lists.gnu.org/archive/html/lilypond-user/2016-06/msg > 00277.html > > This will allow you independent control of the left and right ends, > regardless of whether a dynamic or dynamics are preset. > (Bound-padding works only when a dynamic is present, and affects > right > and left equally.). > > It's a rewrite of the Hairpin stencil function. One benefit of doing > this is there is no scaling of the shortened or lengthened Hairpin. > Possibly this avoids distortion. > > HTH, > > DN > > _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user