also Detect the gaps automatically and wite it into the cue file.