public static void updateNextNote(Note note, Note compare) {
    int pitch = compare.getPitch();
    int string = 0;
    int fret = 0;
    for (int i = START_PITCH; i < END_PITCH; i++) {
      if (i == pitch && string != note.getStringNo()) {
        compare.setString(string);
        compare.setFret(fret);
        return;
      } else if (i == pitch && string == note.getStringNo()) {
        compare.setString(-1);;
        return;
      } else if (fret == 7 && string != 5) {
        fret = 0;
        string++;
      } else {
        fret++;
      }
    }
  }