   ctx.fillStyle = 'white'
   ctx.fillRect 0, 0, canvas.width, canvas.height
 
-draw_title = (text, {font, x, y, gravity}) ->
+draw_title = (text, {font, x, y, gravity}={}) ->
   gravity ||= ''
   ctx.font = font if font
   m = ctx.measureText(text)

  fingerings = sort_fingerings(fingerings)

  # for fingering in fingerings
  #   few_fingers(fingering)
  return _.pluck(fingerings, 'positions')

best_fingering_for = (chord, root_note) ->
  return fingerings_for(chord, root_note)[0]

    ctx.strokeStyle = 'black'

draw_fingerboard = (positions, options={}) ->
  {barres} = options
  draw_strings()
  draw_frets()
  if barres
    for {fret, string, fret, string_count} in barres
      y = v_gutter + above_fretboard + (fret - 1) * fret_height + fret_height / 2
      ctx.beginPath()
