sourcecode of open chord: http://open-chord.sourceforge.net/