I am using python to reproduce a sine wave. The tone is based on the computer’s internal time in minutes, but I would like to play one at the same time based on the second for harmonious or dual sound.
This is what I still have; can someone point me in the right direction?
from struct import pack from math import sin, pi import time def au_file(name, freq, dur, vol): fout = open(name, 'wb')
source share