From eaa965443539dd9e3e537e7f533526208367412e Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sat, 16 Jun 2012 17:45:03 +0200 Subject: [PATCH] =?utf8?q?Issue=202601:=20\repeat=20tremolo=209=20{?= =?utf8?q?=E2=80=A6}=20should=20issue=20an=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- scm/music-functions.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scm/music-functions.scm b/scm/music-functions.scm index 559eae3c3f..edf7659748 100644 --- a/scm/music-functions.scm +++ b/scm/music-functions.scm @@ -299,8 +299,10 @@ through MUSIC." 1)) (tremolo-type (ash 1 duration-log))) (set! (ly:music-property r 'tremolo-type) tremolo-type) - (if (not (integer? mult)) - (ly:warning (_ "invalid tremolo repeat count: ~a") times)) + (if (not (and (integer? mult) (= (logcount mult) 1))) + (ly:music-warning + main + (ly:format (_ "invalid tremolo repeat count: ~a") times))) ;; Adjust the time of the notes (ly:music-compress r (ly:make-moment 1 children)) ;; Adjust the displayed note durations -- 2.39.5