The bare pitch name looked too much like a major triad.
_pitch_str (root),
chord_name, inversion_str);
} else {
- chord_name = talloc_asprintf (local, "%s%s",
- _pitch_str (root),
- chord_name);
+ /* Don't print root pitch for octaves and inversions,
+ * (since a pitch name alone looks like a major triad) */
+ if (num_notes < 3) {
+ chord_name = talloc_strdup (local, chord_name);
+ } else {
+ chord_name = talloc_asprintf (local, "%s%s",
+ _pitch_str (root),
+ chord_name);
+ }
}
} else {
chord_name = talloc_strdup (local, "Unknown chord");