+2006-02-19 Graham Percival <gpermus@gmail.com>
+
+ * darwin.patch: trivial linenumber update.
+
+ * Documentation/user/ {various}: `\context foo = named' changed
+ to `\new foo = "name"' in docs.
+
2006-02-19 Han-Wen Nienhuys <hanwen@xs4all.nl>
* buildscripts/mf-to-table.py (Char_metric.__init__): remove
@code{format-mark-letters} and @code{format-mark-box-letters}.
These can be used as inspiration for other formatting functions.
+You may use @code{format-mark-barnumbers}, @code{format-mark-box-barnumbers},
+and @code{format-mark-circle-barnumbers} to get bar numbers instead of
+incremented numbers or letters.
+
@seealso
\new Staff \relative <<
% setup a context for cue notes.
- \context Voice = cue { \smaller \skip 1*21 }
+ \new Voice = "cue" { \smaller \skip 1*21 }
\set Score.skipBars = ##t
_\verylongfermata
r
}
- \context Lyrics \lyricmode {
+ \new Lyrics \lyricmode {
\override LyricText #'font-family = #'typewriter
"shortfermata" "fermata" "longfermata" "verylongfermata"
}
The following example demonstrates its use.
@lilypond[quote,verbatim,fragment,ragged-right,relative=2]
-\context Voice {
+\new Voice {
\applyOutput
#(add-balloon-text 'NoteHead "heads, or tails?"
'(1 . -3))
defaultBarType = #""
\remove Bar_number_engraver
} <<
- \context Staff \emptymusic
- \context TabStaff \emptymusic
+ \new Staff \emptymusic
+ \new TabStaff \emptymusic
>>
@end lilypond
voices, which is often an unwanted result
@lilypond[quote,ragged-right,relative=1,fragment,verbatim]
-\context Staff <<
+\new Staff <<
#(set-accidental-style 'voice)
<<
{ es g } \\
@lilypond[quote,ragged-right,verbatim]
mus = { \key d \major cis d fis g }
-\context Staff {
+\new Staff {
\clef "F" \mus
\clef "G"
\transpose c g' \mus
@lilypond[quote,ragged-right,fragment,verbatim]
<<
- \context StaffGroup <<
+ \new StaffGroup <<
\new Staff {
e'4 d'
\bar "||"
The same effect can be achieved manually by doing
@lilypond[quote,ragged-right,fragment,verbatim,relative=2]
-\context Voice {
+\new Voice {
<< { d1^\trill_( }
{ s2 \grace { c16[ d] } } >>
c4)
@refbugs
A score that starts with a @code{\grace} section needs an explicit
-@code{\context Voice} declaration, otherwise the main note and the grace
+@code{\new Voice} declaration, otherwise the main note and the grace
note end up on different staves.
Grace note synchronization can also lead to surprises. Staff notation,
arrowhead to the wiggly line
@lilypond[quote,ragged-right,fragment,relative=1,verbatim]
-\context Voice {
+\new Voice {
\arpeggioUp
<c e g c>\arpeggio
\arpeggioDown
@internalsref{PianoStaff}.@code{connectArpeggios}
@lilypond[quote,ragged-right,fragment,relative=1,verbatim]
-\context PianoStaff <<
+\new PianoStaff <<
\set PianoStaff.connectArpeggios = ##t
\new Staff { <c' e g c>\arpeggio }
\new Staff { \clef bass <c,, e g>\arpeggio }
@example
<<
- \context Voice = "1" @{ \voiceOne \upper @}
- \context Voice = "2" @{ \voiceTwo \lower @}
+ \new Voice = "1" @{ \voiceOne \upper @}
+ \new Voice = "2" @{ \voiceTwo \lower @}
>>
@end example
when the object property @code{merge-differently-dotted} is set in
the @internalsref{NoteCollision} object, they are merged
@lilypond[quote,verbatim,fragment,ragged-right,relative=2]
-\context Voice << {
+\new Voice << {
g8 g8
\override Staff.NoteCollision
#'merge-differently-dotted = ##t
Similarly, you can merge half note heads with eighth notes, by setting
@code{merge-differently-headed}
@lilypond[quote,ragged-right,fragment,relative=2,verbatim]
-\context Voice << {
+\new Voice << {
c8 c4.
\override Staff.NoteCollision
#'merge-differently-headed = ##t
for example
@lilypond[quote,ragged-right,fragment,verbatim]
-\context Voice << c''4 \\ r4 >>
+\new Voice << c''4 \\ r4 >>
@end lilypond
@end lilypond
@lilypond[quote,ragged-right,fragment,verbatim,relative=2]
-\context Staff {
+\new Staff {
\partial 4
\repeat volta 4 { e | c2 d2 | e2 f2 | }
\alternative { { g4 g g } { a | a a a a | b2. } }
\score{
<<
- \context Voice = "one" {
+ \new Voice = "one" {
\autoBeamOff
\melody
}
\score {
<<
- \context ChordNames {
+ \new ChordNames {
\set chordChanges = ##t
\harmonies
}
- \context Staff = one \melody
+ \new Staff \melody
>>
\layout{ }
\score {
<<
- \context ChordNames {
+ \new ChordNames {
\set chordChanges = ##t
\harmonies
}
- \context Voice = "one" {
+ \new Voice = "one" {
\autoBeamOff
\melody
}
}
\score {
- \context PianoStaff <<
+ \new PianoStaff <<
\set PianoStaff.instrument = "Piano "
- \context Staff = upper \upper
- \context Staff = lower \lower
+ \new Staff = "upper" \upper
+ \new Staff = "lower" \lower
>>
\layout { }
\midi { \tempo 4=60 }
\score {
<<
- \context Voice = "mel" {
+ \new Voice = "mel" {
\autoBeamOff
\melody
}
\new Lyrics \lyricsto mel \text
- \context PianoStaff <<
- \context Staff = upper \upper
- \context Staff = lower \lower
+ \new PianoStaff <<
+ \new Staff = "upper" \upper
+ \new Staff = "lower" \lower
>>
>>
\layout {
}
\score {
- \context GrandStaff <<
- \context Staff = upper { \context Voice = "singer" \upper }
+ \new GrandStaff <<
+ \new Staff = upper { \new Voice = "singer" \upper }
\new Lyrics \lyricsto "singer" \text
- \context Staff = lower {
+ \new Staff = lower {
\clef bass
\lower
}
}
\score {
- \context PianoStaff <<
- \context Staff=upper \upper
- \context Dynamics=dynamics \dynamics
- \context Staff=lower <<
+ \new PianoStaff <<
+ \new Staff = "upper" \upper
+ \new Dynamics = "dynamics" \dynamics
+ \new Staff = "lower" <<
\clef bass
\lower
>>
- \context Dynamics=pedal \pedal
+ \new Dynamics = "pedal" \pedal
>>
\layout {
\context {
}
}
\score {
- \context PianoStaff <<
- \context Staff=upper << \upper \dynamics >>
- \context Staff=lower << \lower \dynamics >>
- \context Dynamics=pedal \pedal
+ \new PianoStaff <<
+ \new Staff = "upper" << \upper \dynamics >>
+ \new Staff = "lower" << \lower \dynamics >>
+ \n ew Dynamics = "pedal" \pedal
>>
\midi {
\context {
}
\score {
- \context ChoirStaff <<
- \context Lyrics = sopranos { s1 }
- \context Staff = women <<
- \context Voice =
- sopranos { \voiceOne << \global \sopMusic >> }
- \context Voice =
- altos { \voiceTwo << \global \altoMusic >> }
+ \new ChoirStaff <<
+ \new Lyrics = sopranos { s1 }
+ \new Staff = women <<
+ \new Voice =
+ "sopranos" { \voiceOne << \global \sopMusic >> }
+ \new Voice =
+ "altos" { \voiceTwo << \global \altoMusic >> }
>>
- \context Lyrics = altos { s1 }
- \context Lyrics = tenors { s1 }
- \context Staff = men <<
+ \new Lyrics = "altos" { s1 }
+ \new Lyrics = "tenors" { s1 }
+ \new Staff = men <<
\clef bass
- \context Voice =
- tenors { \voiceOne <<\global \tenorMusic >> }
- \context Voice =
- basses { \voiceTwo <<\global \bassMusic >> }
+ \new Voice =
+ "tenors" { \voiceOne <<\global \tenorMusic >> }
+ \new Voice =
+ "basses" { \voiceTwo <<\global \bassMusic >> }
>>
- \context Lyrics = basses { s1 }
+ \new Lyrics = basses { s1 }
+
\context Lyrics = sopranos \lyricsto sopranos \sopWords
\context Lyrics = altos \lyricsto altos \altoWords
\context Lyrics = tenors \lyricsto tenors \tenorWords
tenorWords = \lyricmode {
hu hu hu hu
}
+
bassMusic = \relative c {
c4 c g c
}
ho ho ho ho
}
-\layout {
- \context {
- % a little smaller so lyrics
- % can be closer to the staff
- \Staff
- \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
- }
-}
-
-<<
- \context ChoirStaff
+\score {
<<
- \context Lyrics = sopranos { s1 }
- \context Staff = women <<
- \context Voice =
- sopranos { \voiceOne << \global \sopMusic >> }
- \context Voice =
- altos { \voiceTwo << \global \altoMusic >> }
- >>
- \context Lyrics = altos { s1 }
- \context Lyrics = tenors { s1 }
- \context Staff = men <<
- \clef bass
- \context Voice =
- tenors { \voiceOne <<\global \tenorMusic >> }
- \context Voice =
- basses { \voiceTwo <<\global \bassMusic >> }
+ \new ChoirStaff <<
+ \new Lyrics = sopranos { s1 }
+ \new Staff = women <<
+ \new Voice =
+ "sopranos" { \voiceOne << \global \sopMusic >> }
+ \new Voice =
+ "altos" { \voiceTwo << \global \altoMusic >> }
+ >>
+ \new Lyrics = "altos" { s1 }
+ \new Lyrics = "tenors" { s1 }
+ \new Staff = men <<
+ \clef bass
+ \new Voice =
+ "tenors" { \voiceOne <<\global \tenorMusic >> }
+ \new Voice =
+ "basses" { \voiceTwo <<\global \bassMusic >> }
+ >>
+ \new Lyrics = basses { s1 }
+
+ \context Lyrics = sopranos \lyricsto sopranos \sopWords
+ \context Lyrics = altos \lyricsto altos \altoWords
+ \context Lyrics = tenors \lyricsto tenors \tenorWords
+ \context Lyrics = basses \lyricsto basses \bassWords
>>
- \context Lyrics = basses { s1 }
- \context Lyrics = sopranos \lyricsto sopranos \sopWords
- \context Lyrics = altos \lyricsto altos \altoWords
- \context Lyrics = tenors \lyricsto tenors \tenorWords
- \context Lyrics = basses \lyricsto basses \bassWords
- >>
- \new PianoStaff
- <<
+ \new PianoStaff <<
\new Staff <<
\set Staff.printPartCombineTexts = ##f
\partcombine
<< \global \bassMusic >>
>>
>>
->>
+ \layout {
+ \context {
+ % a little smaller so lyrics
+ % can be closer to the staff
+ \Staff
+ \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
+ }
+ }
+}
@end lilypond
}
\score {
- \context StaffGroup = choirStaff <<
- \context Voice =
- discantusNotes << \global \discantusNotes >>
- \context Lyrics =
- discantusLyrics \lyricsto discantusNotes { \discantusLyrics }
- \context Voice =
- altusNotes << \global \altusNotes >>
- \context Lyrics =
- altusLyrics \lyricsto altusNotes { \altusLyrics }
- \context Voice =
- tenorNotes << \global \tenorNotes >>
- \context Lyrics =
- tenorLyrics \lyricsto tenorNotes { \tenorLyrics }
- \context Voice =
- bassusNotes << \global \bassusNotes >>
- \context Lyrics =
- bassusLyrics \lyricsto bassusNotes { \bassusLyrics }
+ \new StaffGroup = choirStaff <<
+ \Voice =
+ "discantusNotes" << \global \discantusNotes >>
+ \new Lyrics =
+ "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
+ \new Voice =
+ "altusNotes" << \global \altusNotes >>
+ \new Lyrics =
+ "altusLyrics" \lyricsto altusNotes { \altusLyrics }
+ \new Voice =
+ "tenorNotes" << \global \tenorNotes >>
+ \new Lyrics =
+ "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
+ \new Voice =
+ "bassusNotes" << \global \bassusNotes >>
+ \new Lyrics =
+ "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
>>
\layout {
\context {
\global
\set Staff.instrument = #"Trumpet"
\clef treble
- \context Staff <<
+ \new Staff <<
\trpt
>>
}
\global
\set Staff.instrument = #"Alto Sax"
\clef treble
- \context Staff <<
+ \new Staff <<
\alto
>>
}
\global
\set Staff.instrument = #"Bari Sax"
\clef treble
- \context Staff <<
+ \new Staff <<
\bari
>>
}
\global
\set Staff.instrument = #"Trombone"
\clef bass
- \context Staff <<
+ \new Staff <<
\tbone
>>
}
\global
\set Staff.instrument = #"Guitar"
\clef treble
- \context Staff <<
+ \new Staff <<
\gtr
>>
}
\clef treble
\global
\set Staff.midiInstrument = "acoustic grand"
- \context Staff <<
- \context Voice = one \rhUpper
- \context Voice = two \rhLower
+ \new Staff <<
+ \new Voice = "one" \rhUpper
+ \new Voice = "two" \rhLower
>>
}
PianoLH = {
\clef bass
\global
\set Staff.midiInstrument = "acoustic grand"
- \context Staff <<
- \context Voice = one \lhUpper
- \context Voice = two \lhLower
+ \new Staff <<
+ \new Voice = "one" \lhUpper
+ \new Voice = "two" \lhLower
>>
}
piano = {
- \context PianoStaff <<
+ \new PianoStaff <<
\set PianoStaff.instrument = #"Piano"
- \context Staff = upper \PianoRH
- \context Staff = lower \PianoLH
+ \new Staff = "upper" \PianoRH
+ \new Staff = "lower" \PianoLH
>>
}
\global
\set Staff.instrument = #"Bass"
\clef bass
- \context Staff <<
+ \new Staff <<
\Bass
>>
}
\score {
<<
- \context StaffGroup = horns <<
- \context Staff = trumpet \trumpet
- \context Staff = altosax \altosax
- \context ChordNames = barichords \bariharmony
- \context Staff = barisax \barisax
- \context Staff = trombone \trombone
+ \new StaffGroup = "horns" <<
+ \new Staff = "trumpet" \trumpet
+ \new Staff = "altosax" \altosax
+ \new ChordNames = "barichords" \bariharmony
+ \new Staff = "barisax" \barisax
+ \new Staff = "trombone" \trombone
>>
- \context StaffGroup = rhythm <<
- \context ChordNames = chords \gtrharmony
- \context Staff = guitar \guitar
- \context PianoStaff = piano \piano
- \context Staff = bass \bass
+ \new StaffGroup = "rhythm" <<
+ \new ChordNames = "chords" \gtrharmony
+ \new Staff = "guitar" \guitar
+ \new PianoStaff = piano" \piano
+ \new Staff = "bass" \bass
\new DrumStaff { \drumContents }
>>
>>
If you define the @code{\header} inside the @code{\score} block, then
normally only the @code{piece} and @code{opus} headers will be printed.
+Note that the music expression must come before the @code{\header}.
@lilypond[quote,verbatim,line-width=11.0\cm]
\score {
advance. Here is a practical example
@lilypond[quote,verbatim,ragged-right]
-\context PianoStaff
+\new PianoStaff
\autochange \relative c'
{
g4 a b c d r4 a g
@example
<<
- \context Staff = up @{
+ \new Staff = "up" @{
\skip 1 * 10 % @emph{keep staff alive}
@}
- \context Staff = down @{
+ \new Staff = "down" @{
\skip 1 * 10 % @emph{idem}
@}
>>
and the @context{Voice} is inserted afterwards
@example
-\context Staff = down
+\new Staff = down
\new Voice @{ @dots{} \change Staff = up @dots{} @}
@end example
@lilypond[quote,ragged-right,fragment,relative=1,verbatim]
\new PianoStaff <<
- \context Staff=one {
+ \new Staff="one" {
\set followVoice = ##t
c1
\change Staff=two
b2 a
}
- \context Staff=two { \clef bass \skip 1*2 }
+ \new Staff="two" { \clef bass \skip 1*2 }
>>
@end lilypond
@lilypond[ragged-right,verbatim,quote]
stemExtend = \once \override Stem #'length = #22
noFlag = \once \override Stem #'flag-style = #'no-flag
-\context PianoStaff <<
+\new PianoStaff <<
\new Staff {
\stemDown \stemExtend
f'4
<f bes d'>
}
-<< \context ChordNames \twoWays
- \context Voice \twoWays >>
+<< \new ChordNames \twoWays
+ \new Voice \twoWays >>
@end lilypond
This example also shows that the chord printing routines do not try to
\chordmode {a1 b c} <d' f' a'> <e' g' b'>
}
<<
- \context ChordNames \harmonies
- \context Staff \harmonies
+ \new ChordNames \harmonies
+ \new Staff \harmonies
>>
@end lilypond
c1:m c:m \break c:m c:m d
}
<<
- \context ChordNames {
+ \new ChordNames {
\set chordChanges = ##t
\harmonies }
- \context Staff \transpose c c' \harmonies
+ \new Staff \transpose c c' \harmonies
>>
@end lilypond
slash. By setting @code{chordNameSeparator}, you can specify other
separators, e.g.,
@lilypond[quote,ragged-right,fragment,verbatim]
-\context ChordNames \chordmode {
+\new ChordNames \chordmode {
c:7sus4
\set chordNameSeparator
= \markup { \typewriter "|" }
\override Score.PaperColumn #'keep-inside-line = ##t
@end example
+To make lyrics avoid barlines as well, use
+@example
+\layout{
+ \context {
+ \Lyrics
+ \consists "Bar_engraver"
+ \consists "Separating_line_group_engraver"
+ \override BarLine #'transparent = ##t
+ }
+}
+@end example
+
@node Setting simple songs
@subsection Setting simple songs
}
\score{ <<
- \context Voice = "one" { \melody }
+ \new Voice = "one" { \melody }
\new Lyrics \lyricsto "one" \text
>>
\layout { }
is the same as
@example
-\context Voice = "blah" @{ music @}
+\new Voice = "blah" @{ music @}
\new Lyrics \lyricsto "blah" @{ LYRICS @}
@end example
Lyrics are printed by interpreting them in a @internalsref{Lyrics} context
@example
-\context Lyrics \lyricmode @dots{}
+\new Lyrics \lyricmode @dots{}
@end example
@cindex automatic syllable durations
For different or more complex orderings, the best way is to setup the
hierarchy of staves and lyrics first, e.g.,
@example
-\context ChoirStaff <<
- \context Lyrics = sopranoLyrics @{ s1 @}
- \context Voice = soprano @{ @emph{music} @}
- \context Lyrics = tenorLyrics @{ s1 @}
- \context Voice = tenor @{ @emph{music} @}
+\new ChoirStaff <<
+ \new Lyrics = "sopranoLyrics" @{ s1 @}
+ \new Voice = "soprano" @{ @emph{music} @}
+ \new Lyrics = "tenorLyrics" @{ s1 @}
+ \new Voice = "tenor" @{ @emph{music} @}
>>
@end example
and then combine the appropriate melodies and lyric lines
The final input would resemble
@example
-<<\context ChoirStaff << @emph{setup the music} >>
+<<\new ChoirStaff << @emph{setup the music} >>
\lyricsto "soprano" @emph{etc}
\lyricsto "alto" @emph{etc}
@emph{etc}
@lilypond[quote,relative=2,ragged-right,fragment,verbatim]
<<
- \context Voice = "lala" {
+ \new Voice = "lala" {
\time 3/4
f4 g8
\melisma
Here is an example demonstrating manual lyric durations,
@lilypond[relative=1,ragged-right,verbatim,fragment,quote]
-<< \context Voice = melody {
+<< \new Voice = "melody" {
\time 3/4
c2 e4 g2.
}
@lilypond[verbatim,ragged-right,quote]
<<
- \relative \context Voice = "lahlah" {
+ \relative \new Voice = "lahlah" {
\set Staff.autoBeaming = ##f
c4
\slurDotted
@lilypond[ragged-right,quote]
<<
- \relative \context Voice = "lahlah" {
+ \relative \new Voice = "lahlah" {
\set Staff.autoBeaming = ##f
c4
<<
- \context Voice = alternative {
+ \new Voice = "alternative" {
\voiceOne
\times 2/3 {
% show associations clearly.
@lilypond[verbatim,ragged-right,quote]
\score{ <<
- \context Voice = "melody" {
+ \new Voice = "melody" {
\relative c' {
c4
<<
{ \voiceOne c8 e }
- \context Voice = splitpart { \voiceTwo c4 }
+ \new Voice = "splitpart" { \voiceTwo c4 }
>>
\oneVoice c4 c | c
}
@lilypond[verbatim,ragged-right,quote]
\score{ <<
- \context Voice = melody \relative c' {
+ \new Voice = "melody" \relative c' {
c2 e | g e | c1 |
- \context Voice = verse \repeat volta 2 {c4 d e f | g1 | }
+ \new Voice = "verse" \repeat volta 2 {c4 d e f | g1 | }
a2 b | c1}
- \context Lyrics = mainlyrics \lyricsto melody \lyricmode {
+ \new Lyrics = "mainlyrics" \lyricsto melody \lyricmode {
do mi sol mi do
la si do }
- \context Lyrics = mainlyrics \lyricsto verse \lyricmode {
+ \new Lyrics = "mainlyrics" \lyricsto verse \lyricmode {
do re mi fa sol }
- \context Lyrics = repeatlyrics \lyricsto verse \lyricmode {
+ \new Lyrics = "repeatlyrics" \lyricsto verse \lyricmode {
dodo rere mimi fafa solsol }
>>
}
@ref{Special noteheads}.
+
+
+
@node Rhythmic music
@section Rhythmic music
staff are squashed, and the staff itself has a single line
@lilypond[quote,ragged-right,fragment,relative=1,verbatim]
-\context RhythmicStaff {
+\new RhythmicStaff {
\time 4/4
c4 e8 f g2 | r4 g r2 | g1:32 | r1 |
}
@lilypond[quote,ragged-right,fragment,verbatim]
\new DrumStaff <<
- \context DrumVoice = "1" { s1 *2 }
- \context DrumVoice = "2" { s1 *2 }
+ \new DrumVoice = "1" { s1 *2 }
+ \new DrumVoice = "2" { s1 *2 }
\drummode {
bd4 sn4 bd4 sn4
<<
\override Stem #'Y-extent-callback = ##f
\override VerticalAxisGroup #'minimum-Y-extent = #'(-4.0 . 5.0)
} \mus
- \context Lyrics \nam
+ \new Lyrics \nam
>>
\layout {
\context {
mus = \drummode { timh ssh timl ssl cb s16 }
<<
- \context DrumStaff \with {
+ \new DrumStaff \with {
\remove Bar_engraver
\remove Time_signature_engraver
\override Stem #'transparent = ##t
\override VerticalAxisGroup #'minimum-Y-extent = #'(-3.0 . 4.0)
drumStyleTable = #timbales-style
} \mus
- \context Lyrics {
+ \new Lyrics {
\override LyricText #'font-family = #'typewriter
\nam
}
mus = \drummode { cgh cgho cghm ssh cgl cglo cglm ssl s16 }
<<
- \context DrumStaff \with {
+ \new DrumStaff \with {
\remove Bar_engraver
\remove Time_signature_engraver
drumStyleTable = #congas-style
\override Stem #'transparent = ##t
\override Stem #'Y-extent-callback = ##f
} \mus
- \context Lyrics {
+ \new Lyrics {
\override LyricText #'font-family = #'typewriter
\nam
}
mus = \drummode { boh boho bohm ssh bol bolo bolm ssl s16 }
<<
- \context DrumStaff\with {
+ \new DrumStaff \with {
\remove Bar_engraver
\remove Time_signature_engraver
\override StaffSymbol #'line-count = #2
\override Stem #'transparent = ##t
\override Stem #'Y-extent-callback = ##f
} \mus
- \context Lyrics {
+ \new Lyrics {
\override LyricText #'font-family = #'typewriter
\nam
}
mus = \drummode { tri trio trim gui guis guil cb cl tamb cab mar hc s16 }
<<
- \context DrumStaff\with{
+ \new DrumStaff \with{
\remove Bar_engraver
drumStyleTable = #percussion-style
\override StaffSymbol #'line-count = #1
\override Stem #'transparent = ##t
\override Stem #'Y-extent-callback = ##f
} \mus
- \context Lyrics {
+ \new Lyrics {
\override LyricText #'font-family = #'typewriter
\nam
}
@internalsref{TabVoice} contexts
@lilypond[quote,ragged-right,fragment,verbatim]
-\context TabStaff {
+\new TabStaff {
a,4\5 c'\2 a\3 e'\1
e\4 c'\2 a\3 e'\1
}
\set TabStaff.minimumFret = #8
e16 fis gis a b4
}
- \context StaffGroup <<
- \context Staff { \clef "G_8" \frag }
- \context TabStaff { \frag }
+ \new StaffGroup <<
+ \new Staff { \clef "G_8" \frag }
+ \new TabStaff { \frag }
>>
@end lilypond
@code{stringTunings} is set for the pitches e, a, d, and g
@lilypond[quote,ragged-right,fragment,verbatim]
-\context TabStaff <<
+\new TabStaff <<
\set TabStaff.stringTunings = #'(-5 -10 -15 -20)
{
a,4 c' a e' e c' a e'
following example
@lilypond[verbatim, ragged-right, quote]
-\context Voice {
+\new Voice {
d'^\markup \fret-diagram #"6-x;5-x;4-o;3-2;2-3;1-2;"
d' d' d'
fis'^\markup \override #'(size . 0.75) {
@lilypond[quote,ragged-right,verbatim]
\include "gregorian-init.ly"
\score {
- \context VaticanaVoice {
+ \new VaticanaVoice {
\override Staff.StaffSymbol #'color = #red
\override Staff.LedgerLineSpanner #'color = #red
\override TextScript #'font-family = #'typewriter
\include "gregorian-init.ly"
\score {
<<
- \context VaticanaVoice = "cantus" {
+ \new VaticanaVoice = "cantus" {
\override Staff.StaffSymbol #'color = #red
\override Staff.LedgerLineSpanner #'color = #red
\override Score.BarNumber #'transparent = ##t {
@lilypond[quote,ragged-right,verbatim]
\score {
<<
- \context MensuralVoice = "discantus" \transpose c c' {
+ \new MensuralVoice = "discantus" \transpose c c' {
\override Score.BarNumber #'transparent = ##t {
c'1\melisma bes a g\melismaEnd
f\breve
@lilypond[quote,ragged-right,verbatim,fragment]
<<
- \context Voice { \clef bass dis4 c d ais g fis}
- \context FiguredBass \figuremode {
+ \new Voice { \clef bass dis4 c d ais g fis}
+ \new FiguredBass \figuremode {
< 6 >4 < 7\+ >8 < 6+ [_!] >
< 6 >4 <6 5 [3+] >
< _ >4 < 6 5/>4
<4 6>
@end example
@lilypond[quote,ragged-right,fragment]
-\context FiguredBass
+\new FiguredBass
\figuremode { <4 6> }
@end lilypond
< [4 6] 8 [_! 12] > < 5 \markup @{ \number 6 \super (1) @} >
@end example
@lilypond[quote,ragged-right,fragment]
-\context FiguredBass
+\new FiguredBass
\figuremode { < [4 6] 8 [_! 12] > < 5 \markup{ \tiny \number 6 \super (1)} > }
@end lilypond
@{ #(ly:export (make-sequential-music (list newLa))) @}
@end example
+Scheme code is evaluated as soon as the parser encounters it. To
+define some scheme code in a macro (to be called later), use
+
+@example
+#(define (nopc)
+ (ly:set-option 'point-and-click #f))
+#(nopc)
+
+...
+\nopc
+{ c'4 }
+@end example
+
@refbugs
Mixing Scheme and LilyPond identifiers is not possible with the
@code{--safe} option.
+
@node Internal music representation
@subsection Internal music representation
\score@{
<<
- \context Voice = "one" @{
+ \new Voice = "one" @{
\autoBeamOff
\melody
@}
\score@{
<<
- \context Voice = "one" @{
+ \new Voice = "one" @{
\autoBeamOff
\sopranoMusic
@}
\score@{
<<
<<
- \context Voice = "one" @{
+ \new Voice = "one" @{
\autoBeamOff
\sopranoMusic
@}
\score{
<<
<<
- \context Voice = "one" {
+ \new Voice = "one" {
\autoBeamOff
\sopranoMusic
}
\score @{
@{
<<
- \context Staff = singer <<
+ \new Staff = "singer" <<
>>
- \context PianoStaff = piano <<
+ \new PianoStaff = piano <<
>>
>>
@}
\score @{
@{
<<
- \context Staff = singer <<
- \context Voice = vocal @{ @}
+ \new Staff = "singer" <<
+ \new Voice = "vocal" @{ @}
>>
\new Lyrics \lyricsto vocal \new Lyrics @{ @}
- \context PianoStaff = piano <<
- \context Staff = upper @{ @}
- \context Staff = lower @{ @}
+ \new PianoStaff = "piano" <<
+ \new Staff = "upper" @{ @}
+ \new Staff = "lower" @{ @}
>>
>>
@}
staff (left hand).
At this stage, we could start filling in notes. Inside
-the curly braces next to @code{\context Voice = vocal},
+the curly braces next to @code{\new Voice = vocal},
we could start writing
@example
\score @{
@{
<<
- \context Staff = singer <<
- \context Voice = vocal @{ \melody @}
+ \new Staff = "singer" <<
+ \new Voice = "vocal" @{ \melody @}
>>
\new Lyrics \lyricsto vocal \new Lyrics @{ \text @}
- \context PianoStaff = piano <<
- \context Staff = upper @{ \upper @}
- \context Staff = lower @{ \lower @}
+ \new PianoStaff = "piano" <<
+ \new Staff = "upper" @{ \upper @}
+ \new Staff = "lower" @{ \lower @}
>>
>>
@}
diff -ruN stepmake/stepmake/c++-rules.make lilypond-2.7.11/stepmake/stepmake/c++-rules.make
--- stepmake/stepmake/c++-rules.make 2005-10-02 09:14:45.000000000 -0700
+++ stepmake/stepmake/c++-rules.make 2005-10-02 09:15:10.000000000 -0700
-@@ -26,6 +26,7 @@
+@@ -17,6 +17,7 @@
$(outdir)/%.cc: %.ll
$(FLEX) -Cfe -p -p -o$@ $<