Done by running 'make snippet-update' and checking the changes.
@tab
@lilypond[fragment,relative=2,notime]
\override Staff.Clef #'break-visibility = #all-invisible
-c4. c4..
+c4. c4..
@end lilypond
@item @code{c d e f g a b }
@tab Taktangaben
@tab
@lilypond[fragment]
-\override Staff.Clef #'transparent = ##t
+\override Staff.Clef #'transparent = ##t
\time 3/4
s4_" "
\time 4/4
@lilypond[notime,fragment]
\clef treble
\key es \major
-s4
+s4
@end lilypond
@item @var{note}@code{'}
@tab
@lilypond[fragment,relative=2]
\set Staff.implicitTimeSignatureVisibility = #all-invisible
-<c e>
+<c e>
@end lilypond
<<
{ g'1 g }
\new Lyrics \lyricsto "" { twin -- kle }
->>
+>>
@end lilypond
@item @code{\chordmode @{ c:dim f:maj7 @}}
e4 f
\unHideNotes
g a
-\hideNotes
+\hideNotes
b
\unHideNotes
c
\set Staff.instrumentName = \markup {
\with-color #(x11-color 'navy) "Clarinet"
}
-
+
\override Stem #'color = #(rgb-color 0 0 0)
gis8 a
\override Stem #'color = #(rgb-color 1 1 1)
gis8 a
-\override Stem #'color = #(rgb-color 0 0 0.5)
+\override Stem #'color = #(rgb-color 0 0 0.5)
gis4 a
@end lilypond
\new Voice \with { \consists "Balloon_engraver" }
{
\balloonGrobText #'Stem #'(3 . 4) \markup { "I'm a Stem" }
- a8
+ a8
\balloonGrobText #'Rest #'(-4 . -4) \markup { "I'm a rest" }
r
- <c, g'-\balloonText #'(-2 . -2) \markup { "I'm a note head" } c>2.
+ <c, g'-\balloonText #'(-2 . -2) \markup { "I'm a note head" } c>2.
}
@end lilypond
{
\balloonLengthOff
\balloonGrobText #'Stem #'(3 . 4) \markup { "I'm a Stem" }
- a8
+ a8
\balloonGrobText #'Rest #'(-4 . -4) \markup { "I'm a rest" }
r
\balloonLengthOn
- <c, g'-\balloonText #'(-2 . -2) \markup { "I'm a note head" } c>2.
+ <c, g'-\balloonText #'(-2 . -2) \markup { "I'm a note head" } c>2.
}
@end lilypond
\layout {
\context {
\Staff
- \consists "Grid_point_engraver"
+ \consists "Grid_point_engraver"
gridInterval = #(ly:make-moment 1 4)
}
\context {
\time 2/4
c4 c g' g a a g2
}
- \addlyrics { twin kle twin kle lit tle star }
+ \addlyrics { twin -- kle twin -- kle lit -- tle star }
>>
@end lilypond
<< {
\revert Stem #'direction
\change Staff = down
- \set subdivideBeams = ##t
+ \set subdivideBeams = ##t
g16.[
\change Staff = up
c'''32
\override Beam #'thickness = #0.3
\override Stem #'thickness = #4.0
g'16[ b16 fis16 g16]
- << \makeClusters {
+ << \makeClusters {
as16 <as b>
<g b>
<g cis>
aber auch verändert werden, siehe @ref{Note names in other languages}.
-@lilypond[fragment,quote,ragged-right,verbatim,relative=2]
-a2 as e es
+@lilypond[verbatim,quote,relative=2]
+a4 aes a2
@end lilypond
Ein Auflösungszeichen macht die Wirkung eines Kreuzes oder Bs
die Musik einen Halbton nach oben. Aber die erste Version gibt als
Versetzungszeichen Kreuze aus, die zweite dagegen B-Versetzungszeichen.
-@lilypond[quote,ragged-right,verbatim]
+@lilypond[verbatim,quote]
music = \relative c' { c d e f }
\new Staff {
\transpose c cis { \music }
oder
@lilypond[verbatim,quote,relative=2]
-\partial 4
+\partial 4
\repeat volta 4 { e4 | c2 d | e2 f | }
\alternative {
{ \partial 4*3 g4 g g }
Notensystem platziert werden, die Syntax hierzu ist beschrieben
in @ref{Direction and placement}.
-@lilypond[quote,verbatim,relative=1]
+@lilypond[quote,fragment,ragged-right,verbatim,relative=1]
d8^"pizz." e f g a4-"scherz." f
@end lilypond
geschweiften Klammern einsetzt, wie beschrieben in
@ref{Formatting text}.
-@lilypond[quote,verbatim,relative=1]
-d8^\markup { \italic pizz. } e f g
+@lilypond[quote,fragment,ragged-right,verbatim,relative=1]
+d8^\markup { \italic pizz. } e f g
a4_\markup { \tiny scherz. \bold molto } f
@end lilypond
dem Befehl @code{\textLengthOn} (Textlänge an) erreicht, rückgängig
kann es mit dem Befehl @code{\textLengthOff} gemacht werden.
-@lilypond[quote,verbatim,relative=1]
+@lilypond[quote,fragment,ragged-right,verbatim,relative=1]
d8^"pizz." e f g
\textLengthOn
a4_"scherzando" f
können von einer Note bis zu einer anderen mit folgender
Anweisung erstellt werden:
-@lilypond[verbatim,quote,relative=2]
-\override TextSpanner #'bound-details #'left #'text = "rit."
-b1\startTextSpan
+@lilypond[verbatim,quote,ragged-right,fragment,relative=2]
+\override TextSpanner #'bound-details #'left #'text = "rit."
+b1\startTextSpan
e,\stopTextSpan
@end lilypond
Formatierung kann erreicht werden, indem man @code{\markup}-Blöcke
einsetzt, wie beschrieben in @ref{Formatting text}.
-@lilypond[quote,relative=2,verbatim]
+@lilypond[quote,ragged-right,fragment,relative=2,verbatim]
\override TextSpanner #'bound-details #'left #'text =
- \markup { \upright "rit." }
+ \markup { \upright "rit." }
b1\startTextSpan c
e,\stopTextSpan
@end lilypond
@c \mark needs to be placed on a separate line (it's not
@c attached to an object like \markup is). -vv
-@lilypond[verbatim,quote,relative=2]
+@lilypond[verbatim,quote,ragged-right,fragment,relative=2]
c4
\mark "Allegro"
c c c
@code{\markup}-Befehl gegeben, wie beschrieben in
@ref{Formatting text}:
-@lilypond[fragment,quote,relative=1]
+@lilypond[fragment,quote,ragged-right,verbatim,relative=1]
<c e>1
\mark \markup { \italic { colla parte } }
<d f>2 <e g>
beschrieben in
@ref{Music notation inside markup}:
-@lilypond[quote,verbatim,relative=1]
+@lilypond[fragment,quote,ragged-right,verbatim,relative=1]
<f bes>2 <d aes'>
\mark \markup { \musicglyph #"scripts.ufermata" }
<e g>1
Taktlinie gesetzt. Wenn sie an einem Zeilenumbruch angegeben
werden, wird das Zeichen zu Beginn der nächsten Zeile ausgegeben.
-@lilypond[quote,ragged-right,verbatim,relative=2]
+@lilypond[fragment,quote,ragged-right,verbatim,relative=2]
\mark "Allegro"
c1 c
\mark "assai" \break
a2^\markup { poco \italic più forte }
c e1
d2_\markup { \italic "string. assai" }
-e
+e
b1^\markup { \bold { molto \italic agitato } }
c
@end lilypond
vorgenommen werden:
@lilypond[quote,verbatim,relative=2]
-d1^\markup {
- \bold { Più mosso }
- \italic { non troppo \underline Vivo }
+d1^\markup {
+ \bold { Più mosso }
+ \italic { non troppo \underline Vivo }
}
r2 r4 r8
d,_\markup { \italic quasi \smallCaps Tromba }
\fontsize #2 da
\fontsize #3 camera
}
-bes^\markup { (con
+bes^\markup { (con
\larger grande
\smaller emozione
\magnify #0.6 { e sentimento } )
\markup {
\column {
\line { 1 \super st movement }
- \line { 1 \normal-size-super st movement
+ \line { 1 \normal-size-super st movement
\sub { (part two) } }
}
}
Der letzte Text im Beispiel hat keinen Anker und wird deshalb auch nicht verschoben.
@lilypond[quote,verbatim,fragment,relative=1]
-d2^\markup {
+d2^\markup {
Acte I
\raise #2 { Scène 1 }
}
}
}
\markup {
- \fill-line { 1885 }
+ \fill-line { 1885 }
}
@end lilypond
gitanos en el Albaicín de Granada. Al fondo una
puerta por la que se ve el negro interior de
una Fragua, iluminado por los rojos resplandores
- del fuego.)
+ del fuego.)
}
\hspace #0
tocar con el pulgar (p.ej. en música de cello).
@lilypond[verbatim,quote,relative=2]
-<a_\thumb a'-3>8 <b_\thumb b'-3>
+<a_\thumb a'-3>2 <b_\thumb b'-3>
@end lilypond
@cindex digitación de acordes
@lilypond[verbatim,quote,relative=2]
c2\ppp c\mp
-c\rfz c^\mf
-c_\spp c^\ff
+c2\rfz c^\mf
+c2_\spp c^\ff
@end lilypond
@cindex regulador
@lilypond[quote,verbatim,relative=0]
\clef "treble_8"
-<c-\rightHandFinger #1 >4
-<e-\rightHandFinger #2 >
-<g-\rightHandFinger #3 >
+<c-\rightHandFinger #1 >4
+<e-\rightHandFinger #2 >
+<g-\rightHandFinger #3 >
<c-\rightHandFinger #4 >
<c,-\rightHandFinger #1 e-\rightHandFinger #2
g-\rightHandFinger #3 c-\rightHandFinger #4 >1
@lilypond[quote,ragged-right,verbatim]
\relative c'{
- % Default behaviour or behaviour after \oneVoice
+ % Default behavior or behavior after \oneVoice
c d8 ~ d e4 ( f g a ) b-> c
}
@end lilypond
\score {
\new ChoirStaff {
\new Staff <<
- \context Voice = "verse" {
+ \new Voice = "verse" {
\versenotes \break
<<
\refrainnotesA
% make note heads larger
\set fontSize = #2.5
f g
-% return to original size
+% return to default size
\unset fontSize
a b
@end lilypond
\clef treble
\key c \major
\time 4/4
-
a4 b c d
}
\clef bass
\key c \major
\time 4/4
-
d4 g fis8 e d4
}
-\score{
+\score {
<<
<<
\new Voice = "one" {
@lilypond[quote,verbatim,ragged-right,addversion]
global = { \key d \major \time 4/4 }
-sopMusic = \relative c'' {
+sopranoMusic = \relative c'' {
\clef "treble"
r4 d2 a4 | d4. d8 a2 | cis4 d cis2 |
}
-sopWords = \lyricmode {
+sopranoWords = \lyricmode {
Wor -- thy is the lamb that was slain
}
altoMusic = \relative a' {
\clef "treble"
r4 a2 a4 | fis4. fis8 a2 | g4 fis fis2 |
}
-altoWords = \sopWords
+altoWords = \sopranoWords
tenorMusic = \relative c' {
\clef "G_8"
r4 fis2 e4 | d4. d8 d2 | e4 a, cis2 |
}
-tenorWords = \sopWords
+tenorWords = \sopranoWords
bassMusic = \relative c' {
\clef "bass"
r4 d2 cis4 | b4. b8 fis2 | e4 d a'2 |
}
-bassWords = \sopWords
+bassWords = \sopranoWords
upper = \relative a' {
\clef "treble"
\global
\new ChoirStaff <<
\new Staff = "sopranos" <<
\set Staff.instrumentName = "Soprano"
- \new Voice = "sopranos" { \global \sopMusic }
+ \new Voice = "sopranos" { \global \sopranoMusic }
>>
- \new Lyrics \lyricsto "sopranos" { \sopWords }
+ \new Lyrics \lyricsto "sopranos" { \sopranoWords }
\new Staff = "altos" <<
\set Staff.instrumentName = "Alto"
\new Voice = "altos" { \global \altoMusic }
>> % end ChoirStaff
\new PianoStaff <<
- \set PianoStaff.instrumentName = "Piano"
+ \set PianoStaff.instrumentName = "Piano "
\new Staff = "upper" \upper
\new Staff = "lower" \lower
>>
g4 g f ees | d2 c2 |
}
ManualOneVoiceTwoMusic = \relative c' {
- ees16 d ees8~ ees16 f ees s c8 d~ d c~ |
+ ees16 d ees8~ ees16 f ees d c8 d~ d c~ |
c c4 b8 c8. g16 c b c d |
}
ManualTwoMusic = \relative c' {
la aplicación de la función musical @code{\unfoldRepeats}. Esta
función cambia todas las repeticiones a repeticiones desplegadas.
-@lilypond[quote,verbatim,fragment,line-width=8.0\cm]
+@lilypond[quote,verbatim]
\unfoldRepeats {
\repeat tremolo 8 {c'32 e' }
\repeat percent 2 { c''8 d'' }
\new Score \with {
\override SpacingSpanner #'spacing-increment = #3
\override TimeSignature #'transparent = ##t
-} \relative {
+} \relative c' {
\stemDown <e g b>4_>-\arpeggio
\override Arpeggio #'direction = #RIGHT
\stemUp <e g b>4^>-\arpeggio
\include "engraver-example.ily"
\score {
- \topVoice
- \layout {
- \context {
+ \topVoice
+ \layout {
+ \context {
\Voice
\remove "Stem_engraver"
\remove "Phrasing_slur_engraver"
\remove "Script_engraver"
\remove "Beam_engraver"
\remove "Auto_beam_engraver"
- }
- \context {
+ }
+ \context {
\Staff
\remove "Accidental_engraver"
\remove "Key_engraver"
\remove "Time_signature_engraver"
\remove "Staff_symbol_engraver"
\consists "Pitch_squash_engraver"
- }
-}
+ }
+ }
}
@end lilypond
ejemplo
@lilypond[quote,verbatim,fragment,relative=1]
-c4
+f4
@end lilypond
@noindent
este duro trabajo, el programa ahora se puede usar para hacer trabajos
útiles. La aplicación más sencilla es imprimir notas.
-@lilypond[quote,relative=1,fragment]
-\time 2/4 c4 c g'4 g a4 a g2
+@lilypond[quote,relative=1]
+{
+ \time 2/4
+ c4 c g'4 g a4 a g2
+}
@end lilypond
@noindent
También se puede imprimir notación polifónica y música para piano.
El ejemplo siguiente combina algunas otras construcciones exóticas.
-@lilypondfile[quote,ragged-right]{screech-boink.ly}
+@lilypond[quote]
+\header {
+ title = "Screech and boink"
+ subtitle = "Random complex notation"
+ composer = "Han-Wen Nienhuys"
+}
+
+\score {
+ \context PianoStaff <<
+ \new Staff = "up" {
+ \time 4/8
+ \key c \minor
+ << {
+ \revert Stem #'direction
+ \change Staff = down
+ \set subdivideBeams = ##t
+ g16.[
+ \change Staff = up
+ c'''32
+ \change Staff = down
+ g32
+ \change Staff = up
+ c'''32
+ \change Staff = down
+ g16]
+ \change Staff = up
+ \stemUp
+ \set followVoice = ##t
+ c'''32([ b''16 a''16 gis''16 g''32)]
+ } \\ {
+ s4 \times 2/3 { d'16[ f' g'] } as'32[ b''32 e'' d'']
+ } \\ {
+ s4 \autoBeamOff d''8.. f''32
+ } \\ {
+ s4 es''4
+ } >>
+ }
+
+ \new Staff = "down" {
+ \clef bass
+ \key c \minor
+ \set subdivideBeams = ##f
+ \override Stem #'french-beaming = ##t
+ \override Beam #'thickness = #0.3
+ \override Stem #'thickness = #4.0
+ g'16[ b16 fis16 g16]
+ << \makeClusters {
+ as16 <as b>
+ <g b>
+ <g cis>
+ } \\ {
+ \override Staff.Arpeggio #'arpeggio-direction =#down
+ <cis, e, gis, b, cis>4\arpeggio
+ }
+ >> }
+ >>
+ \midi {
+ \context {
+ \Score
+ tempoWholesPerMinute = #(ly:make-moment 60 8)
+ }
+ }
+ \layout {
+ \context {
+ \Staff
+ \consists Horizontal_bracket_engraver
+ }
+ }
+}
+@end lilypond
Todos los fragmentos mostrados se han escrito a mano, pero esto no es
necesariamente así. Puesto que el motor de formateo es casi
% It also defines the positions of the two lines.
\override Staff.StaffSymbol #'line-positions = #'(-2 3)
- % This is neccessary; if not entered, the barline wuld be too short!
+ % This is neccessary; if not entered, the barline would be too short!
\override Staff.BarLine #'bar-size = #3
}
\relative c' {
c
<c e g>
- % the C is now an octave higher
<c' e g'>
- % the C returns to the original pitch
<c, e, g''>
}
@end lilypond
también para producir notas con becuadro.
@lilypond[verbatim,quote,relative=2]
-cis cis cis! cis? c c? c! c
+cis cis cis! cis? c c c! c?
@end lilypond
@cindex alteración en nota ligada
\new PianoStaff {
<<
\context Staff = "up" {
- %%% change the next line as desired:
#(set-accidental-style 'default)
\musicA
}
\context Staff = "down" {
- %%% change the next line as desired:
#(set-accidental-style 'default)
\musicB
}
a4 a4
% Double the duration of chord
<a d>4*2
-% Duration of quarter, appears like sixteeth
+% Duration of quarter, appears like sixteenth
b16*4 c4
@end lilypond
pueden ligar parcialmente colocando la ligadura dentro del acorde.
@lilypond[quote,verbatim,relative=1]
- <c e g> ~ <c e g>
+<c e g> ~ <c e g>
<c~ e g~ b> <c e g b>
@end lilypond
\new Voice \with {
\remove "Note_heads_engraver"
\consists "Completion_heads_engraver"
-} {
- c2. c8 d4 e f g a b c8 c2 b4 a g16 f4 e d c8. c2
}
+
+{ c2. c8 d4 e f g a b c8 c2 b4 a g16 f4 e d c8. c2 }
@end lilypond
Este grabador divide todas las notas largas en la barra de compás e
oboe = \relative c''' {
g4 r8 e16 f e4 d
}
-\addQuote oboe { \oboe }
+\addQuote "oboe" { \oboe }
\new Staff \relative c'' <<
\new CueVoice \with {
(Calle de Granada. Fachada de la casa de Carmela
y su hermano Manuel con grandes ventanas abiertas
a través de las que se ve el patio
- donde se celebra una alegre fiesta.)
+ donde se celebra una alegre fiesta)
}
}
}
\clef bass
\key c \major
\time 6/8
- c4.~ c8 d b c([ d)] b c d b c
+ c4.~ c8 d b c([ d]) b c d b c
}
\addlyrics {
Lar -- go_al fac -- to -- tum del -- la cit -- tà
% Turn off collision avoidance
\once \override TextScript #'outside-staff-priority = ##f
\textLengthOn % and turn on textLengthOn
-c,,2^"Long Text " % Spaces at end are honoured
+c,,2^"Long Text " % Spaces at end are honored
c''2
@end lilypond
g1 |
}
\addlyrics {
- Some -- where o -- ver the Rain -- bow way up high,
+ Some -- where o -- ver the Rain -- bow, way up high,
}
@end lilypond
sobre una cuerda al aire del violín:
@lilypond[verbatim,quote,relative=2]
-a4 \open
-a^\markup { \teeny "II" }
+a4 \open
+a^\markup { \teeny "II" }
a2^\markup { \small "sul A" }
@end lilypond
@tab
@lilypond[fragment,relative=2,notime]
\override Staff.Clef #'break-visibility = #all-invisible
-c4. c4..
+c4. c4..
@end lilypond
@item @code{c d e f g a b }
@tab chiffre de mesure
@tab
@lilypond[fragment]
-\override Staff.Clef #'transparent = ##t
+\override Staff.Clef #'transparent = ##t
\time 3/4
s4_" "
\time 4/4
@lilypond[notime,fragment]
\clef treble
\key es \major
-s4
+s4
@end lilypond
@item @var{note}@code{'}
@tab
@lilypond[fragment,relative=2]
\set Staff.implicitTimeSignatureVisibility = #all-invisible
-<c e>
+<c e>
@end lilypond
<<
{ g'1 g }
\new Lyrics \lyricsto "" { twin -- kle }
->>
+>>
@end lilypond
@item @code{\chordmode @{ c:dim f:maj7 @}}
Une section ossia se placera au dessus de la portée en procédant ainsi :
@lilypond[verbatim,quote,ragged-right]
-\new Staff ="main" {
+\new Staff = "main" {
\relative g' {
r4 g8 g c4 c8 d |
e4 r8
\clef treble
\key c \major
\time 4/4
-
a4 b c d
}
\clef bass
\key c \major
\time 4/4
-
d4 g fis8 e d4
}
-\score{
+\score {
<<
<<
\new Voice = "one" {
@lilypond[quote,ragged-right]
<<
\chords { c2 c f2 c }
- \new Staff \relative c' { \time 2/4 c4 c g'4 g a4 a g2 }
- \new Lyrics \lyricmode { twin4 kle twin kle lit tle star2 }
+ \new Staff
+ \relative c' {
+ \time 2/4
+ c4 c g' g a a g2
+ }
+ \addlyrics { twin -- kle twin -- kle lit -- tle star }
>>
@end lilypond
<< {
\revert Stem #'direction
\change Staff = down
- \set subdivideBeams = ##t
+ \set subdivideBeams = ##t
g16.[
\change Staff = up
c'''32
\override Beam #'thickness = #0.3
\override Stem #'thickness = #4.0
g'16[ b16 fis16 g16]
- << \makeClusters {
+ << \makeClusters {
as16 <as b>
<g b>
<g cis>