change the rules for deriving harmonies in modes with repeated notes at the end
now the repeated note is ignored