Shorten hairpin

2015-03-19 Thread Noeck
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

Re: Shorten hairpin

2015-03-19 Thread David Nalesnik
-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

RE: Shorten hairpin

2015-03-19 Thread Stephen MacNeil
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

RE: Shorten hairpin

2015-03-19 Thread Stephen MacNeil
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

Re: Shorten hairpin

2015-03-19 Thread Kieren MacMillan
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

Re: Shorten hairpin

2015-03-19 Thread David Nalesnik
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

Re: Shorten hairpin

2015-03-19 Thread Noeck
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

Re: Shorten hairpin

2015-03-19 Thread Stephen MacNeil
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

Re: Shorten hairpin

2015-03-19 Thread Noeck
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

Re: Shorten hairpin

2015-03-19 Thread David Nalesnik
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

shorten hairpin

2014-11-08 Thread 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 fis2.~\downbow\p\ %%% this is the hairpin line |

Re: shorten hairpin

2014-11-08 Thread Kieren MacMillan
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

Re: shorten hairpin

2014-11-08 Thread Urs Liska
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

Re: shorten hairpin

2014-11-08 Thread Pierre Perol-Schneider
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