Dynamic marks and vertical space
Hi. The sample code below has one flaw: it wastes too much vertical space due to \ff. In the real case its even worse, because of has duration of 1 and uses more space. I'm trying to move \ff to the left, but unsuccessfully. (DynamicText.extra-offset can help to move, but vertical space waste remains the same. And using same approach to move \p and hairpin do not helps either.) So, the question is: how to make \ff to appear at the left of s ? \version "2.18.2" \score { \new GrandStaff << \new Staff = "up" \relative c' { \clef treble 4-> \repeat unfold 12 {16-.} } \new Dynamics = "dynamics" { s8\ff s8\p\< s2 s8. s16\! |} \new Staff = "down" \relative c, { \clef bass 4-> \repeat unfold 12 {16-.} } >> \layout {} } -- Timofey Misarenkov ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Dynamic marks and vertical space
Am 27.08.2016 um 01:24 schrieb Timofey Misarenkov: (DynamicText.extra-offset can help to move, but vertical space waste remains the same. And using same approach to move \p and hairpin do not helps either.) extra-offset only moves the visual appearance of a grob but doesn’t affect spacing so if you move the ff left spacing will be as if you hadn’t moved it. So, the question is: how to make \ff to appear at the left of s ? Instead of extra-offset, use X-offset and Y-offset (in this case, X-offset is sufficient). Are you sure it’s a "ff" and a "p" (separated) and not a "ffp" (combined)? Because there is no \ffp command in LilyPond, you can create one: ffp = #(make-dynamic-script "ffp") Or use make-dynamic-script directly (see below). If you start the hairpin directly at the ffp, it’s start will move to the left together with the ffp (remember: X-offset affects spacing ;)). To avoid that, just increase it’s bound-padding. \version "2.18.2" \score { \new GrandStaff << \new Staff = "up" \relative c' { \clef treble 4-> \repeat unfold 12 {16-.} } \new Dynamics = "dynamics" { % this moves the ffp to the left \once \override DynamicText.X-offset = -4.5 % this increases the gap between ffp and start of hairpin \once \override Hairpin.bound-padding = 2.5 s2...-#(make-dynamic-script "ffp")\< s16\! | } \new Staff = "down" \relative c, { \clef bass 4-> \repeat unfold 12 {16-.} } >> \layout {} } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Dynamic marks and vertical space
> On Aug 27, 2016, at 02:24:41 +0300,Timofey Misarenkov wrote: > > Message: 2 > Date: Sat, 27 Aug 2016 02:24:41 +0300 > From: Timofey Misarenkov > Subject: Dynamic marks and vertical space > > The sample code below has one flaw: it wastes too much vertical space > due to \ff. In the real case its even worse, because of has > duration of 1 and uses more space. I'm trying to move \ff to the left, > but unsuccessfully. (DynamicText.extra-offset can help to move, but > vertical space waste remains the same. And using same approach to move > \p and hairpin do not helps either.) > > So, the question is: how to make \ff to appear at the left of s ? > > \version "2.18.2" > > \score { > \new GrandStaff << > \new Staff = "up" \relative c' { > \clef treble > 4-> \repeat unfold 12 {16-.} > } > \new Dynamics = "dynamics" { s8\ff s8\p\< s2 s8. s16\! |} Change the above line to: \new Dynamics = "dynamics" { s8-\tweak X-offset #-4 \ff s8-\tweak X-offset #1 \p\< s2 s8. s16\! | } > \new Staff = "down" \relative c, { > \clef bass > 4-> \repeat unfold 12 {16-.} > } >>> > \layout {} > } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Dynamic marks and vertical space
On Sat, 27 Aug 2016 02:29:15 +0200 Malte Meyn wrote: > Instead of extra-offset, use X-offset and Y-offset (in this case, > X-offset is sufficient). Are you sure it’s a "ff" and a "p" (separated) > and not a "ffp" (combined)? Because there is no \ffp command in > LilyPond, you can create one: >ffp = #(make-dynamic-script "ffp") > Or use make-dynamic-script directly (see below). Thank you! X-offset do great. -- Timofey Misarenkov ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user