low = struct.pack('h', -32768)
high = struct.pack('h', 32767)
buff = b""
f = 100
t = int(48000/2/f)
while 7:
b+= low*t
b+= high*t
f = 100
t = int(48000/2/f)
phase = 0
while 7:
b+= math.sin(phase)
phase += t
if phase == 360:
phase = 0