|
From: | Simon Albrecht |
Subject: | Re: tags on tweaks |
Date: | Sun, 15 Jun 2014 13:42:44 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
Am 15.06.2014 12:29, schrieb Orm Finnendahl: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_.Hi, just to verify: I assume it is always necessary to tag a complete music _expression_, or can just tweaks themselves get tagged? This gives you %%%%%%%%%%%%%%% \version "2.19"
music = { \clef "G" r4 { fis'''8 }
{ \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 = #(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 |
[Prev in Thread] | Current Thread | [Next in Thread] |