]> git.cworth.org Git - scherzo/commitdiff
Don't put up "unknown chord" for a single note
authorCarl Worth <cworth@cworth.org>
Tue, 17 Sep 2013 23:29:50 +0000 (16:29 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 17 Sep 2013 23:29:50 +0000 (16:29 -0700)
It's obviously just a single note, and not anything else, so don't say
anything.

scherzo.c

index 491489839c8cba69345f41d19a0f1879bbf1f97a..b6fda6f1d2288d6deb9c0546c3f08d1890ad7186 100644 (file)
--- 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);