def note(freq, len, amp=1, rate=5):
    t = linspace(0, len, len * rate)
data = sin(2 * pi * freq * t) * amp
return data.astype(int16)
tone1 = note(440, 2, amp=10)
tone2 = note(140, 2, amp=10)
print(tone1)
print(tone2)
print(concatenate((tone2, tone1), axis=1))
Объединение синтезированных тонов в питоне