code: def from_Track(track):
      
      # Throw exception
      if not hasattr(track, 'bars'):
          return False
      lastkey = Key('C')
      lasttime = (4, 4)
  
      # Handle the Bars:
      result = ''
      for bar in track.bars:
          if lastkey != bar.key:
              showkey = True
          else:
              showkey = False
          if lasttime != bar.meter:
              showtime = True
          else:
              showtime = False
          result += from_Bar(bar, showkey, showtime) + ' '
          lastkey = bar.key
          lasttime = bar.meter
      return '{ %s}' % result
docs: Process a Track object and return the LilyPond equivalent in a string.