Library for generating musical scores