用户:Foamposite/沙盒

Testing 123 试下维基百科沙盒先。

摆定 lilypond 模板

钢琴1


\new GrandStaff <<
\new Staff \relative c'' {
\set Staff.midiInstrument = #"harpsichord"
\numericTimeSignature
\key ges \major
\bar " "
\tempo "Meno mosso"
\tempo 4 = 120
\override TextScript #'X-offset = #-5
ges1~\f |ges4 d'8 es d es f ges | f,1~ |f4 d8 es f ges as bes |
}
\new Staff \relative c {
\set Staff.midiInstrument = #"harpsichord"
\numericTimeSignature
\key ges \major
\clef "bass"
\override TextScript #'X-offset = #-5
<es ges bes>8 <es ges bes>4 <es ges bes>8 <es ges bes>4 <es ges bes>4|<es ges bes>4 r4 r2 |
<es as ces>8 <es as ces>4 <es as ces>8 <es as ces>4 <es as ces>4|<es as ces>4 r4 r2 |
}
>>

两条 1 Symphony for Organ and Orchestra (Copland)英语Symphony for Organ and Orchestra (Copland)


\relative c'' {
  \time 3/4
  <<\new Staff {b8-> (a) r b (a->) r b-> (a) r b (a->) r}
    \new Staff {r d, -> (e) r d-> (e) r d-> (e) r d-> (e)}>>
  \bar "||"
}

两条 2 Concerto Grosso No. 1 (Schnittke)英语Concerto Grosso No. 1 (Schnittke)


\new StaffGroup <<
\new Staff \relative c'' {
\set Staff.midiInstrument = #"violin"
\numericTimeSignature
\key c \minor
\bar ""
\tempo "Agitato"
\tempo 4 = 135
\override TextScript #'X-offset = #-5
\partial 8.
c'16\f^"Vln 1 solo" b c |
es,1~ | es2.~ es16 c' b c |
c,1~ | c2.~ c16 b' c d | es,1
}
\new Staff \relative c'' {
\set Staff.midiInstrument = #"violin"
\numericTimeSignature
\key c \minor
\override TextScript #'X-offset = #-5
r8. |
r2 r4 r16 c'16\f^"Vln 2 solo" b c | d,1~ |
d2.~ d16 c' b c | b,1~|b2.~ b16 es' d es
}
>>


多条(有音)

例子1 String_Quartet_(Franck)英语String_Quartet_(Franck)


\new StaffGroup <<
 \new Staff { \relative c' { \key fis \minor \time 3/8 \tempo "Vivace."
  \set Staff.midiInstrument = "violin"
  \set Score.tempoHideNote = ##t \tempo 4. = 88
  R2*3/4*3_\markup{ \italic {avec sourdine} }
  a'16-.\pp \< bis-. dis-. fis-. a-. << bis-. { s32 s\! } >> << cis16-. { s32 s\> } >> a16-. fis-. cis-. a-.\! fis-. R2*3/4 } }
 \new Staff { \relative c' { \key fis \minor \time 3/8
  \set Staff.midiInstrument = "violin"
  R2*3/4*2_\markup{ \italic {avec sourdine} } dis16\pp( eis) fis-. fis-. fis-. fis-.
  << dis8-. {s32 s16.\<} >> fis8-. << dis-. { s16\! s } >> << cis8-. { s16 s\> } >> fis8-. a-.\! R2*3/4 } }
 \new Staff { \relative c' { \key fis \minor \time 3/8 \clef C
  \set Staff.midiInstrument = "violin"
  R2*3/4_\markup{ \italic {avec sourdine} } a16\pp( b) bis-. bis-. bis-. bis-. a( b?) bis-. bis-. bis-. bis-.
  << dis8-. {s32 s16.\<} >> a8-. << fis-. { s16\! s } >> << fis8-. { s16 s\> } >> a8-. cis-.\! R2*3/4 } }
 \new Staff { \relative c' { \key fis \minor \time 3/8 \clef bass
  \set Staff.midiInstrument = "cello"
  fis,16_\markup{ \dynamic pp \italic {avec sourdine} }( gis) a-. a-. a-. a-. fis( gis) a-. a-. a-. a-. fis( gis) a-. a-. a-. a-.
  << fis8-. {s32 s16.\<} >> bis,8-. << a-.{ s16\! s } >> << a8-. { s16 s\> } >> cis8-. fis-.\! R2*3/4 } }
>>

例子2


\new StaffGroup <<
 \new Staff { \relative c' { \key b \minor \time 2/2 \tempo "Allegro molto."
  \set Staff.midiInstrument = "violin"
  \set Score.tempoHideNote = ##t \tempo 1 = 100
  r4 fis\ff a gis g( fis) fis--( g--) fis a c b bes( a) a-- bes-- a c f g a bes c bes \bar "||"
  \tempo "Larghetto." \time 3/4 a
  \set Score.tempoHideNote = ##t \tempo 1 = 40
  r\fermata } }
 \new Staff { \relative c' { \key b \minor \time 2/2
  \set Staff.midiInstrument = "violin"
  r4 fis\ff a gis g( fis) fis--( g--) fis a c b bes( a) a-- bes-- a c f g a bes c bes \bar "||" \time 3/4 a r\fermata } }
 \new Staff { \relative c' { \key b \minor \time 2/2 \clef C
  \set Staff.midiInstrument = "violin"
  r4 fis,\ff a gis g( fis) fis--( g--) fis a c b bes( a) a-- bes-- a c f g a bes c bes \bar "||" \time 3/4 a r\fermata } }
 \new Staff { \relative c { \key b \minor \time 2/2 \clef bass
  \set Staff.midiInstrument = "cello"
  r4 fis, \ff a gis g( fis) fis--( g--) fis a c b bes( a) a-- bes-- a c f g a bes c bes \bar "||" \time 3/4 << a2\fermata { s4\dim s4\! } >> } }
>>

印第安交响曲