lilypond-user
[Top][All Lists]
Advanced

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

Re: Lining up notes in staves with different rhythms and time signatures


From: Klaus Blum
Subject: Re: Lining up notes in staves with different rhythms and time signatures
Date: Thu, 20 Aug 2015 16:59:52 -0700 (MST)

Hi Jack, 

while working on a solution, I've missed that two experts already replied... 
:)
Anyway, another approach would be to set the internal ("true") time
signature via 
\set Staff.measureLength = #(ly:make-moment 3/4)   etc.
which can be different from the "displayed" time signature set by \time.
This avoids the need of \cadenzaOn.

Cheers, 
Klaus

%----------------------------------------------------------------------

%\begin{lilypond}
\version "2.18.2"
\layout {
  \context {
    \Score
    \remove "Timing_translator"
    \remove "Default_bar_line_engraver"
  }
  \context {
    \Staff
    \consists "Timing_translator"
    \consists "Default_bar_line_engraver"
  }
}

\score {
  <<
    \new Staff {
      \relative c'' {
        \set Staff.instrumentName = #"a)"
        \time 6/8
        \tempo "Tempo Giusto"
        \partial 8 g8 | c4 b8 d4 a8 | g4. r4 g'8 | g4 d8 g4 f8 |
        e4. r4
        \bar "" 
        \break
        c8 |
        g'4 a8 g4 e8 | c4. r4 e8 | d4 b8 c4 a8 | g4. r4 \bar "|"
      }
    }
    \addlyrics {
      Jó | es -- tét bar -- na | lány    Mi | lö -- le te -- ge | det?
      | Ta -- | lán a va -- cso -- | rád    Nem | i -- gen jól e -- | sett
    }
    \new Staff {
      \relative c'' {
        \time 2/4
        \set Staff.instrumentName = #"b)"
        \set Staff.measureLength = #(ly:make-moment 3/4)
        g8[ c8*2 d8 c8*2] |
        \set Staff.measureLength = #(ly:make-moment 2/4)
        a8 g4. |
        \set Staff.measureLength = #(ly:make-moment 4/4)
        s4 e'8[ g8*2 d8 e8*2] |
        \set Staff.measureLength = #(ly:make-moment 3/4)
        g8 e4. s4 |
        \set Staff.measureLength = #(ly:make-moment 3/4)
        e8[ g8*2 a8 g8*2] |
        \set Staff.measureLength = #(ly:make-moment 2/4)
        e8 c4. |
        \time 3/4  % delete if you don't want "3/4" to be displayed
        \set Staff.measureLength = #(ly:make-moment 4/4)
        s4 d8 d4.*2/3 \autoBeamOff a16*2 c8.*4/3 \autoBeamOn \bar "|"
        \time 2/4  % delete if you don't want "2/4" to be displayed
        \set Staff.measureLength = #(ly:make-moment 3/4)
        a8 g4. s4 \bar "|"
      }
    }
    \addlyrics {
      Vi -- rá -- gim, vi -- | rá -- gim | Gyö -- nyö -- rü vi -- | rá --
gim
      | föd -- re bo -- re | ja tok, | En -- gem si -- ras -- | sa tok
    }
  >>
}
%\end{lilypond}

%----------------------------------------------------------------------



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lining-up-notes-in-staves-with-different-rhythms-and-time-signatures-tp179831p179839.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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