Tuesday, 27 August 2013

Lilypond - how to set score BPM (tempo) as a variable

Here's how you define a variable for the tempo for the whole score in Lilypond:

\version "2.16.0"

scoreTempo = \tempo 4 = 88 % BPM

\score {
  \new PianoStaff <<
    \new Staff {
        \relative c' {
            \clef treble
            \scoreTempo

            r2 r8 c8 (ees4 | g1)
        }
    }
    \new Staff {
        \relative c {
            \clef bass
            \scoreTempo

            <c c,>1~ | <c c,>
        }
    }
  >>
}




No comments:

Post a Comment