lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No Trill Line


From: Mats Bengtsson
Subject: Re: No Trill Line
Date: Thu, 29 Jul 2004 15:40:29 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616



Will Oram wrote:
When I did this, I got a long note with a trill line spanner over it, as desired:

    \override TextSpanner  #'style = #'trill
    \override TextSpanner  #'edge-height = #'(0 . 0)
    \override TextSpanner  #'edge-text
      = #(cons (make-musicglyph-markup "scripts-trill")  "")

    csharp2.~\>\startTextSpan
csharp!\fermata \bar "" \grace { b16[(\!\stopTextSpan csharp]) } \bar "|"
    d8 r r4 r

When I did this, I just got a dotted line spanner instead of a trill.

    \override TextSpanner  #'style = #'trill
    \override TextSpanner  #'edge-height = #'(0 . 0)
    \override TextSpanner  #'edge-text
      = #(cons (make-musicglyph-markup "scripts-trill")  "")
<< { d2.\trill~\startTextSpan } \\ { R1*3/4 } >>
      << { d2.~ } \\ { R1*3/4 } >>
      << { d2.~ } \\ { R1*3/4 } >>
      << { d2.~ } \\ { R1*3/4 } >>
      << { d8[(\stopTextSpan csharp) e-.] e[( d) b-.] } \\ { R1*3/4 } >>

What's the diff here? Something to do with Staff vs. Voice?

The difference is the new contexts. The \startTextSpan and \stopTextSpan
have to be in the same Voice context. When you do << { ...} \\ {...} >>,
you create two new Voice contexts (called "1" and "2" if I recall
correctly), but after the >>, both these contexts are destroyed again
since they don't contain any more music. Then it doesn't matter that
a new context called "1" is created in the next measure, LilyPond will
still treat it as a separate context. So, one solution is to do
<< {d2.\trill~\startTextSpan
  d2.~
  d2.~
  d2.~
  d8[(\stopTextSpan csharp) e-.] e[( d) b-.] } \\
 { R2.*5} >>

Another solution is indicated in
 http://lists.gnu.org/archive/html/lilypond-user/2004-07/msg00153.html
which actually describes exactly the same underlying problem even though
this may not be obvious at first.

   /Mats


Will Oram // Genius @ Large // AIM spamguy21
spamguy (at) foxchange (dot) com // wro1 (at) cwru (dot) edu



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]