Le 31/01/2022 à 13:13, Jean Abou Samra a écrit :
That one is much more complicated. You can find a workaround at
https://lists.gnu.org/archive/html/lilypond-user-fr/2021-06/msg00081.html
Is it me who wrote that??
\version "2.22.1"
\header {
title = "Test"
}
\layout {
\context {
\Staff
\remove Ledger_line_engraver
}
\context {
\Voice
\consists Ledger_line_engraver
}
}
% Styles
myGray = #(x11-color 'grey30)
voiceTwoStyle = {
\override NoteHead.color = \myGray
\override TabNoteHead.color = \myGray
\override Accidental.color = \myGray
\override Stem.color = \myGray
\override Beam.color = \myGray
\override Rest.color = \myGray
\override LedgerLineSpanner.color = \myGray
}
% Chords
AMelody = \relative c' {
s2 s8 d16 e16 f8 e16 d16 f''8 e d
}
ABacking = \relative c' {
\voiceTwo
c4 e4 d4 c4 | c2 eis4 fes4
}
\score {
<<
\new Staff {
\tempo 4 = 104
\clef treble
<<
\key f \major
\new Voice = "melody" {
\voiceOne
\AMelody
}
\new Voice = "backing" {
\voiceTwoStyle
\ABacking
}
>>
}
\new TabStaff \with { stringTunings = #ukulele-tuning } {
<<
\new TabVoice = "melody" {
\AMelody
}
\new TabVoice = "backing" {
\voiceTwoStyle
\ABacking
}
>>
}
>>
%\midi {}
}
Sorry!
Jean