lilypond-user
[Top][All Lists]
Advanced

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

Re: Tagging Troubles


From: Mats Bengtsson
Subject: Re: Tagging Troubles
Date: Fri, 19 Oct 2007 08:27:14 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

I'm not sure that you have correctly understood the syntax of \tag.
For example in
\tag #'woodwinds <<
 ...
>>
the tag applies to the full music expression << ... >>, not only to the end of the line.

  /Mats

mojocojo2000 wrote:
I'm trying to create a grand staff around two oboe parts when score.ly is
compiled.  The files I'm using are belowed.

% piece.ly

music = {
% oboe I.II
\tag #'woodwinds \new GrandStaff <<
\tag #'woodwinds \tag #'ob12 \new Staff { \tag #'woodwinds \tag #'ob12 \set Staff.midiInstrument = "oboe"
\tag #'woodwinds \set Staff.instrumentName = "Oboe I.II"
\tag #'woodwinds \set Staff.shortInstrumentName = "Ob.I.II"
\tag #'woodwinds \tag #'ob12 << \global \partcombine \oboeOne \oboeTwo >> }
% oboe III.IV
\tag #'woodwinds \tag #'ob34 \new Staff { \tag #'woodwinds \tag #'ob34 \set Staff.midiInstrument = "oboe"
\tag #'woodwinds \set Staff.instrumentName = "Oboe III.IV"
\tag #'woodwinds \set Staff.shortInstrumentName = "Ob.III.IV"
\tag #'woodwinds \tag #'ob34 << \global \partcombine \oboeThree \oboeFour >>
} \tag #'woodwinds >>
}


% ob12.ly
\version "2.10.0"
\include "piece.ly"
\header {
        instrument = "Oboe I.II"
}
\score {
  \keepWithTag #'ob12 \music
  \layout { }
  \midi { }
}


% score.ly
\version "2.10.0"
\include "piece.ly"
#(set-global-staff-size 14)
\score {
                \new StaffGroup \keepWithTag #'woodwinds \music
                \new StaffGroup \keepWithTag #'brass \music
                \new StaffGroup \keepWithTag #'percussion \music
                \new StaffGroup \keepWithTag #'strings \music
                \layout { }
                \midi { }
}


The problem is when I compile score.ly I get an error about unexpected >>. This of course comes from the line -- \tag #'woodwinds >> in piece.ly. Is
there anyway to make this work?



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