I need to create a simple 4 beat click track into to a midi file.  I'm sure I'm missing something obvious.

Walt North

This example is throwing the following message:

Starting lilypond 2.25.22 [testdrum.ly]...

Processing `/home/walt/waltnorth/Sheet Music/Lilypond/tests/testdrum.ly'

Parsing...

/home/walt/waltnorth/Sheet Music/Lilypond/tests/testdrum.ly:19:5: error: syntax error, unexpected \midi

\midi {

/home/walt/waltnorth/Sheet Music/Lilypond/tests/testdrum.ly:4:3: error: errors found, ignoring music expression

\new Score {

fatal error: failed files: "/home/walt/waltnorth/Sheet Music/Lilypond/tests/testdrum.ly"

Exited with return code 1.

\version "2.25.22"

\book {
  \new Score {
    {
      \new DrumStaff {
        \drummode {
          wbl4 wbl wbl wbl |
        }
      }
      \new Staff <<
        \new Voice {
          \relative c' {
            c4 c c c
          }
        }
      >>
    }
    \midi {
      \tempo 4 = 72
    }
  }
}

Reply via email to