My Music (Listen with quality headphones)

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

My content is under the Creative Commons Attribution 3.0 license. I work hard to publish relevant and useful information in order to help people learn difficult things and find solutions to their problems, so please attribute me if you reuse my content elsewhere.