Am 15.06.2014 12:29, schrieb Orm Finnendahl:
Hi,
just to verify: I assume it is always necessary to tag a complete
music expression, or can just tweaks themselves get tagged?
You may insert the tag itself as a post-event using -\tag before the
tweak, yet the tag will then apply both to the tweak and the following
expression.
This gives you
%%%%%%%%%%%%%%%
\version "2.19"
music = {
\clef "G"
r4 { fis'''8
-\tag score -\tweak X-offset #-2.5 \f
-\tag part \f [ }
ees'' c' a''' ] r4
}
{
\keepWithTag score \music
\keepWithTag part \music
}
%%%%%%%%%%%%%%%%
Well, it's a bit shorter.
If there are many instances of the problem, you might wrap this into a
music function:
%%%%%%%%%%%%%%%%
\version "2.19"
%sctw = score tweak...
sctw = #(define-music-function
(parser location prop val mus)
(symbol? number? ly:music?)
#{ -\tag score -\tweak $prop $val $mus
-\tag part $mus #} )
music = {
\clef "G"
r4 fis'''8 -\sctw X-offset #-2.5 \f [ ees'' c' a''' ] r4
}
{
\keepWithTag score \music
\keepWithTag part \music
}
%%%%%%%%%%%%%%%%%
HTH, Simon
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user