lilypond-user
[Top][All Lists]
Advanced

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

Re: Chord mode question


From: Kieren MacMillan
Subject: Re: Chord mode question
Date: Sun, 24 Jun 2018 14:34:37 -0400

Hello,

> How can LilyPond be told to display the chords to match the lyrics, i.e. to 
> mention that some notes are substracted from the chord?

Here’s a hint/beginning.
(Note: I also took the liberty of making a few efficiency improvements in your 
original code.)

Hope it helps!
Kieren.

%%%%%  SNIPPET BEGINS
\version "2.19"
\language "nederlands"

customChordExceptions = {
    <c ges>-\markup \fontsize #-2 { \hspace #0.2 \concat { "major-3+5" \raise 
#0.33 \fontsize #-2 \flat } }
}
newCustomChordExceptions = #(append
    (sequential-music-to-chord-exceptions customChordExceptions #t)
    ignatzekExceptions)

\layout {
  \context {
    \Score
    chordNameExceptions = #newCustomChordExceptions
  }
}


P_POne_Staff_One_Voice_One_HARMONY = \chordmode {
  \compressMMRests {
    \key c \major
    \time 4/4
    \clef "treble"
    c4:5.3.5-^3 c4:maj7.13.6-^15
    \bar "|."
  }
}

P_POne_Staff_One_Voice_One = \relative c' {
  \key c \major
  \time 4/4
  \clef "treble"
  c4 c
  \bar "|."
}

P_POne_Staff_One_Voice_One_Stanza_One = \lyricmode {
  "Cmajor-3+5b"4 "Cmajor-13th-1-5+6b"4
}

\score {
  <<
    \context ChordNames = "P_POne_Staff_One_Voice_One_HARMONY"
    \P_POne_Staff_One_Voice_One_HARMONY
    \new Staff = "P_POne_Staff_One"
    \with {
      instrumentName = "MusicXML Part"
    }
    <<
      \context Voice = "P_POne_Staff_One_Voice_One" <<
        \P_POne_Staff_One_Voice_One
      >>
      \new Lyrics
      \with {
        associatedVoice = "P_POne_Staff_One_Voice_One"
      }
      \P_POne_Staff_One_Voice_One_Stanza_One
    >>
  >>
}
%%%%%  SNIPPET ENDS

________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

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