[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Combining notes and articualtions
From: |
Valentin Petzel |
Subject: |
Re: Combining notes and articualtions |
Date: |
Tue, 21 Dec 2021 01:20:07 +0100 |
Hello Jean!
That is a nice solution, but it has some issues. For one thing this will case
problem if we have a Script on a skip that is used for something like spacing
a markup (resulting in a compile error if a skip has both a script and for
example a markup). I rather suggest to perform the check at stencil level.
Also this will affect each script in the score. I rather suggest to have a
function tag each Script to be handled to make sure only these are handled.
Cheers,
Valentin
Am Montag, 20. Dezember 2021, 23:36:39 CET schrieb Jean Abou Samra:
>
> I'd do this:
>
> \version "2.22.1"
>
> \layout {
> \override Voice.Script.before-line-breaking =
> #(lambda (grob)
> (let ((parent (ly:grob-parent grob X)))
> (if (or (not (grob::has-interface parent 'note-column-interface))
> (not (null? (ly:grob-object parent 'rest))))
> (ly:grob-suicide! grob))))
> }
>
> articulations = { s16_> s16_> s16 s16_. s16_- s8_> s16_! s8__ s8__
> s16_. s8_- s16_. }
>
> \new RhythmicStaff \with { \override Script.Y-offset = #-1.7 }
> \new Voice << \articulations { f'16 16 16 16 16 8 16 8 8 16 8 16 } >>
>
> \new RhythmicStaff \new Voice << \articulations { c'8. 16 8. 16 8 r8 8.
> 16 } >>
>
> \new RhythmicStaff \new Voice << \articulations { c'16 16 16 16 r8. 16
> r8 16 16 r16 8. } >>
>
>
> Best,
> Jean
apply-table.ly
Description: Text Data
signature.asc
Description: This is a digitally signed message part.