On 2018-04-24 20:19, Evan Driscoll wrote:
For example, in the document below, I'd like an upbow over the percent in
measure 2. How can I get that? The \upbow on the s1 that's in there now
doesn't work.

Thanks,
Evan

From what I can tell, there are at least two issues you are fighting.

Firstly, adding \upbow to the spacer does not result in the articulation being applied to the PercentEvent. All the \makePercent music function does is use ly:music-length to measure the length of the music expression supplied. None of the content within that music is displayed.

Secondly, the documentation does mention that a PercentEvent consists only of the percent symbol stencil itself. The following theoretically could add the desired articulation, but as expected nothing else prints:

%%
  (make-music 'PercentEvent
    'length (ly:music-length note)
    'articulations (list
      (make-music 'ArticulationEvent 'articulation-type "upbow")))
%%

There is a simple workaround, however, which is to attach the articulation to an empty chord before the percent repeat:

%%
  cello = \relative c {
    a4(\downbow b c d) |
    <>\upbow \makePercent s1 \bar "||"
  }
%%

The resulting alignment might not be to your taste, as the articulation ends up positioned towards the left side of the measure, not centered above the percent symbol. But you should be able to tweak that manually as desired:

%%
  <>-\tweak X-offset #1.5 \upbow
%%

-- Aaron Hill

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to