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



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to