From Fedora Project Wiki

\version "2.12.2"

\header
{
  title = "Simple Counterpoint Exercise"
  composer = "Christopher Antila"
}

global =
{
  \key f \major
  \time 4/4
  
  \override Score.BarLine #'transparent = ##t
  \override Score.SpanBar #'transparent = ##t
  \override Score.TimeSignature #'transparent = ##t
}

right = \relative c'
{
  \global
  
  f1 g a f d e f c' a f g f
  
  \revert Score.BarLine #'transparent
  \revert Score.SpanBar #'transparent
  
  \bar "|."
}

left = \relative c
{
  \global
  % Music follows here.
  
  f1 e d a bes c d e f d c f
}

figBass = \figuremode
{
  \global
  % Figures follow here.
  <1>1 <3> <5> <6> <3> <3> <3> <6> <3> <3> <5> <1>
}

pianoPart = \new PianoStaff \with{}
<<
  \new Staff = "right" \right
  \new FiguredBass \figBass
  \new Staff = "left" { \clef bass \left }
>>

\score
{
  <<
    \pianoPart
  >>
  
  \layout { }
}