PTParser provides the functions you need to read the ptb file and decode
its content, but it doesn't have any function you can use to "play" it.
You need to write your own algorithm that processes the objects read
from the file and gathers the data you need to perform your stuff. It's
not a trivial task.
--
Simone Tellini
http://www.tellini.org