alternating-time-signatures: check for malformed input
alternating-time-signatures: make error msg localizable
alternating-time-signatures: clean up a little bit