lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Object names for styling


From: Jean Abou Samra
Subject: Re: Object names for styling
Date: Mon, 31 Jan 2022 13:59:59 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]