def mix_wave(src, dst):
if len(src) > len(dst):<EOL><INDENT>dst, src = src, dst<EOL><DEDENT>for i, sv in enumerate(src):<EOL><INDENT>dv = dst[i]<EOL>if sv < <NUM_LIT> and dv < <NUM_LIT>:<EOL><INDENT>dst[i] = int(sv * dv / <NUM_LIT>)<EOL><DEDENT>else:<EOL><INDENT>dst[i] = int(<NUM_LIT:2> * (sv + dv) - sv * dv / <NUM_LIT> - <NUM_LIT>)<EOL><DEDENT><DEDENT>return dst<EOL>
Mix two wave body into one.