source code
\version "2.24.1"
% global data required for every staff
global = {
\numericTimeSignature
\key d\major
\time 4/4
\tempo 4=80
\set Timing.beamExceptions = #'()
\set Timing.baseMoment = #(ly:make-moment 1/4)
\set Timing.beatStructure = #'(1 1 1 1)
}
% The main melody (and right hand for piano players)
melody = \relative c' {
\global
fis2 g fis8 g a b~ 2
}
% Optionally add a right hand (defaults to the melody)
rightHand = \relative c' {
\global
<<
\new Voice { \voiceOne \melody }
\new Voice { \voiceTwo
<a d>4 d <b d>2 | <a d> <d g>4 d
}
>>
}
% Optionally add a left hand for piano players
% Remove the notes from the leftHand to remove the staff entirely
leftHand = \relative c {
\global
\clef bass
d,2 e | fis g
}
chordNames = \chordmode {
d2 e:m7 | d:/fis g
}
% Uncomment to for example change to which octave the different instruments are tranposed
% For example, use `\transpose es c` to lower by one octave.
%melodySax = \transpose es c' \melody
%melodyHorn = \transpose f c' \melody
% Optional lyrics to indicate when to start singing
songtext = \lyricmode {U.2}
\include "../template.ly"