Wave mixer in python: