lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nifty trick with tags and \shape


From: James Harkins
Subject: Nifty trick with tags and \shape
Date: Tue, 24 Jun 2014 11:51:59 +0800
User-agent: Trojita/v0.4.1-obs-3e5b67a; Qt/4.8.1; X11; Linux; Ubuntu 12.04.4 LTS

If you ever need the score and a transposed part to have a different slur shape in places... this does it :)

Just had to share -- actually I wasn't entirely sure this would work, but it's perfect!

hjh

\version "2.18.2"
\language "english"

music = \relative c' {
 \tupletSpan 1*6/8
 \tuplet 4/3 {
cs4 \tag #'scoreOnly { \shape #'((0 . 0) (0 . 0) (0 . 1.2) (0 . -0.5)) Slur } \tag #'partOnly { \shape #'((-0.5 . 1.5) (0 . 0) (0 . 0) (0 . 1.0)) Slur }
   f,! ( d' e cs' b'2 g,4 ) }
 \tupletSpan \default
}

\score {
 \new Staff {
   \time 12/8
   % from score in C
   \keepWithTag #'scoreOnly \music
   \bar "||"
   % transposed part with the same slur shape adjustment, VERY ugly
   \keepWithTag #'scoreOnly \transpose a c' \music
   \bar "||"
   % fixed
   \keepWithTag #'partOnly \transpose a c' \music
   \bar "||"
 }
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]