Created midi-chord function