It's got the code in there to output a chord name to midi notes just needs the other way around.