Re: Different time signatures

2002-09-25 Thread Dmitry Rutsky

 you also have to insert \alias Timing together with the timing
 engraver, like this:

 \translator {
   \StaffContext
   \alias Timing
 }

 Then you can use both the \bar command and the \time command
 independently in the staves.

 This is a very recent feature of lilypond. Notice that it means that you
 don't any longer have to specify the bar lines with a property-statement
 - you CAN use \bar |.

 -Rune

OK, how to syncronize them properly? Look at the example...

--- Dmitry Rutsky


RH = \context Staff = upper \notes \relative c
{
   \time 4/4
   c'4 e g c
   \bar |.
}

LH = \context Staff = lower \notes \relative c
{
   \time 12/8
   c'8 d e d e f g a b a b c
   \bar |.
}

\score
{
   \context PianoStaff
   
  \RH
  \LH
   

   \paper
   {
  \translator
  { 
 \ScoreContext \remove Timing_engraver
 \alias Timing
  }

  \translator 
  { 
 \StaffContext \consists Timing_engraver
 \alias Timing
  }
   }
}

\version 1.6.4




Re: Different time signatures

2002-09-23 Thread Dmitry Rutsky

 This is one that was solved for me a short time ago. There may be a
 newer fix, but you don't say which version of lilypond you're using.

I am using 1.6.4.

 This one is good for 1.6.0 and on:

 In the paper block, add the following:


 \translator{ \ScoreContext
 \remove Timing_engraver }


 \translator { \StaffContext
 \consists Timing_engraver}

...


 I hope this helps you as much as it helped me!

It doesn't help. Maybe I did something wrong?
In the example I'm sending again I've inserted these translator modifications 
in paper block, however lilypond makes the same two 4/4 time signatures...

--- Dmitry Rutsky


RH = \context Staff = upper \notes \relative c
{
   \time 4/4
   c'4 e g c
   \property Staff.whichBar = |.
}

LH = \context Staff = lower \notes \relative c
{
   \time 12/8
   c'8 d e d e f g a b a b c
   \property Staff.whichBar = |.
}

\score
{
   \context PianoStaff
   
  \RH
  \LH
   

   \paper
   {
  \translator
  { 
 \ScoreContext \remove Timing_engraver 
  }

  \translator 
  { 
 \StaffContext \consists Timing_engraver
  }
   }
}

\version 1.6.4