@c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*-
@ignore
- Translation of GIT committish: ece268fa66e2576c01f33a4a6e1806f44c9f8fa8
+ Translation of GIT committish: 868bbbb78276796f43a1c72621fdb3a3a14d2555
When revising a translation, copy the HEAD committish of the
version that you are working on. For details, see the Contributors'
@cindex instrument, changement de nom
@cindex changement de nom d'instrument
-Vous pouvez changer le nom d'un instrument en cours de morceau. Notez
-cependant que la valeur de @code{instrumentName} ne s'affichera que sur
-la première portée :
+Le nom abrégé d'un instrument (@code{shortInstrumentName}) peut changer
+en cours de morceau, en même temps que les autres réglages propres au
+nouvel instrument. Notez cependant que la valeur de
+@code{instrumentName} ne s'affichera que sur la première portée :
-@lilypond[verbatim,quote,ragged-right,relative=1]
-\new Staff \with {
- instrumentName = #"Flute"
- shortInstrumentName = #"Flt."
-}
-{
- c1 c c c \break
- c1 c c c \break
- \set Staff.instrumentName = #"Clarinet"
- \set Staff.shortInstrumentName = #"Clt."
- c1 c c c \break
- c1 c c c \break
+@lilypond[verbatim,quote,ragged-right]
+prepPiccolo = <>^\markup \italic { muta in Piccolo }
+
+setPiccolo = {
+ \set Staff.instrumentName = #"Piccolo"
+ \set Staff.shortInstrumentName = #"Picc."
+ \set Staff.midiInstrument = #"piccolo"
+ <>^\markup \bold { Piccolo }
+ \transposition c''
}
-@end lilypond
-@cindex instrument, changement
-@cindex changement d'instrument
-
-@funindex \addInstrumentDefinition
-@funindex addInstrumentDefinition
-@funindex \instrumentSwitch
-@funindex instrumentSwitch
-
-Lorsqu'un musicien doit changer d'instrument -- piccolo et flûte, basson
-et contrebasson --, la commande @code{\addInstrumentDefinition},
-couplée à l'instruction @code{\instrumentSwitch} permet de spécifier en
-détail les modifications intervenant lors du changement. La commande
-@code{\addInstrumentDefinition} prend deux arguments : une chaîne
-de caractères qui servira d'identifiant, et une liste d'association
-de valeurs aux propriétés de ce nouvel instrument. Ces définitions
-devront être déclarées avant tout autre élément musical. L'instruction
-@code{\instrumentSwitch} se placera dans la musique au moment de la
-substitution :
+prepFlute = <>^\markup \italic { muta in Flauto }
-@lilypond[verbatim,quote,ragged-right]
-\addInstrumentDefinition #"contrabassoon"
- #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
- (shortInstrumentName . "Cbsn.")
- (clefGlyph . "clefs.F")
- (middleCPosition . 6)
- (clefPosition . 2)
- (instrumentCueName . ,(make-bold-markup "cbsn."))
- (midiInstrument . "bassoon"))
+setFlute = {
+ \set Staff.instrumentName = #"Flute"
+ \set Staff.shortInstrumentName = #"Flt."
+ \set Staff.midiInstrument = #"flute"
+ <>^\markup \bold { Flute }
+ \transposition c'
+}
\new Staff \with {
- instrumentName = #"Bassoon"
+ instrumentName = #"Flute"
+ shortInstrumentName = #"Flt."
+ midiInstrument = #"flute"
}
-\relative c' {
- \clef tenor
- \compressFullBarRests
- c2 g'
- R1*16
- \instrumentSwitch "contrabassoon"
- c,,2 g \break
- c,1 ~ | 1
+\relative c'' {
+ g1 g g g \break
+ g1 g \prepPiccolo R R \break
+ \setPiccolo
+ g1 g g g \break
+ g1 g \prepFlute R R \break
+ \setFlute
+ g1 g g g
}
@end lilypond
oboeNotes = \relative c'' {
R1
- \new CueVoice { \set instrumentCueName = "flute" }
+ <>^\markup \tiny { flute }
\cueDuring #"flute" #UP { R1 }
g2 c,
}
}
@end lilypond
-Le nom de l'instrument qui est répliqué sera imprimé dès lors qu'aura
-été définie la propriété @code{instrumentCueName} d'un contexte
-@code{CueVoice} temporaire. Le positionnement et le style adopté par
-@code{instrumentCueName} dépendent de l'objet @code{InstrumentSwitch}
--- voir @ref{Noms d'instrument}. Par ailleurs, si la citation nécessite
-l'apparition d'une clef différente, celle-ci devra être introduite
-manuellement, tout comme l'originale qui devra être rappelée en fin de
-citation.
+Le nom de l'instrument qui est répliqué peut s'indiquer à l'aide d'un
+@emph{markup}. Par ailleurs, si la citation nécessite l'apparition
+d'une clef différente, celle-ci devra être introduite manuellement, tout
+comme l'originale qui devra être rappelée en fin de citation.
@lilypond[verbatim,quote]
fluteNotes = \relative c'' {
\clef bass
R1
\clef treble
- \new CueVoice { \set instrumentCueName = "flute" }
+ <>^\markup \tiny { flute }
\cueDuring #"flute" #UP { R1 }
\clef bass
g4. b8 d2
bassoonNotes = \relative c {
\clef bass
R1
- \new CueVoice { \set instrumentCueName = "flute" }
+ <>^\markup { \tiny "flute" }
\cueDuringWithClef #"flute" #UP #"treble" { R1 }
g4. b8 d2
}
@funindex \killCues
@funindex killCues
-@funindex \addInstrumentDefinition
-@funindex addInstrumentDefinition
La commande @code{killCues} permet de supprimer les notes d'une
citation. Ceci est utile lorsque cette citation n'est pas imprimée dans
R1
\tag #'part {
\clef treble
- \new CueVoice { \set instrumentCueName = "flute" }
+ <>^\markup \tiny { flute }
}
\cueDuring #"flute" #UP { R1 }
\tag #'part \clef bass