bell notificationshomepageloginNewPostedit profiledmBox

Hoots : Aligning the start of a hairpin at the start of a bar despite acciaccatura I'd like to get a hairpin to start at the beginning of a bar, when the bar begins with an acciaccatura, and I'm not having any luck. This is what - freshhoot.com

10% popularity   0 Reactions

Aligning the start of a hairpin at the start of a bar despite acciaccatura
I'd like to get a hairpin to start at the beginning of a bar, when the bar begins with an acciaccatura, and I'm not having any luck.

This is what I want:

Here's what I've got instead:

version "2.18.2"
language "english"
dynamics = {
s2. |
s8 > s4 s4 s8 !
}
score {
relative c'' {
new PianoStaff <<
new Staff { time 3/4 c4 e g | acciaccatura{g,16 a} g8 a4 d f8 }
new Dynamics = "dynamics" dynamics
new Staff { clef "bass" c,,4 c' e | c e, g}
>>
}
layout { }
}

I got the target image by ditching the dynamics staff and putting the hairpin directly into the treble staff, with the > inside of the acciaccatura{...}. I'd like to keep all of the dynamics markings in the dynamics staff if possible.


Load Full (1)

Login to follow hoots

1 Comments

Sorted by latest first Latest Oldest Best

10% popularity   0 Reactions

The dynamics staff thing is a good idea. Your problem is very simple: you put the hairpin at the first beat of the bar, but you need to put it "an 8th grace note before" that. Instead of

s8 > s4 s4 s8 !

just write

grace{s16> s} s8 s4 s s8!

And, by the way, it's not needed to copy any particular rhythm with the contents of your Dynamics. So you can just write

grace{s8>} s2 s8 s!

You can also play with it in a lilybin.


Back to top Use Dark theme