@ignore
Tutorial guidelines: (different from policy.txt!)
-- unless you have a really good reason, use either
+- unless you have a really good reason, use
@lilypond[verbatim,quote]
- or
- @lilypond[verbatim,quote,relative=2]
-
- Don't use any other relative=X commands.
- use "aes" and "ees" instead of "as" and "es". I know it's not
correct Dutch naming, but let's not confuse people with this
doppia, o @code{\bar "|."} per una stanghetta finale. La lista completa
delle stanghette si trova in @ruser{Stanghette}.
-@lilypond[verbatim,quote,relative=2]
-g1 e1 \bar "||" c2. c'4 \bar "|."
+@lilypond[verbatim,quote]
+\relative { g'1 e1 \bar "||" c2. c'4 \bar "|." }
@end lilypond
@node Controlli di battuta
nordiche e germaniche, come il tedesco e l'olandese. Per usare altri
nomi per le @notation{alterazioni}, si veda @ruser{Nomi delle note in altre lingue}.
-@lilypond[verbatim,quote,relative=2]
-cis4 ees fisis, aeses
+@lilypond[verbatim,quote]
+\relative { cis''4 ees fisis, aeses }
@end lilypond
@cindex armatura di chiave, impostare
In questo esempio:
-@lilypond[verbatim,quote,relative=2]
-\key d \major
-cis4 d e fis
+@lilypond[verbatim,quote]
+\relative {
+ \key d \major
+ cis''4 d e fis
+}
@end lilypond
@noindent
nota con altezza Si-bequadro.} Nella tonalità di La bemolle maggiore,
@emph{deve} avere un'alterazione:
-@lilypond[verbatim,quote,relative=2]
-\key aes \major
-aes4 c b c
+@lilypond[verbatim,quote]
+\relative {
+ \key aes \major
+ aes'4 c b c
+}
@end lilypond
Se l'esempio precedente sembra poco chiaro, considera questo: se tu stessi
Una @notation{legatura di valore} si ottiene apponendo una tilde @code{~} alla
prima delle due note legate.
-@lilypond[verbatim,quote,relative=2]
-g4~ 4 c2~ | 4~ 8 a~ 2 |
+@lilypond[verbatim,quote]
+\relative { g'4~ 4 c2~ | 4~ 8 a~ 2 | }
@end lilypond
@cindex durata senza altezza
nota iniziale e quella finale sono indicate rispettivamente con
@code{(} e @code{)}.
-@lilypond[verbatim,quote,relative=2]
-d4( c16) cis( d e c cis d) e( d4)
+@lilypond[verbatim,quote]
+\relative { d''4( c16) cis( d e c cis d) e( d4) }
@end lilypond
@node Legature di frase
con ampi gruppi di note. Legature di valore e legature di portamento
possono essere annidate le une dentro le altre.
-@lilypond[verbatim,quote,relative=2]
-c4~( c8 d~ 4 e)
+@lilypond[verbatim,quote]
+\relative { c''4(~ c8 d~ 4 e) }
@end lilypond
Le @notation{articolazioni} di uso comune possono essere aggiunte a una nota
con una lineetta @code{-} e un singolo carattere:
-@lilypond[verbatim,quote,relative=2]
-c4-^ c-+ c-- c-!
-c4-> c-. c2-_
+@lilypond[verbatim,quote]
+\relative {
+ c''4-^ c-+ c-- c-!
+ c4-> c-. c2-_
+}
@end lilypond
@node Diteggiature
aggiunte a una nota con una lineetta (@code{-}) e il numero che si
vuole visualizzare:
-@lilypond[verbatim,quote,relative=2]
-c4-3 e-5 b-2 a-1
+@lilypond[verbatim,quote]
+\relative { c''4-3 e-5 b-2 a-1 }
@end lilypond
Articolazioni e diteggiature solitamente sono posizionate verticalmente in automatico, ma
multiple sulla stessa nota. Tuttavia, nella maggior parte dei casi è
meglio lasciare che sia LilyPond a determinare le direzioni delle articolazioni.
-@lilypond[verbatim,quote,relative=2]
-c4_-^1 d^. f^4_2-> e^-_+
+@lilypond[verbatim,quote]
+\relative { c''4_-^1 d^. f^4_2-> e^-_+ }
@end lilypond
@node Dinamiche
I segni di @notation{dinamica} si ottengono aggiungendo alla nota
i simboli (preceduti da un segno di barra invertita, o backslash):
-@lilypond[verbatim,quote,relative=2]
-c4\ff c\mf c\p c\pp
+@lilypond[verbatim,quote]
+\relative { c''4\ff c\mf c\p c\pp }
@end lilypond
esempio @code{\ff}, terminerà il (de)crescendo, oppure può essere usato
il comando @code{\!}:
-@lilypond[verbatim,quote,relative=2]
-c4\< c\ff\> c c\!
+@lilypond[verbatim,quote]
+\relative { c''4\< c\ff\> c c\! }
@end lilypond
Puoi aggiungere del testo nei tuoi spartiti:
-@lilypond[verbatim,quote,relative=2]
-c2^"espr" a_"legato"
+@lilypond[verbatim,quote,fragment]
+c''2^"espr" a'_"legato"
@end lilypond
Per aggiungere delle formattazioni puoi usare il comando @code{\markup}:
Tutte le @notation{travature} vengono disegnate automaticamente:
-@lilypond[verbatim,quote,relative=2]
-a8 ais d ees r d c16 b a8
+@lilypond[verbatim,quote]
+\relative { a'8 ais d ees r d c16 b a8 }
@end lilypond
Se non ti piace il modo in cui vengono prodotte automaticamente le travature, è
possibile sovrascriverle manualmente. Per correggere soltanto una singola
travatura, indica la prima nota da raggruppare con @code{[} e l'ultima con @code{]}.
-@lilypond[verbatim,quote,relative=2]
-a8[ ais] d[ ees r d] c16 b a8
+@lilypond[verbatim,quote]
+\relative { a'8[ ais] d[ ees r d] c16 b a8 }
@end lilypond
Se desideri disattivare il raggruppamento automatico, interamente o
per disattivare il raggruppamento automatico e @code{\autoBeamOn} per
riattivarlo.
-@lilypond[verbatim,quote,relative=2]
-\autoBeamOff
-a8 c b4 d8. c16 b4 |
-\autoBeamOn
-a8 c b4 d8. c16 b4 |
+@lilypond[verbatim,quote]
+\relative {
+ \autoBeamOff
+ a'8 c b4 d8. c16 b4 |
+ \autoBeamOn
+ a8 c b4 d8. c16 b4 |
+}
@end lilypond
@code{\partial}. Questa è seguita da una durata: @code{\partial 4}
è un'anacrusi di semiminima e @code{\partial 8} di croma.
-@lilypond[verbatim,quote,relative=2]
-\partial 8 f8 |
-c2 d |
+@lilypond[verbatim,quote]
+\relative {
+ \partial 8 f''8 |
+ c2 d |
+}
@end lilypond
@node Gruppi irregolari
occupa la stessa durata. Per le terzine ci sono tre note invece di
due, quindi una @notation{terzina} ha 3/2 come frazione:
-@lilypond[verbatim,quote,relative=2]
-\tuplet 3/2 { f8 g a }
-\tuplet 3/2 { c8 r c }
-\tuplet 3/2 { f,8 g16[ a g a] }
-\tuplet 3/2 { d4 a8 }
+@lilypond[verbatim,quote]
+\relative {
+ \tuplet 3/2 { f''8 g a }
+ \tuplet 3/2 { c8 r c }
+ \tuplet 3/2 { f,8 g16[ a g a] }
+ \tuplet 3/2 { d4 a8 }
+}
@end lilypond
@node Abbellimenti
ma possono essere creati anche ponendo davanti a un'espressione
musicale le parole chiave @code{\appoggiatura} o @code{\acciaccatura}:
-@lilypond[verbatim,quote,relative=2]
-c2 \grace { a32 b } c2 |
-c2 \appoggiatura b16 c2 |
-c2 \acciaccatura b16 c2 |
+@lilypond[verbatim,quote]
+\relative {
+ c''2 \grace { a32 b } c2 |
+ c2 \appoggiatura b16 c2 |
+ c2 \acciaccatura b16 c2 |
+}
@end lilypond
@emph{espressioni musicali}. Anche una singola nota è un'espressione
musicale:
-@lilypond[verbatim,quote,relative=2]
-a4
+@lilypond[verbatim,quote,fragment]
+a'4
@end lilypond
Se si racchiude una nota tra parentesi si crea un'@emph{espressione
musicale composta}. In questo esempio abbiamo creato un'espressione
musicale composta da due note:
-@lilypond[verbatim,quote,relative=2]
-{ a4 g4 }
+@lilypond[verbatim,quote]
+\relative { a'4 g4 }
@end lilypond
Se si mette un gruppo di espressioni musicali (es: note) tra parentesi,
significa che sono in sequenza (ovvero, ciascuna espressione segue la
precedente). Il risultato è un'altra espressione musicale:
-@lilypond[verbatim,quote,relative=2]
-{ { a4 g } f4 g }
+@lilypond[verbatim,quote]
+\relative { { a'4 g } f4 g }
@end lilypond
@menu
separate) vengono combinate in simultanea:
@lilypond[verbatim,quote]
-\relative {
- <<
- { a'2 g }
- { f2 e }
- { d2 b }
- >>
-}
+<<
+ \relative { a'2 g }
+ \relative { f'2 e }
+ \relative { d'2 b }
+>>
@end lilypond
Si noti che abbiamo indentato ogni livello dell'input con una diversa
e @code{>>}:
@lilypond[verbatim,quote]
-\relative {
- <<
- \new Staff { \clef "treble" c''4 }
- \new Staff { \clef "bass" c,,4 }
- >>
-}
+<<
+ \new Staff { \clef "treble" c''4 }
+ \new Staff { \clef "bass" c4 }
+>>
@end lilypond
Il comando @code{\new} introduce un @q{contesto di notazione.} Un
frequenti delle partiture poliritmiche.
@lilypond[verbatim,quote]
-\relative {
- <<
- \new Staff { \clef "treble" \key d \major \time 3/4 c''4 }
- \new Staff { \clef "bass" c,,4 }
- >>
-}
+<<
+ \new Staff { \clef "treble" \key d \major \time 3/4 c''4 }
+ \new Staff { \clef "bass" c4 }
+>>
@end lilypond
Ecco un piccolo esempio:
@lilypond[verbatim,quote]
-\relative {
- \new PianoStaff <<
- \new Staff { \time 2/4 c''4 e | g g, | }
- \new Staff { \clef "bass" c,,4 c' | e c | }
- >>
-}
+\new PianoStaff <<
+ \new Staff \relative { \time 2/4 c''4 e | g g, | }
+ \new Staff \relative { \clef "bass" c4 c' | e c | }
+>>
@end lilypond
Altri raggruppamenti di pentagrammi vengono preceduti da @code{\new GrandStaff},
che tutte le note in un accordo devono avere la stessa durata, e che la
durata è posta dopo la parentesi chiusa.
-@lilypond[verbatim,quote,relative=2]
-r4 <c e g> <c f a>2
+@lilypond[verbatim,quote]
+\relative { r4 <c'' e g> <c f a>2 }
@end lilypond
Pensa agli accordi come a qualcosa di equivalente alle note singole:
le travature e le legature di valore. Questi devono essere posti fuori dalle
parentesi angolari.
-@lilypond[verbatim,quote,relative=2]
-r4 <c e g>~ <c f a>2 |
-<c e g>8[ <c f a> <c e g> <c f a>]
- <c e g>8\>[ <c f a> <c f a> <c e g>]\! |
-r4 <c e g>8.\p <c f a>16( <c e g>4-. <c f a>) |
+@lilypond[verbatim,quote]
+\relative {
+ r4 <c'' e g>~ <c f a>2 |
+ <c e g>8[ <c f a> <c e g> <c f a>]
+ <c e g>8\>[ <c f a> <c f a> <c e g>]\! |
+ r4 <c e g>8.\p <c f a>16( <c e g>4-. <c f a>) |
+}
@end lilypond
@seealso