A tool for music analysis