lilypond-user
[Top][All Lists]
Advanced

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

Re: Manual Staff switching


From: Mats Bengtsson
Subject: Re: Manual Staff switching
Date: Wed, 02 Jan 2008 16:58:13 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8

David Fedoruk wrote:

one other problem with this piece is that when I render this code, I
have an extra treble clef above the two lines of staff I need. What is
the problem with the template I'm using?

############## Code ####################

\version "2.11.36  "
...

    \score {    
       \new PianoStaff <<
                \override SpacingSpanner
                #'base-shortest-duration = #(ly:make-moment 1 16)
I would suspect that this setting causes the extra stave.
If you want the setting to apply to all staves of this PianoStaff,
you should do \override PianoStaff.SpacingSpanner ...
or even better learn the \with syntax:
\new PianoStaff  \with {
 \override SpacingSpanner
    #'base-shortest-duration = #(ly:make-moment 1 16)
 instrumentName = "Piano "
} <<
   \new Staff = "rh" \rh
   \new Staff = "lh" \lh
>>

   /Mats




reply via email to

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