Re: Shorten hairpin

2015-03-19 Thread David Nalesnik
On Thu, Mar 19, 2015 at 1:51 PM, Noeck 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 much time on it.

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 mark

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'' { 8 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
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 havin

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 8\< q q q\! \once \override TextScript.layer = #2 \once\override TextScript.staff-padding = #3.4 8 _\markup \with-

RE: Shorten hairpin

2015-03-19 Thread Stephen MacNeil
Does this work for you? \version "2.18.2" \relative c'' { 8\< q q q\!8 q q q } \relative c'' { \once \override Hairpin.X-offset = #1.35 \override Hairpin.minimum-length = #5 8\< q q q\! \once \override TextScript.layer = #2 \once\override TextScript.staff-padding = #3.4 \once\override

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 > wrote: > > I suppose a decent solution to this would involve writing the stencil > callback for Hairpin to allow displacement of the e

Re: Shorten hairpin

2015-03-19 Thread Kieren MacMillan
Hi all, On Mar 19, 2015, at 10:01 AM, David Nalesnik 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 the ability to give dime

Re: Shorten hairpin

2015-03-19 Thread David Nalesnik
Hi Joram, On Thu, Mar 19, 2015 at 8:12 AM, Noeck wrote: > Hi, > > I would like to shorten a hairpin like in this example: > > \relative c'' { > 8\< q q q\! > } > > The left end should start with the beam, the right end should stay the > same. How can I do this? > > I suppose a decent solution

Re: shorten hairpin

2014-11-08 Thread Pierre Perol-Schneider
Hi Helge, 2014-11-08 20:33 GMT+01:00 Helge Kruse : > 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 ten

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 fis2.~\dow

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 St