@noindent
will not work in LilyPond. We could avoid this problem by attaching
-the articulation to a fake note,
+the articulation to an empty chord,
@example
-@{ << \music s1*0-.-> @}
+@{ << \music <> -. -> >> @}
@end example
@noindent
<<
\new Staff <<
\melody
- s1*0^"Small, thicker stems, no time signature"
+ s4^"Small, thicker stems, no time signature"
>>
\new Staff \bla <<
\melody
- s1*0^"Different"
+ s4^"Different"
>>
>>
\layout {
\voiceOne
% Make space for fingering in the cross-staff voice
\once\override DynamicLineSpanner #'staff-padding = #3.4
- e''2\p\< d''\> s1*0\!
+ e''2\p\< d''\>
+ c''1\!
}
\new Staff = "down" <<
{
\clef bass
s4. e,8\rest g,2\rest
+ c1
} \\ {
c8\( g c'
\change Staff = "up"
e' g' b'-3 a' g'\)
+ f'1
}
>>
>>
\transposition a
c d e f
\textLengthOn
-s1*0^\markup { Switch to B\flat clarinet }
+<>^\markup { Switch to B\flat clarinet }
R1
\key bes \major
oboeNotes = \relative c'' {
R1
- s1*0^\markup { \tiny "flute" }
+ \new CueVoice { \set instrumentCueName = "flute" }
\cueDuring #"flute" #UP { R1 }
g2 c,
}
}
@end lilypond
-Markup can be used to show the name of the quoted instrument. Also,
-if the cue notes require a change in clef, this can be done manually but
-the original clef should also be restored manually at the end of the cue
-notes.
+The name of the instrument playing the cue can be printed by setting
+the @code{instrumentCueName} property in a temporary @code{CueVoice}
+context. The placement and style of the @code{instrumentCueName} is
+controlled by the @code{\instrumentSwitch} object, see
+@ref{Instrument names}. If the cue notes require a change in clef,
+this can be done manually but the original clef should also be
+restored manually at the end of the cue notes.
@lilypond[verbatim,quote]
fluteNotes = \relative c'' {
\clef bass
R1
\clef treble
- s1*0^\markup { \tiny "flute" }
+ \new CueVoice { \set "instrumentCueName" = "flute" }
\cueDuring #"flute" #UP { R1 }
\clef bass
g4. b8 d2
bassoonNotes = \relative c {
\clef bass
R1
- s1*0^\markup { \tiny "flute" }
+ \new CueVoice { \set "instrumentCueName" = "flute" }
\cueDuringWithClef #"flute" #UP #"treble" { R1 }
g4. b8 d2
}
R1
\tag #'part {
\clef treble
- s1*0^\markup { \tiny "flute" }
+ \new CueVoice { \set "instrumentCueName" = "flute" }
}
\cueDuring #"flute" #UP { R1 }
\tag #'part \clef bass
c4. g8
% position name of cue-ing instrument just before the cue notes,
% and above the staff
- s1*0^\markup { \right-align { \tiny "Flute" } }
+ \new CueVoice {
+ \override InstrumentSwitch #'self-alignment-X = #RIGHT
+ \set instrumentCueName = "Flute"
+ }
\cueDuring "flute" #UP { g4 bes4 }
}
pianoLH = \relative c { c4 <c' e> e, <g c> }
pianoRH = \relative c'' {
\transposition c'
% position name of cue-ing instrument below the staff
- s1*0_\markup { \right-align { \tiny "Clar." } }
+ \new CueVoice {
+ \override InstrumentSwitch #'self-alignment-X = #RIGHT
+ \override InstrumentSwitch #'direction = #DOWN
+ \set instrumentCueName = "Clar."
+ }
\cueDuring "clarinet" #DOWN { c4. g8 }
g4 bes4
}
\cueDuring $instrument #dir {
\once \override TextScript #'self-alignment-X = #RIGHT
\once \override TextScript #'direction = $dir
- s1*0-\markup { \tiny #name }
+ <>-\markup { \tiny #name }
$music
}
#})
}
startAcciaccaturaMusic = {
- s1*0(
+ <>(
\override Flag #'stroke-style = #"grace"
\slurDashed
}
stopAcciaccaturaMusic = {
\revert Flag #'stroke-style
\slurSolid
- s1*0)
+ <>)
}
\relative c'' {
\version "2.14.0"
\header {
-
- texidoc = "If dotted note heads must remain on the left side,
+
+ texidoc = "If dotted note heads must remain on the left side,
collision resolution moves the dots to the right."
}
\relative c {
\clef bass
\override Staff.NoteCollision #'prefer-dotted-right = ##t
- s1*0^"prefer-dotted-right = #t"
- << <b g' >4 \\ { c8. d16 } >>
+ << <b g' >4 ^"prefer-dotted-right = #t" \\ { c8. d16 } >>
<< <b g' >4 \\ { d8. d16 } >>
<< <b g' >4 \\ { f'8. d16 } >>
<< <c a' >4 \\ { g'8. d16 } >>
\override Staff.NoteCollision #'prefer-dotted-right = ##f
- s1*0^"prefer-dotted-right = #f"
- << <b g' >4 \\ { c8. d16 } >>
+ << <b g' >4 ^"prefer-dotted-right = #f" \\ { c8. d16 } >>
<< <b g' >4 \\ { d8. d16 } >>
<< <b g' >4 \\ { f'8. d16 } >>
<< <c a' >4 \\ { g'8. d16 } >>
--- /dev/null
+\version "2.14"
+
+\header { texidoc = "Empty chords accept articulations, occupy no time,
+ and leave the current duration unchanged."
+ }
+
+\relative c' {
+ r4 e8( g <>) ^"sul D" \f \> \repeat unfold 8 { c-. } <>\sfz
+ <>\downbow \repeat unfold 2 { c g } c1\> <>\enddecr
+}
melody = \relative c'' \repeat volta 2 \new Voice = "singer" {
\time 6/8
\autoBeamOff
- s1*0^\markup { \bold \large\larger\larger { \hspace #-3.0 Lieblich, etwas geschwind } }
- R2.
+ << s2.^\markup { \bold \large\larger\larger { \hspace #-3.0 Lieblich, etwas geschwind } }
+ R2.
+ >>
r4 r8 c4 g8 |
e4 c8
<<
melody = \relative c'' \repeat volta 2 \context Voice = "singer" {
\time 6/8
\autoBeamOff
- s1*0^\markup { \larger { \hspace #-3.0 Lieblich, etwas geschwind } }
- R2.
+ << s2.^\markup { \larger { \hspace #-3.0 Lieblich, etwas geschwind } }
+ R2.
+ >>
r4 r8 c4 g8 |
\acciaccatura { f16 } e4 c8
<<
startGraceMusic = {
}
-stopGraceMusic = {
+stopGraceMusic = {
}
startAppoggiaturaMusic =
- {
- s1*0\startGraceSlur
+{
+ <>\startGraceSlur
}
-stopAppoggiaturaMusic = {
- s1*0\stopGraceSlur
+stopAppoggiaturaMusic = {
+ <>\stopGraceSlur
}
startAcciaccaturaMusic = {
- s1*0\startGraceSlur
+ <>\startGraceSlur
\override Flag #'stroke-style = #"grace"
}
stopAcciaccaturaMusic = {
\revert Flag #'stroke-style
- s1*0\stopGraceSlur
+ <>\stopGraceSlur
}
startSlashedGraceMusic = {