bug-lilypond
[Top][All Lists]
Advanced

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

Re: combine staffs by using a comment


From: Mats Bengtsson
Subject: Re: combine staffs by using a comment
Date: Mon, 21 Apr 2008 10:11:35 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

You have forgot to use curly braces to enclose all the things you want within the same Staff context. In your first example, the staff created with \new Staff will only contain the single command
\set Staff.instrumentName ...

Just add another set of curly braces to tell LilyPond what you think should belong to the
Staff context:

\new Staff {
  \set Staff.instrumentName = "1. 2."
 \relative c''
  {
    \clef treble
    \time 6/8
{<< {c2.|}\\ {g2.|} >>} }
}

   /Mats
Stefan Kegel wrote:
both GrandStaffs are equal, but in the second Staff there is a comment
inserted to \set staff.instrumentname"


\version "2.10.33.1" %...................................................first Staff without comment
\new GrandStaff
\relative {<< \new Staff \set Staff.instrumentName = "1. 2." \relative c''
   {
     \clef treble
     \time 6/8
{<< {c2.|}\\ {g2.|} >>} }

\new Staff \set Staff.instrumentName = "3. 4." \relative c''
   {
      \clef treble
      \time 6/8
{<< {e2.|}\\ {c,2.|} >>} } >>}

%...................................................second Staff

\new GrandStaff
 \relative c''
{<<
\new Staff %\set Staff.instrumentName = "1. 2." %comment inserted
  \relative c''
   {
     \clef treble
     \time 6/8
{<< {c2.|}\\ {g2.|} >>} }

\new Staff %\set Staff.instrumentName = "3. 4." %comment inserted
  \relative c''
   {
     \clef treble
     \time 6/8
{<< {e2.|}\\ {c,2.|} >>} }>>}




_______________________________________________
bug-lilypond mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypond

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        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]