Hello Lib, https://gitlab.com/lilypond/lilypond/-/merge_requests/1099
I’ve got a first version up, which easily can do stuff as in the appended file. The shift on the first one requires a manual override so far. Cheers, Valentin Am Samstag, 1. Jänner 2022, 21:17:52 CET schrieb Lib Lists: > Hi Valentin, > wow, thanks, if you have the time that would be great! > > To clarify what I mean, here attached is an example made with > Inkscape. I suspect that a dashed line would work better than a > coloured one, but anything that would differentiate the two grid lines > would work. > > Cheers, > Lib > > On Sat, 1 Jan 2022 at 18:15, Valentin Petzel <valen...@petzel.at> wrote: > > Hello Lib, I think I can implement something for that, give me a day or > > two. > > > > Cheers, > > Valentin > > > > Am Samstag, 1. Jänner 2022, 15:56:18 CET schrieb Lib Lists: > > > Hello everybody, and happy new year! > > > > > > In the example below I would like to add another set of grid lines to > > > show the triplet subdivisions in the lower staff. Moreover, I'd like > > > to colour the two grid lines differently. I couldn't find any example > > > and I'm not sure whether this is actually possible. > > > > > > Alternatively, what would be the best strategy to add lines to connect > > > notes in different staves? > > > > > > Thank you in advance for any help! > > > > > > Lib > > > > > > - - - > > > > > > \version "2.22.1" > > > \score { > > > > > > << > > > > > > \new Staff { > > > > > > \time 2/8 > > > \relative c'' { > > > > > > \override TupletBracket.bracket-visibility = ##t > > > \tuplet 3/2 {\tuplet 5/4 {a32[ a a a a]} \tuplet 5/4 {a32[ a a > > > > > > a a]}\tuplet 5/4 {a32[ a a a a]}} > > > > > > } > > > > > > } > > > \new Staff { > > > > > > \relative c { > > > > > > \clef bass > > > \override TupletBracket.bracket-visibility = ##t > > > \tuplet 5/4 {\tuplet 3/2 {e32[ e e]} \tuplet 3/2 {e32[ e > > > > > > e]}\tuplet 3/2 {e32[ e e]}\tuplet 3/2 {e32[ e e]}\tuplet 3/2 {e32[ e > > > e]}} > > > > > > } > > > > > > } > > > > > > \layout { > > > > > > \context { > > > > > > \Staff > > > \consists "Grid_point_engraver" > > > gridInterval = #(ly:make-moment 1/12) > > > > > > } > > > \context { > > > > > > \Score > > > \consists "Grid_line_span_engraver" > > > > > > } > > > > > > } > > > > > > }
grid-lines-ids.pdf
Description: Adobe PDF document
\version "2.23.6" \score { << \new RhythmicStaff { \once\override Score.GridLine.X-offset = #(lambda (grob) (let ((id (ly:grob-property grob 'grid-id))) (if (eq? id 'A) -0.1 0))) \tuplet 3/2 { \tupletSpan 8*2/3 \tuplet 5/4 \repeat unfold 3 { c32[ c c c c] } } } \new RhythmicStaff { \tuplet 5/4 { \tupletSpan 16*4/5 \tuplet 3/2 \repeat unfold 5 { c32[ c c] } } } >> \layout { \context { \RhythmicStaff \consists "Grid_point_engraver" \override TupletBracket.bracket-visibility = ##t idGridIntervals = #`((A . ,(ly:make-moment 1/12)) (B . ,(ly:make-moment 1/20))) } \context { \Score \consists "Grid_line_span_engraver" \override GridLine.color = #(lambda (grob) (let ((id (ly:grob-property grob 'grid-id))) (if (eq? id 'A) red (if (eq? id 'B) blue black)))) } } }
signature.asc
Description: This is a digitally signed message part.