A musical chord detector for wav files