Function to play tone sequences