improved wav export algorithm for chords