Music template rewrite