Please read section "Score is a single musical expression" in the manual.
/Mats
mojocojo2000 wrote:
Thanks for the response. Now I'm running into a different problem.
I revised my score.ly and my piece.ly. Here's what they look like:
% piece.ly
woodwinds = {
<<
% 2 flutes
\tag #'fl \new Staff {
\tag #'fl \set Staff.midiInstrument = "flute"
\set Staff.instrumentName = \markup { \center-align { "2" \line {
"Flutes"
} } }
\set Staff.shortInstrumentName = \markup { \center-align { "2" \line {
"Fl." } } }
\tag #'fl << \Key \global \partcombine \fluteOne \fluteTwo >> }
% 2 oboes
\tag #'ob12 \new Staff {
\tag #'ob12 \set Staff.midiInstrument = "oboe"
\set Staff.instrumentName = \markup { \center-align { "2" \line {
"Oboes" }
} }
\set Staff.shortInstrumentName = \markup { \center-align { "2" \line {
"Ob." } } }
\tag #'ob12 << \Key \global \partcombine \oboeOne \oboeTwo >> }
% 2 clarinets in bb
\tag #'bbcl \new Staff {
\tag #'bbcl \set Staff.midiInstrument = "clarinet"
\set Staff.instrumentName = \markup { \center-align { "2" \line {
"Clarinets" } \line { "in B" \smaller \flat } } }
\set Staff.shortInstrumentName = \markup { \center-align { "2" \line {
"Clar." } \line { "in B" \smaller \flat } } }
\tag #'bbcl << \transpose bes c \Key \global \transpose bes c
\partcombine
\clarinetBbOne \clarinetBbTwo >> }
% 2 bassoons
\tag #'bn12 \new Staff {
\tag #'bn12 \set Staff.midiInstrument = "bassoon"
\set Staff.instrumentName = \markup { \center-align { "2" \line {
"Bassoons" } } }
\set Staff.shortInstrumentName = \markup { \center-align { "2" \line {
"Bsns." } } }
\tag #'bn12 << \Key \global \partcombine \bassoonOne \bassoonTwo >> }
>>
}
brass = {
<<
% 4 horns in f
\new GrandStaff <<
% 2 horn in f
\tag #'fhn12 \new Staff {
\tag #'fhn12 \set Staff.midiInstrument = "french horn"
\tag #'fhn12 << \Key \global \partcombine \hornFOne \hornFTwo
>> }
% 2 horns in f
\tag #'fhn34 \new Staff {
\tag #'fhn34 \set Staff.midiInstrument = "french horn"
\tag #'fhn34 << \transpose f c \Key \global \transpose f c
\partcombine
\hornFThree \hornFFour >> }
>>
>>
}
% score.ly
\include "piece.ly"
#(set-global-staff-size 14)
%\set Score.skipBars = ##t
\score {
\new StaffGroup \woodwinds
\new StaffGroup \brass
\layout { }
\midi { }
}
When I try and compile score.ly I recieve a syntax error - unexpected \new,
referring to the \new preceding StaffGroup \brass. Can you think of a
solution to this problem. As an aside question is it possible to give an
"instrumentName" to the grandstaff?
Thanks.
Mats Bengtsson-4 wrote:
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: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
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: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user