Skip to content

Instantly share code, notes, and snippets.

@jkominek
Last active October 22, 2019 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkominek/50da8b6734de9b373c7804c012ff33cc to your computer and use it in GitHub Desktop.
Save jkominek/50da8b6734de9b373c7804c012ff33cc to your computer and use it in GitHub Desktop.
Lilypond template for solo piano with correct dynamics and pedalling in the MIDI
\version "2.18.2"
\language "english"
right = \relative c'' {
\key c \major
\numericTimeSignature
\time 4/4
\tempo "Whatever" 4=60
% ...
}
left = \relative c' {
\key c \major
\numericTimeSignature
\time 4/4
% ...
}
dynamics = {
\time 4/4
% ...
}
pedal = {
\time 4/4
% ...
}
\score {
\new PianoStaff = "Piano" \with {
instrumentName = "Piano"
} <<
\new Staff = "right" \with {
} \right
\new Dynamics = "dynamics" \dynamics
\new Staff = "left" \with {
} { \clef bass \left }
\new Dynamics = "pedal" \pedal
>>
\layout { }
}
\score {
\new PianoStaff = "Piano" <<
\new Staff = "upper" \with {
midiInstrument = "acoustic grand"
} << \right \dynamics \pedal >>
\new Staff = "lower" \with {
midiInstrument = "acoustic grand"
} << \left \dynamics \pedal >>
>>
\midi {
}
}
@jkominek
Copy link
Author

Fill out dynamics and pedal with spacer rests ("s" not "r"). Place notes on left and right as per normal.
You should get a correctly typeset score, and correct MIDI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment