static void
note_group_add_note (note_group_t *group, score_note_t *note)
{
+ int i;
+
+ /* Do nothing if note is already in group. */
+ for (i = 0; i < group->num_notes; i++) {
+ if (group->notes[i]->pitch == note->pitch &&
+ group->notes[i]->octave == note->octave)
+ {
+ return;
+ }
+ }
+
group->num_notes++;
if (group->num_notes > group->size) {