Logo

LilyPond

I play a few instruments in my spare time, though I'm not very good at them: Guitar, Harmonica, and Concertina. I have a few basic songs for practicing that I collected over the years. I encode them in plaintext and convert them to sheet music using LilyPond.

Here's a popular song encoded in LilyPond:

\version "2.24.2"

\header{
  title = "San Francisco"
}

\score {
  \new Staff \with {midiInstrument = "acoustic guitar (nylon)"} <<
  \relative {
    \tempo 4 = 130
    c'4 c4 a'8 a4.~ a4. a8 g2 g2 e8 d4.~
    d2 c4 c4 c4 a'2. a4 g4 a4 g8 e4. d1
  }

  \addlyrics {
    "If" "you're" "go-" "ing" "to" "San" "Fran-" "cis" "co"
    "Be" "sure" "to" "wear" "some" "flow-" "ers" "in" "your" "hair"
  }
  >>
  \layout {

  }
  \midi {
    \tempo 4 = 130
  }
}

And here's the resulting PDF and midi (audio) files.