lilypond-user
[Top][All Lists]
Advanced

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

Re: Adding an extra staff


From: Orm Finnendahl
Subject: Re: Adding an extra staff
Date: Tue, 26 Aug 2008 16:04:23 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hi Alistair,


Am Dienstag, den 26. August 2008 um 11:47:07 Uhr (+0200) schrieb alistair 
zaldua:
> and that didn't work. Where should I type the notes for the middle bar ?
> 

 what you're trying to do seems to be creating a staff system on the
fly, but the code shows a staff system which is contained in a staff
system which doesn't make too much sense and will probably cause
problems all over.

One solution could be to serialize the situation in the Staffgroups
and use explicit "\contexts" which relate the music material to the
different staves.

This should work for your example:


\version "2.11.56"
\score {
        <<
        \new PianoStaff <<
            \relative c''
            \new Staff {
            \time 4/4 g8 a b c d c b a     %scale 1
            gis ais c des es des c bes     %scale 2
            a b cis d e d cis b         %scale 3
            c d e f g f e d             %scale 4
            es f g aes bes aes g f         %scale 5
                        }
            \new StaffGroup \relative c'' {
% first part:
                \new Staff =middle { r1 gis4 gis gis gis }

% second part (two staff systems):

                << \context Staff = middle { aes8 ges aes ges aes ges aes ges}
                   \new Staff =lower { \once \override
                 Staff.TimeSignature #'stencil = ##f a8 g a g a g a g }
               >>

% third part (again just one staff system):

                \context Staff=middle { c4 c c c }
                    }
                >>
            >>
        }


If you want the bars without music to be blanked you could even use
"\stopStaff" and "\startStaff" explicitely.

--
Orm





reply via email to

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