lilypond-user
[Top][All Lists]
Advanced

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

Re: context presistence


From: Mats Bengtsson
Subject: Re: context presistence
Date: Thu, 16 Jan 2003 15:31:21 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

The trick is to keep the context "alive" during the whole piece,
using spacing rests, as in the following example

\score{\notes\relative c'
 \context Staff<
  \context Voice=one{\voiceOne s1*4}
  \context Voice=two{\voiceTwo s1*4}
  \context Voice=default{
   c1 |
   <\context Voice=one{f4 g a2}
    \context Voice=two{d,4 c f2}>
   g2 c,
   <\context Voice=one{f4 g a2}
    \context Voice=two{d,4 c f2}>
  }
 >
}

   /Mats


Ferenc Wagner wrote:
               Hello,

In my piece with lots of < . . . >'s I have to manually
instantiate separate Voice contexts a couple of times.

<\context Voice = "VA" { \voiceOne . . . }
 \context Voice = "VB" { \voiceTwo . . . }>

Next time I'd like to write

<\context Voice = "VA" { . . . }
 \context Voice = "VB" { . . . }>

only, but this doesn't work, I have to spell out the
\voiceX's again.  Is there a way to make the properties
persistent?  (I know about \\'s and ='s).

Forgot to say, I use version 1.6.6.

                                Thanks: Feri.


_______________________________________________
Lilypond-user mailing list
address@hidden
http://mail.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]