return FALSE;
}
-/* Return true if 'a' and 'b' sound identical, (even if spelled differently)
- *
- * This comparison considers octaves as significant. So Bb and A# in
- * the same octave are considered enharmonic, but Bb and A# in
- * different octaves are not. */
-static int
-_pitches_are_enharmonic (pitch_t a, pitch_t b)
-{
- return pitch_to_midi (a) == pitch_to_midi (b);
-}
-
/* Determine a chord name (if any) from the current notes pressed */
typedef struct analyzed_pitch {
int i;
for (i = 0; i < group->num_pitches; i++)
- if (_pitches_are_enharmonic (group->pitches[i], pitch))
+ if (pitch_enharmonic_to (group->pitches[i], pitch))
pitch_group_remove_pitch_at (group, i);
}