LuaMPD is an object oriented interface to the MusicPD protocol.

Example:

lol = luampd:new { hostname = "localhost", port = 6600, debug = false }

There are the basic playback functions:

lol:play()
lol:pause()
lol:play()
lol:stop()

Along with some Lua functions and iterators:

for song in lol:database() do
  print(song.artist)
  print(song.album)
  print(song.title)
end
