Added method to change the tune, generate midi and play it.