Re: how to shorten a TrillSpanner

2008-02-09 Thread Valentin Villenave
2008/2/9, Trevor Bača [EMAIL PROTECTED]:

 [I can't remember if I've mailed this one out before or not, but as I had to
 spend a couple of minutes rediscovering it myself, I thought I'd share. Also
 mental note to check and add to LSR ...]

Sure. Feel free to comment the code that does not work yet, and add
the version-specific tag so I can track it later :-)

Cheers,
Valentin
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: how to shorten a TrillSpanner

2008-02-09 Thread Kieren MacMillan

Hi Trevor,

There's now a *much* better way of shortening one end of a trill  
spanner manually:

using the new (as of 2.11.something) #'bound-details list.
[...] TrillSpanner implements all the goodies in the #'bound- 
details list



Thanks for the update -- this is wonderful news!

Best regards,
Kieren.


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: how to shorten a TrillSpanner

2008-02-08 Thread Trevor Bača
On Jul 31, 2006 9:14 PM, Trevor Bača [EMAIL PROTECTED] wrote:

 On 5/25/06, Kieren Richard MacMillan [EMAIL PROTECTED]
 wrote:
  Hello, all!
 
  I'm trying to fix the collision in the following example:
 
  \version 2.9.5
  \relative
  {
  \once \override TrillSpanner #'shorten-pair = #'( 10 . 10 )
  c1 \startTrillSpan b\stopTrillSpan\startTrillSpan
 c\stopTrillSpan
  }
 
  Doesn't matter what numbers I use -- no effect.
  [n.b., I used the same technique on an OttavaBracket, and it worked
  as expected.]

 Hi Kieren,

 I'm facing exactly the same problem tonight; did you ever get a
 solution for shortening wavy trill lines (and thus preventing their
 collision)?

 Your posts from June show that you weren't able to get shorten-pair to
 do anything for trills, and that's my experience here, too.

 Anything creative?



Always fun to reply to a thread from a year and a half ago, so here goes:

There's now a *much* better way of shortening one end of a trill spanner
manually: using the new (as of 2.11.something) #'bound-details list. Here's
an example.


Adjacent trill spanners overlap uncomfortably by default:

   \new Staff {
  c1 \startTrillSpan b\stopTrillSpan\startTrillSpan c\stopTrillSpan
   }


You might think that #'shorten-pair would do the trick, but it doesn't:

   \new Staff {
  \once \override TrillSpanner #'shorten-pair = #'(0 . -2)
  c1 \startTrillSpan b\stopTrillSpan\startTrillSpan c\stopTrillSpan
   }


But you can instead use the #'right sublist of #'bound-details:

\new Staff {
   \once \override TrillSpanner #'bound-details #'right #'padding = #2
   c1 \startTrillSpan b\stopTrillSpan\startTrillSpan c\stopTrillSpan
}



The key to figuring this out is that, as of 2.11.12 or .13 or so,
TrillSpanner implements all the goodies in the #'bound-details list
described in 1.8.3.2 Text and line spanners.


[I can't remember if I've mailed this one out before or not, but as I had to
spend a couple of minutes rediscovering it myself, I thought I'd share. Also
mental note to check and add to LSR ...]



-- 
Trevor Bača
[EMAIL PROTECTED]
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: how to shorten a TrillSpanner

2006-08-01 Thread Kieren MacMillan

Hi, Trevor!


did you ever get a solution for shortening wavy trill lines
(and thus preventing their collision)?


Just the standard fractional-skip hack:

c4*99/100\startTrillSpan s4*1/100\stopTrillSpan


Anything creative?


How's that?  =)
Kieren.


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: how to shorten a TrillSpanner

2006-08-01 Thread Trevor Bača

On 8/1/06, Kieren MacMillan [EMAIL PROTECTED] wrote:

Hi, Trevor!

 did you ever get a solution for shortening wavy trill lines
 (and thus preventing their collision)?

Just the standard fractional-skip hack:

 c4*99/100\startTrillSpan s4*1/100\stopTrillSpan

 Anything creative?

How's that?  =)


OK, yep, that'll do!

Thanks again!

--
Trevor Bača
[EMAIL PROTECTED]
... like the dew, or like lightning ...
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: how to shorten a TrillSpanner

2006-07-31 Thread Trevor Bača

On 5/25/06, Kieren Richard MacMillan [EMAIL PROTECTED] wrote:

Hello, all!

I'm trying to fix the collision in the following example:

\version 2.9.5
\relative
{
\once \override TrillSpanner #'shorten-pair = #'( 10 . 10 )
c1 \startTrillSpan b\stopTrillSpan\startTrillSpan 
c\stopTrillSpan
}

Doesn't matter what numbers I use -- no effect.
[n.b., I used the same technique on an OttavaBracket, and it worked
as expected.]


Hi Kieren,

I'm facing exactly the same problem tonight; did you ever get a
solution for shortening wavy trill lines (and thus preventing their
collision)?

Your posts from June show that you weren't able to get shorten-pair to
do anything for trills, and that's my experience here, too.

Anything creative?


--
Trevor Bača
[EMAIL PROTECTED]
... like the dew, or like lightning ...
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user