From: Carl Worth <cworth@cworth.org>
Date: Tue, 17 Sep 2013 23:29:50 +0000 (-0700)
Subject: Don't put up "unknown chord" for a single note
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=7abea8cdc208652e144541c174849d80a1784285;p=scherzo

Don't put up "unknown chord" for a single note

It's obviously just a single note, and not anything else, so don't say
anything.
---

diff --git a/scherzo.c b/scherzo.c
index 4914898..b6fda6f 100644
--- a/scherzo.c
+++ b/scherzo.c
@@ -453,7 +453,7 @@ scherzo_analyze_chord (scherzo_t *scherzo)
 	scherzo->chord = NULL;
     }
 
-    if (num_notes == 0)
+    if (num_notes <= 1)
 	goto DONE;
 
     notes = talloc_array (local, analyzed_note_t, num_notes);