lilypond-user
[Top][All Lists]
Advanced

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

Re: Trouble with voices: unwanted clef & time


From: Mats Bengtsson
Subject: Re: Trouble with voices: unwanted clef & time
Date: Wed, 17 Jan 2007 20:21:55 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8

These things happen as soon as you include some command
that can only be done within a Staff or Voice context, before
your own first \new Staff/Voice.
In this case, it's the \autoBeamOff command that causes the
problem. Just move it inside the \new Staff{...}. If you want
the setting to apply to all staves in the piece, you could
look into ly/property-init.ly to figure out what that \autoBeamOff
is simply a shorthand defined as
autoBeamOff = \set autoBeaming = ##f
So, you could either directly insert
\set Score.autoBeaming = ##f
within the code for one of the staves or redefine the default
definition of the Staff context in a \layout{...} block.

I was a bit surprised by your use of \new Score. It certainly
seems to work, but the more conventional structure is to say
\score{
<<
 \new Staff ...
 \new Lyrics ...
>>
}


 /Mats

Rutger wrote:

Dear all,

Is there anyone who could give me some help me with the file below?
For some reason, Lilypond creates an unwanted clef and time signature
(without a staff) above my setting of two voices on one staff. What did I do
wrong?
Also, would you have any clue why the fermatas in the lower part won't go
below the notes?

Many thanks in advance,

Best,
Rutger

\version "2.10.0"

 tekst = \lyricmode { Bez kor -- y -- sti be -- zo lzhi, ty be -- zo lzhi!
                       V_krep -- koy pra -- vde pos -- lu -- zhi!, ty pos -- lu 
-- zhi!
                      Bez kor -- y -- sti be -- zo lzhi
                       V_krep -- koy pra -- vde, v_krep -- koy pra -- vde pos 
-- lu --
zhi!
                       V_krep -- koy pra -- vde pos -- li -- zhi! }

 global = {
   \time 2/4
   \key es \major
 }
Vanya = {
       r8  es4->^\markup{\italic {con forza}} c16[( d]) es[( g]) f[( es])
d[( c]) f[( es]) d8  r16
        bes16-. es8-. g8-. bes8-. r8 r4
        r8 es,4-> c16[( d]) es[( g]) f[( es]) d[( c]) f[( es]) d8  r16
        bes16-. es8-. g8-. bes8-. r8 r4
        
        r8 g4-> g16[( f]) es[( d]) es[( f]) g[( f]) g[( a]) bes4. r8
        r4 f8 bes8 d8^\fermata bes16 r16^\fermata
        g8-> bes-> es,-> g-> c,-> es-> a,4 r4
        es'4. c32[( d es f]) g8 f16[( es]) d[( es]) c[( d]) bes8 r8 r4
  }
  Susanin = {
       r8  c4-> a16[( bes]) c[( bes]) a[( g]) f[( es]) d[( c]) bes8  r16
        bes'16-. g8-. es8-. bes8-. r8 r4
        r8  c'4-> a16[( bes]) c[( bes]) a[( g]) f[( es]) d[( c]) bes8  r16
        bes'16-. g8-. es8-. bes8-. r8 r4
        
        r8 es'4-> es16[( d]) es[( d]) c[( b]) c[( d]) es8 d4. r8
        r4 d8 d8 bes8_\fermata d16 r16_\fermata
        es8-> d-> c-> bes-> a-> g-> f4 r4
        c'4. a32[( bes c d]) es8 d16[( c]) bes[( g]) a[( f]) d8 r8 r4
  }
{ \new Score << \autoBeamOff \new Staff \relative c'' { \set Staff.instrumentName = \markup{ \column{ {\small \smallCaps Van}
{\small \smallCaps Sus} } }
            \global
            \clef treble
            <<
              \new Voice = "soprano" { \voiceOne \Vanya }
              \new Voice = "bass" { \voiceTwo \Susanin }
            >>
          }
          \new Lyrics \lyricsto soprano {\tekst}
        >>
  }


--
=============================================
        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]